I had a working system with Apache 2.0 and PHP 5.2.6
I have had to upgrade Apache and PHP, so I now have Apache 2.2 and PHP 5.2.12 and for some reason $_SERVER['REQUEST_URI'] is now missing from the super global in PHP.
This is my test system on my dev PC (not a live server) and there are 4 or vhosts on it.
What config should I check...
I'm on a VPS environment so I have root access, btw.
So take a look at these issues:
http://www.sonikastudios.com/wp-content/themes/sonikas/scripts/timthumb.php?src=/wp-content/uploads/tedleescreenshot1.jpg&w=100&h=100&zc=1&q=100
That returns a 404 error.
However when I move timthumb.php to the root of the site, it w...
i m creating two table(in mysql) named
table_temp_guest
table_temp_order
now if a guest enters then we save his personal information in this first table and if he purchase something from any stall ,it saved as a temporary order in table_temp_order.
now my question is :
i m using session id, so when user goes to logout( without ...
here's an example of the ticketcity.xml file im using:
<Events Version="3.0" Method="GetEvents" StatusCode="0" StatusMsg="Success">
−
<Event ID="569402" Name="Hair" SeatingChart="http://www.ticketcity.com/images/seatingcharts/MARTINBECK_THEATRE_NYC.GIF" Page="http://www.ticketcity.com/theatre-tickets/broadway-tickets/hair-ticket...
hi,
I am looking for some asp to php translator.
I tried http://www.design215.com/toolbox/translator/ it is totally buggy.
please suggest me good think.
Thanks in advance.
...
Hi there,
I'm trying to get the Order Increment Id in Magento, on the success.phtml page so that I can use this for affiliate tracking.
I'm using the following code, but it is giving an error on the second line;
$order = Mage::getSingleton('sales/order')->getLastOrderId();
$lastOrderId = $order->getIncrementId();
The error reads:
F...
I noticed this piece of code in Wordpress 2.9.1 (/wp-includes/compat.php), I don't understand it:
if ( !function_exists('_') ) {
function _($string) {
return $string;
}
}
It seems that PHP indeed has a function _($string) but I can't find the documentation for it.
...
I have two tables
table_school
school_open_time|school_close_time|school_day
8:00 AM | 9:00PM | Monday
10:00 AM | 7:00PM | Wednesday
table_college
college_open_time|college_close_time|college_day
10:00 AM | 8:00PM | Monday
10:00 AM | 9:00PM | Tuesday
10:00 ...
does netbeans include phpdocumentator so you can comment your code?
is there some guide on how to use it, eg. how should i comment, how to read them and how to print them out?
...
Can you make an assignment on conditional statement in php as so:
if(siteName_err = isValid("sitename", $_POST['sitename'], false))
{
$siteName = $_POST['sitename'];
}
...
hi, I've got an issue whereby PHP is escaping where I really don't want it to in this code:
$url_ = stripslashes(((substr(strtolower($url),0,7)!="http://")? "http://".$url:$url));
$host = $this->googleDomains[mt_rand(0,count($this->googleDomains)-1)];
$target = "/search?";
$querystring = sprintf("client=n...
Trying to get a grasp of using PDO, and I'm using some pre-made functions to make things simpler for when I want to do a query. First one connects, second runs the query.
Unfortunately it won't let me INSERT rows using dbquery(). SELECT works fine, just can't seem to get anything else to work.
Here's the code:
function dbConnect()
...
How can I change the PHP variables color in Eclipse? It is very light blue/gray by default. I go to preferences and click on all the editors but doesn't seem it is there.
By the way, I install the Eclipse 3.5.1 with PHPEclipse 1.2.x plugin.
...
I hope you can help me out with this problem I have with xml2array. when there is one item in the XML it returns just the array (example 1), when there are multiple items it returns an extra dimension 0,1,2,3 (example 2). I don't want to have two sets of foreach code for 1 and many arrays.
How do I can convert example 1 into example 2?...
Hello, I know there has been quite a few comments on this topic.
I have tested quite a few IDE's for PHP, I have liked phpDesigner 7, which is great for PHP... but I like the way Dreamweaver has the live rendered view for quick layouts and design.
It could be done by rendering to the browser and using firebug, but I really like using ...
it's amzing when i send a null value in date() as a second parameter then it returns some time? how to remove this thing. i want that if a string is null or empty then doesn't do anything
$x=strtotime();
var_dump($x);
var_dump($x==NULL);
echo date('H:i',$x);
display
Warning: strtotime() expects at least 1 parameter,...
I am trying to load the cookie helper in my pre_controller hook for a 'remember me' function on our site. I thought that creating an instance of the CI object with $ci =& get_instance(); would allow me to access to loading helpers but this is not the case.
Thoughts?
$ci =& get_instance();
$ci->load->helper('cookie');
// does not loa...
I have a page that I restrict access to by checking if a certain session variable is set. But then again, users can clear that session variable and now have access to the page.
What can I do to prevent this? I am using php
...
Okay, I've been searching for this for way too long already... I'm trying to find out how I can return the filename of the page that's running an included javascript, from inside that javascript.
I can easily do this in PHP using $_SERVER['SCRIPT_FILENAME'], but in Javascript this seems to be a lot harder.
Do I really need to substri...
I am trying to create a WYSIWYG editor in PHP. So far I got this (I'm new btw):
HTML:
<form action="" method="POST">
<select name="fontSize" onchange="this.form.submit();">
<option>Font Size</option>
<option value="14px">14px</option>
<option value="24px">24px</option>
<option ...