-
Double quotes in INI files loaded with parse_ini_file
Posted on March 1st, 2010 No commentsWriting a bit of PHP tonight and found that if you use parse_ini_file to load an INI file in PHP, there is a slightly hacky way of having double quotes in strings. For example, I tried these: somevalue = "This " "string" " has quotes" somevalue = "This " string " has quotes" But none of them worked! Turns out a quick look at the PHP manual reveals a simple (but a bit hacky) solution to this is to define a constant e.g. QUOTE to be “, and use that in the INI string
Read more from the original source:
Sphere: Related Content
Double quotes in INI files loaded with parse_ini_file
EU, File, James, ad, amp, asgrim, coding, config, double, escaping, exam, fine, fun, function, http, in, ing, ini, light, load, me, no, one, parse_ini_file, php, php5, quote, quotes, setting, simple, solution, string, to, ua, value, work, www double, escaping, exam, File, having-double, ing, setting, simple, work -
The Importance of Configuring Stuff Properly
Posted on October 9th, 2009 No commentsToday I had a TOS Violation on my Linode VPS for sending spam e-mails. Odd I thought as I only have 1 mail user.
See original here:
Sphere: Related Content
The Importance of Configuring Stuff Properly
17, 5, Connection, IDE, James, OS, Top, ad, air, amp, anyone, apache, api, cd, check, coding, config, configuration, day, exam, fix, gap, get, hacking, high, highlight, http, ical, import, in, ing, install, issue, left, light, like, linode, mail, me, network, no, not, one, ping, post, postfix, problem, proxy, running, script, security, server, something, spam, squid, thought, to, vps, web, website, weeks, work, www air, api, check, config, exam, hacking, issue, network, postfix, spam, thought, vps -
Changing The Default Search Engine in Firefox Back To Google or To Something Else
Posted on September 6th, 2009 No commentsWhen you type keywords into your Firefox address bar and hit enter it usually goes off and searches a particular search engine for you. e.g.
View post:
Sphere: Related Content
Changing The Default Search Engine in Firefox Back To Google or To Something Else
17, 5, Chris, Google, IDE, Mac, OS, PS3, SQL, SSH, Search, URL, amp, apache, applications, book, box, browser, browser search, case, change, changing, chrome, click, code, config, default, default options, default search engine, development, double, double click, engine, filter, fine, firefox, fix, google co uk, google search, hanging, http, http www google com, in, install, iso 8859, key, keyword, keyword searches, linux, map, me, media, microsoft, mistake, mysql, new, no, not, one, open, opera, php, place, post, posts, replace, rest, search options, search url, server, software, something, system, thought, time, title, to, type, type keywords, ubuntu, value, web, when, windows, word, www box, chrome, config, double, from-the-google, google co uk, mysql, permanent-link, search options, server, thought -
“You do not have sufficient permissions to access this page” after Wordpress upgrade
Posted on July 4th, 2009 No commentsIf you’ve done a wordpress upgrade which included either copying another wp database or changing the current one’s table prefix (as well as changing the $table_prefix PHP variable in your config file,) you will most likely be met with this warning when you try to log in: You do not have sufficient permissions to access this page. The reason for this is that everything in wordpress that accesses info in the db does so from PHP using the $table_prefix variable, and when you first installed your blog, a couple of options are set in the database that include that value, which makes it not really so dynamic!
After rooting through my db, I found 5 or 6 values that still had the old table prefix in – mostly in the `usermeta` table, but also one in the `options` table. To make sure I got them all, I ran these simple SQL statements in phpMyAdmin to update all the values: UPDATE `wp2_usermeta` SET `meta_key` = REPLACE ( `meta_key` , 'wp_' , 'wp2_' ) ; UPDATE `wp2_options` SET `option_name` = REPLACE ( `option_name` , 'wp_' , 'wp2_' ) ; (note: please be sure to backup your database before you execute any SQL on it – if something goes wrong, there’s not a lot you can do to recover it without a backup!) In those two examples, assume the original prefix was “wp” and the new one is “wp2″Follow this link:
Sphere: Related Content
“You do not have sufficient permissions to access this page” after Wordpress upgrade
17, 5, File, Hints and Tips, Jon, OS, RDP, SQL, Wordpress, backup, base, blog, changing, config, data, database, exam, first, fix, hanging, include, install, key, like, me, meta key, name, new, no, not, one, page, php, phpmyadmin, place, prefix, replace, simple, something, sql statements, to, update, upgrade, usermeta, warning, when, word, wp copying, either-copying, File, hanging, Hints and Tips, include, php, place, RDP, something-goes, warning, word -
Wordpress 2.8 automatic upgrade fails
Posted on July 4th, 2009 No commentsI’ve been trying to update my wordpress blogs from various versions like 2.5 and 2.7 to the newest 2.8 for a while now, but was never able to do it automatically. Every time I pressed the “upgrade automatically” button, it told me it was downloading the latest file from Wordpress, but it never got any further than that. I logged in to my site using my FTP client and found a 0KB sized file called wordpress2.8.zip in the wp_content folder, so I thought I’d found the issue – maybe the script can’t actually download the file and save it to disk because of permissions
Read more:
Sphere: Related Content
Wordpress 2.8 automatic upgrade fails
17, 1and1, 5, AddType, Download, FAIL, File, Files, Hints and Tips, Jon, Mod, OS, RDP, Search, Wordpress, apache, auto, blog, change, client, comment, config, content folder, default, first, folder, ftp client, host, ical, install, issue, joy, like, load, loaded, map, me, new, no, one, php, php5, post, problem, running, script, scripts, server, servers, share, solution, test, thought, time, to, type, update, upgrade, upload, word, work, zip file Hints and Tips, hosted-on-1and1, loaded, Mod, running-on-php5, script, type, work -
Usernameless and Passwordless logon with SSH
Posted on June 9th, 2009 No commentsFabien Potencier wrote a nice article that I’m going to try out - usernameless and passwordless logon with SSH on Linux systems. This tutorial is especially useful for those with 1and1.co.uk hosting where the username is something like u12345678, which I never bother remembering… First create the logon key. SSH to the server you wish to set up the connection to using your normal username and password
The rest is here:
Sphere: Related Content
Usernameless and Passwordless logon with SSH
17, 1and1, 5, Connection, Download, File, IDE, James, Mod, OS, SSH, Top, cd, coding, config, credentials, first, home, host, hosting, http, ice, key, laptop, less, like, linux, load, login, logon, me, name, no, password, passwordless, refused, server, something, sw, system, tip, to, tutorial, username, usernameless, word, www 1and1, config, Connection, host, key, linux, logon, nice-article, passwordless, SSH, username, word, www












































