Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged update
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0
976
posted 10 years ago by 108Bits
Aspose.PDF for Cloud API has released PHP SDK which allows PHP developers to convert PDF files uploaded to a remote server to other formats. You can pass URL and format parameters to specify the PDF’s URL and output format and use the PUT method of...
0
2411
posted 10 years ago by johansonkatherine
Open your function.php of your active Theme.
Copy your code insert and call the new Site URL.
After delete the code snippet.
0
1095
posted 11 years ago by WMSchneider
This snippet shows how to retrieve information from the SEO plugin of Yoast, to be used for front-end use. This snippet is taken from the opensource free Nexus WP framework supporting front-end editing, custom layout and drag & drop.
0
906
posted 11 years ago by barkgj
Serverside script for a personal DynDNS service.
Works together with a clientside script written in ruby [ http://snipplr.com/view/55484/own-dyndns-service-clientside-script/ ] .
Redirect to current saved IP(http, port 80):
http://dynDns.yourver...
0
986
posted 13 years ago by madc
Drupal allows hook_update_N to run any sort of code. Most of the time, however, people only use this to alter the database scheme.
But you can use it for much more. Like setting variables, creating nodes, importing views and so on.
This code show...
2
1039
posted 14 years ago by berkes
This snippet allows you to update multiple rows of a database using a single form in one easy click
0
1370
posted 15 years ago by daveismyname
Here is a small function that I use to update records in a database.
It coincides with the insertFromPost function that I have posted earlier.
The element names in the form need to have the same name as in the DB and the field names should all...
1
880
posted 15 years ago by brownrl
Very simple snippet to include if you want to auto update the year in a page copyright using PHP.
6
1143
posted 15 years ago by 1man
Allows you preserve and update a query string and it's existing values easily, instead of constantly appending the new value to the end of the query string
1
1062
posted 16 years ago by simplistik
« Prev 1 Next »