I'm Getting Strange Ouput In Url String
I've been getting strange output in my url string within my app lately. It adds stuff like ?1174406969965 when I'm not even posting a url string on my forms. This doesn't seem like a big issue, but I was wondering if anyone has ran into this before. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Strange String Problem From Database.
I'm having a strange problem from a string im calling from a database: Database: Comments varchar(255) latin1_swedish_ci The problem is...most comments will split when the lengh of the container div is reached: This is my comment it is great that my text is splitting! BUT for some strange reason, certain comments are just comming out as a long line: This is my comment it is great that my text is splitting! There are no line breaks in the text to make the strings split, i just thought seen as over 3000 do, why are like a certain number not?
View Replies !
Ouput Formatting...
I would like to have the results of my query display in a grid format. The code below returns my thumbnails and links them to the actual images. However the entries in the database are simply paths to these images. I thought I could do this with CSS but the way this query is returning the results I am stuck and not sure how to resolve it. Any suggestions?
View Replies !
Select And Ouput
I'm trying to display a bunch of pictures in rows with 5 pictures per row. The filenames of the pictures are all stored in a MySQL database and the actual files are stored on the server. So, I know how to return and output all of the records from a MySQL table using a while statement. However, I need to only output five of them, insert a break in the HTML to start a new line, and then output five more and another break, and then do it again until there are no more pictures left. Anyone have any ideas?
View Replies !
Ouput Image
I am trying to output an image with text coming from a database" $image=mysql_result($result,$i,"image"); trying to output it like this: <img src=../prod_images/" . $image . " height=90> problem is that some images have a space in the text like "image 1". When it is outputted onto the screen, the browser does not read anything after the space. How can I get around this?
View Replies !
How To Ouput A Html Page To PDF ?
I been able to output data from MySQL page and put in into a generated HTML page using <TABLE>. Is there any fastest way to convert the HTML page directly into a PDF document for the user to download when the user click on a link, juts like the one (PDF Version / Printable Version) of Devshed.com?
View Replies !
Mysql/PHP To Excel Ouput?
I can successfully, output contents from two mysql tables into excel but I was wondering if there was a way of determining the actual layout - column sizes because at present they are all over tha place? .....
View Replies !
HTML Ouput Gets Scrambled While Parsing
On a page I want to display rows of recordset, coming from a mysql database. The problem is that somewhere halfway, PHP seems to generate messed up HTML code for no reason at all. e.g: The first 54 records display correct syntax. Code bellow is an examlpe of a row ouput for record 54 Code:
View Replies !
Sorting LDAP Ouput With PHP3
I am wanting to create a telephone list of all users on a LDAP database. I have managed to extract the data, but cannot get the code to sort the results in alphabetic order , based on surname. My code:
View Replies !
...so Strange, I Don't Know What I've Done...
I wrote a simple redirect script using platform as the deciding factor. If they are on a mac they go one place, windows another. It was working perfectly about 9 hours ago when I last visited the page. At that time I tested it repeatedly on a pc and a mac and it was working beautifully. Decide around now to call up the page from home and now it breaks in every browser on my home pc, Firefox, Opera, Netscape and IE... The script:Code: <?php if (preg_match("/Windows/i", "$_SERVER[HTTP_USER_AGENT]")){ echo "<meta http-equiv="refresh" content="1;url=http://www.jenswartz.com/cmnNEW/win/index.html">"; } else { echo "<meta http-equiv="refresh" content="1;url=http://www.jenswartz.com/cmnNEW/mac/index.html">"; } ?> The error:Not Found The requested URL /cmnNEW/win/win/index.html was not found on this server.
View Replies !
Strange Bug (?),
I've developed a site for a group of companies. And they wanted their adresses etc. on the site. When you click on the 2nd thing from the left in the menu, and then click 'fashion' you get a view of all the involved companies. To keep it easy to update, i made a folder for every company with their logo and a info.php-file with their address etc. in it. The BIG PROBLEM is that i get "marienel" twice though the "marienel" should be the address of Maxin, the logo is the right one, but the address is wrong. The info.php in both of those folders is right. I use the next code to sort thhings out: if ($Page=="OndernemersType"){ ## start gallery stuff function GetCompany() { global $Type; $the_array = Array(); $handle = opendir("./ondernemers/$Type/"); ## define what isn't a gallery while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { /* as descripted below: these "files" will not be added to the array */ $the_array[] = $file; } } closedir($handle); foreach ($the_array as $Company) { include_once ("ondernemers/$Type/$Company/info.php"); echo "<img src="img/spacer.gif" width="1" height="10"> <table width="370" height="100" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="1" height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="1" height="1" border="0"></td> <td height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="100%" height="1" border="0"></td> <td width="1" height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="1" height="1" border="0"></td> </tr> <tr> <td width="1" height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="1" height="100%" border="0"></td> <td> <table width="350" border="0" cellpadding="0" cellspacing="3"> <tr> <td rowspan="5" width="100" height="100" bordercolor="FFFFFF" ><img src="./ondernemers/$Type/$Company/logo.gif" width="90" height="90" title="$Name" border="0"></td> <td align="right" valign="middle" width="10" class="subtext" bordercolor="FFFFFF">onderneming:</td> <td class="bodytitle" bordercolor="FFFFFF">$Name</td> </tr> <tr> <td align="right" valign="top" class="subtext" height="11" bordercolor="FFFFFF">adres:</td> <td rowspan="2" bordercolor="FFFFFF" class="bodytext" valign="top">$Adress<br> $Postal<br> $Place</td> </tr> <tr> <td align="right" valign="middle" class="subtext" bordercolor="FFFFFF"></td> </tr> <tr> <td align="right" valign="middle" class="subtext" bordercolor="FFFFFF">website:</td> <td bordercolor="FFFFFF"><a href="$SiteAdress" class="bodylink" onFocus="this.blur()" target="_blank">$Site</a></td> </tr> <tr> <td align="right" valign="middle" class="subtext" bordercolor="FFFFFF">email:</td> <td bordercolor="FFFFFF"><a href="mailto:$CompanyEmail" class="bodylink" onFocus="this.blur()">$Email</a></td> </tr> </table> </td> <td width="1" height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="1" height="100%" border="0"></td> </tr> <tr> <td width="1" height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="1" height="1" border="0"></td> <td height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="100%" height="1" border="0"></td> <td width="1" height="1" bgcolor="#AEAEAE"><img src="./img/spacer.gif" width="1" height="1" border="0"></td> </tr> </table>"; } }; echo "<table border="0" cellspacing="0" width="100%" cellpadding="0"><tr> <td height="20" align="left" valign="top"><img src="img/spacer.gif" width="1" height="20"></td> </tr> <td> <span class="bodytext"> Onderstaande ondernemers nemen deel aan <i>food meets fashion</i> : </span></td> </tr> <tr><td>"; GetCompany(); echo "</td></tr></table>";};
View Replies !
Strange URL
a friend of mine is trying to move his website to my server. This site contains some PHP scripts which are called in an uncommon way, eg: http://xxxx/path1/path2/script.php/login In this case, /login should be passed to script.php This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work on my combination of Apache 2.0.46 / PHP 4.3.2
View Replies !
Strange Pop Up Behaviour
I intend to open a pop up window when click on a hyperlink. I use the following code. echo("<a href="java script:window.open('individual.php?nume=$row[ID]')" target="_blank">"); echo($nume); echo("</a>"); The problem is there it opens two windows. One of them is the one I want and other contains the text "[object]" (without quotes) and has in the address line: java script:window.open('individual.php?nume=102') Is there a possibility to get rid of this supplementary window? Why does it appears?
View Replies !
Strange URLs
I administer a large site mainly consisting of php pages. Error messages are handled by custom pages, which also email me the essential problem so I can fix navigation and other problems. For the past couple of weeks we keep getting Error 404 messages indicating that 'strange' page addresses are being requested from links within other pages of the site. For example: /%E2%80%9Dsupport.php Has anyone please got any idea what the '%E2%80%9D' might be and how it could be creeping in?
View Replies !
Something Strange With Fopen!
Try this code in php5, for me fopen() don't create a file when I use a header command after that: $fh=fopen($filename,'w'); fwrite($fh,$text); fclose($fh); header("Location: file2.php"); exit; do you see the same?
View Replies !
Something Strange Introduced In 5.2.0
If you have 5.2.0 installed, try this. Create a file called "TestThing.class.php" in the document root of a host (say the host is test.thing.net). Now, if you go to http://test.thing.net/TestThing the code in TestThing.class.php gets executed. Some kind of URL rewriting is going on here on PHP's end? I do not have mod_rewrite enabled on this server - it's installed, but "RewriteEngine On" is never issued. I cannot find anything in apache2.conf or php.ini that would cause this to occur. Is there some new thing in PHP5 that does this? This does not happen on an identical web site (all code the same, same apache version) on a server running 5.1.2. How would php even get *called* for that Request URI?
View Replies !
Strange Problem With Php
I have just set up a duplicate server running: apache 2.54, mysql 5.04 and php 5.04 This is the same setup as as the server we are using now, apart from the hardware inside. I have copied across the database and website, with exact same permissions as the first server. The problem is that part of the php code is executing but others arent: example: ------------------------ <?php // Make the connection mysql_connect("localhost", "dailyuser", "hidupituindah") or die(mysql_error()); echo "Connected to MySQL<br />"; mysql_select_db("sales") or die(mysql_error()); echo "Connected to Database<br />"; $query = mysql_query("SELECT product_name FROM `code_tbl` WHERE `code` ='P191") or die(mysql_error()); $result = mysql_fetch_array($query); echo "The name of the product is " .$result['product_name']. " "; ?> ----------------- This will work with no problems But when i change it to: ----------------- <?php // Make the connection mysql_connect("localhost", "user", "pass") or die(mysql_error()); echo "Connected to MySQL<br />"; mysql_select_db("sales") or die(mysql_error()); echo "Connected to Database<br />"; $query = mysql_query("SELECT product_name FROM `code_tbl` WHERE `code` ='$code") or die(mysql_error()); $result = mysql_fetch_array($query); echo "The name of the product is " .$result['product_name']. " "; ?> ----------------- and select the page with /test.php?code=P191 It connects to the database, but the result is empty, leaving the line: The name of the product is I am completely lost with this!! Not sure if its apache, php or sql... i am assuming this is php, although i know one shouldnt assume anything.
View Replies !
Strange CLI Behaviour
I've encountered some strange behaviour with PHP (4.3.2) using the CLI-API. When I provide an option in the first line of my script like so: #!/usr/bin/php -c /path_to_my_ini_file and call the script from the (bash-)commandline, PHP seems to ignore this setting. Calling the script with: php -c /path_to_my_ini_file myscript.php works fine. On the other hand, when the first line in my script is: #!/usr/bin/php -m and I call the script, the compiled in modules are listet. Thus the options are not ignored alltogether. Using #!/usr/bin/php -m -v results in an error: Error in argument 1, char 3: option not found Error in argument 1, char 4: option not found - Error in argument 1, char 3: option not found Usage: php [options] [-f] <file> [args...] .... Do you have any idea, where this behaviour comes from?
View Replies !
Strange IF Behaviour
$nst is definitely set to 4, as the echo $nst; gives 4. However, with: echo $nst; echo "<br>"; if ($nst= 1) { $fulls = "Full status for 1"; } elseif ($nst = 2) { $fulls = "Full status for 2"; } elseif ($nst= 4) { $fulls = "Full status for 4"; } echo "Status: " . $fulls; $fulls is *always* the first one "Full status for 1", even when $nst is 4. What am I doing wrong?
View Replies !
Strange If Statement
if ($result) $total = $result->RecordCount(); Is this if statement purely looking for the prescence of the variable of $result before executing?
View Replies !
Strange Session
I have got a strange problem with my sessions. I am able to login to my site and I can display the session values but one of my pages tells me I need to login even though I am. I have checked by echoing the sessions values and they are set so i don't know why it thinks I'm not logged in. Code:
View Replies !
Strange Include
when adding error_reporting(6143) after <? of this php code i get an error telling me 'unexpected T_INCLUDE' ... <? // include database connection include("paneldb.inc.php"); without the error_reporting the include works fine any idea why?
View Replies !
Strange Sorting
I am writting a php that adds numbers to a database and then displays those numbers sorted on the same page. This in its most simple form works great. but what I want to do now is have it split the database results in to multiple table. Example: The table will hold eight entries. If you add nine entries it will then split the results into two tables with five in the first table and four in the second yet still sorting them from lowest to highest. New entries then go to the proper table keeping a balance until they fill up at which time it splits again into three tables with six, six, and five entries. Basically I just need a way to count the returned results having the first half or third display in a table and then the second in the second table etc. I hope I have explained myself well enough and i have not added any code because I have no clue were to even start with this process.
View Replies !
Strange Warning
I'm connecting to a mssql from PHP on linux to insert a record $conn = odbc_connect("mssqlodbc", "uid", "pwd"); odbc_autocommit($conn, FALSE); odbc_exec($conn, "use domain2"); $result = odbc_exec($conn, $sql); odbc_exec gives me a strange warningf Warning: odbc_exec(): SQL error: ??N , SQL state 00000 in SQLExecDirect if I read the odbc_errmsg the result is random 3 characters strings like P?N NN. always different that have no sense.
View Replies !
Strange Float
I'm having trouble with float(1) converting to int(0) Quick sample code below. $a = 7.1; $i = (($a-7) * 10); //var_dump($i); var_dump((int)$i); $a = 7.1: Â Output: int(0) Â Expected: int(1) $a = 7.2: Â Output: int(2) Â Expected: int(2)
View Replies !
Strange Variables
when i use the following code; $current_available = mysql_query("SELECT availableplaces FROM tblCourses WHERE course_id='$_POST[selectedcourse]'"); $current_available -= 1; mysql_query("UPDATE tblCourses SET availableplaces='$current_available' WHERE course_id='$_POST[selectedcourse]'"); The variable $current_available is initially 32, after running the above it is changed to 2.
View Replies !
Strange SQL Error
I have a webpage that allows user to upload files to the database. It was working fine until a user tried uploading an excel file and get this error. MySQL server has gone away What does this mean? We tried uploading another excel file and works fine. Why is this?
View Replies !
Strange Query
I have a basic Search Form with a drop down box containing State Names, it's an option list thus the state names are abbreviated and abbreviated in the Database. e.g. Ohio = OH. Out of all the state abbreviations I have about 10 or so that will not pull the data from the Database when using a PHP form. So if I choose PA I will get a listing of PA records. But if I choose OH, I get no results on this particular form. And about 10 other states also get no results. But when I use Mysql Front, and run the same query on the Database as found in my PHP page, I get the results. The data is there in the database but the PHP form and associtated PHP Page with the Sql Statement and results refuses to grab this data. I have other queries on subsequent pages that do grab OH data. For instance I have a section where a Flat Text File can be created and if I choose OH, I get results. I have test to see if the variable is being passed and it is, and I also have a "YOu serached for the following: State: OH", to ensure the state variable has been passed. I rebuilt the an INDEX I have for this field. I have run all the MySql Optimize, Check and Repair Tools. Yet to no avail.
View Replies !
Strange Error
i moved my code from one server to another and this line: PHP Code: $server_dst = intval(date('I', $now)); cause this error: Code: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead what is date.timezone.setting referring to? is that a php ini directive? what is the best way to obtain the server's time zone?
View Replies !
Strange PHP Installation
i got php working on apache2 localhost server fine for about one week after using an installer. Then one day when accessing localhost it decided to ask me for a username and password, i didn't know what it was so i couldn't access the files. I then uninstalled everything properly cleared it from the sevices etc and reinstalled the package installer thing again but it could not install apache because port 80 was already being used. how do i clear port 80 so i can reintall the package.
View Replies !
Strange Error: $end
I'm trying to create a register form, with php validation. I've set it all up, with the form being submitted to RegisterAction.php which does the validation and INSERT query. When I submit the form, I get this error: Parse error: syntax error, unexpected $end in /path/to/file on line 68 I have no idea what this means,
View Replies !
Strange Way Of Searching
I'm wondering if i have $myvar['tree'] = 'this great tree' $myvar['apple'] = 'something which grows on a tree' is there any way to run a function over the $myvar and change $myvar['apple'] to have the word tree be a link. This is basicly all it needs to do, but if you know some really awesome opensource script let me know.
View Replies !
Strange Problem
Well I have been recently designing my own website, and part of that website will feature a page where the user can play flash games. So I decided to store the information (like the title, controls etc.) into a mySql database. The name of this database is 2fun4me, and inside I have two tables: cmsgames (which will store the information of the games) and cmstypes (which will hold the different types of games available). Code:
View Replies !
Strange Data...
I implemented a timer in my PHP page to see how long it takes to run. Here's the code: $this->start_time = microtime(); /* All the code */ $this->end_time = microtime(); $this->calc_time = ($this->end_time - $this->start_time); print "<tr><td colspan="5">Calculated in: <b>"; printf("%." . $this->time_precision . "f", $this->calc_time); print " seconds</b></td></tr> "; It works, but occasionally it returns a negative value, i.e. -0.890163 seconds. Why does this happen and how can I fix it?
View Replies !
$PHP_SELF A Strange Behavior!?
As we know $PHP_SELF is a PHP predifined variable. It handles the current file name and extension. I have a file contains commonly used functions. it's named func.php. Inside some of these functions, I use $PHP_SELF. I perform include for this file in another file called index.php.The strange behavior is, in some code area $PHP_SELF does not return any value, in other word, it does not return index.php. However, in other areas it works properly! So What's the cause of this problem? Is it bug in my PHP? I use PHP Ver 4.2.3 on Apache, and windows ME. All this from phpdev423 package.
View Replies !
Strange Behavior With PHP Over HTTPS, On IE
I have a login.php and register.php inside our httpsdocs directory, that is the root of https:// path. login.php and register.php both require_once a global.php file located inside httpdocs, the root of http://. In Firefox and IE, viewing the page certificate of https://pathtosite/login.php will show our Equifax provider. But, only on Firefox does it show the 256 bit-encryption lock icon in the status bar of the browser. For some reason this isn't showing in IE. I created a blank index.php inside of httpsdocs, and accessed it at https://pathtosite/index.php, and in IE it shows the lock icon in the status bar. Very strange. Is it because the files are referencing to global.php, which is located outside of https? I wouldn't think so... or is this just an IE issue?
View Replies !
Strange Problems With Permissions
I have created a folder in htdocs to tidy up my site, I have put scripts in there that call include files from another part of the site. The issue I have is that I get no such file or directory wehn loking for the include. However, if I put the same script in the standard htdosc, its all ok. I have looked at the permissions of the folder and it is set to 777, so I dont see the problem there.
View Replies !
Help With Strange Variable Problem
I have a script that worked but on my new server it doesnt. Its really simple, its like; if ($go == "projects"){ echo '<p style="margin-left: 30; margin-right: 30"><font size="2">>>PROJECTS</font></p>' } As simple as above, but yet its not working. When $go is equal to anything it should show whats between { } but its no displaying anything. I think its a php.ini problem because i have another script and it does not show its variables.
View Replies !
Strange WHILE Loop Problem.
I brought a script that works at one location to a 2nd location, and the while loop that it uses to process through a file only does one iteration at the 2nd location, vs. working perfectly at the other location. 2nd location is using ver 4.2.1, the first location I believe is the same, I know it is 4.2.x something. I get no PHP errors running the script at the 2nd site it just does not seem to want to loop correctly. This is the starting code that I am running for the WHILE. PHP Code:
View Replies !
Strange Issues With $_Cookie
Hey Guys - Ever see anything like this? I've set a cookie successfully (it is showing up correctly in my cookies) but when I try to reference the cookie via $_COOKIE, it is returning an undefined, and print_r($_COOKIE) only brings up one cookie, [PHPSESSID] => 7j3r750kojkdig8k6uf34adpd7, although I've set quite a few cookies. It's happening under both mozilla and safari, yet the cookies set are appearing in both.
View Replies !
Strange Characters In Text Box
In one application I have some text fields in 5 languages(english, italian, german, french and greek). The text i save into db has max length 600 characters (checked by javascript while typing), the db field property is Longtext. Now the strange part: when i show the saved text into a form, it shows "................................."
View Replies !
Strange Math Result... 1-1= -1 ???
See something weird on this result? 632.35 - 632.35 = -1.13686837722E-013 If anyone has seen something similar, please let me know! this a part of the code: $total_due = abs( $order_total ) - abs( $total_paid ); echo( $order_total . " - " . $total_paid . " = " . $total_due ); I've added the abs() in order to be sure that I'm dealing with numbers, I've also used is_numeric() and confirmed it. The echo() is showing the result I pasted up there.
View Replies !
Classes: Strange Behavior
I have a problem with code like this (PHP 5.1.4): fila A.php: ======= include(B.php); class document extends obj { ......... } file B.php: ======= $GLOBALS['x']->new we(); function __autoload($class_name) { ...here is the code to load classes... } file C.php ======= class we extends obj { private $document; function __construct() { $this->document = new document(); } } The problem is that after loading A.php into browser, PHP cannot find document class which is defined in the A.php file! The problem is even more strange - if document class doesnt extends obj class than everything is ok. (The problem exact is that __autoload special function is called when in file C.php constructor of class we try to make the document object (all other classes like obj has been already loaded). Do you have any idea what is wrong with that?
View Replies !
Strange POST Vs GET Behaviour
I have set up my first Linux box. But I experience some strange POST behaviour. Maybe this is a know bug or maybe I have done something wrong with my setup. But I just can't seem to find any solution about it on google. I have the following two scripts: 1.php: <form name="input" action="2.php" method="post"> to pass: <input type="text" name="pass"> <input type="submit" value="Submit"> </form> 2.php: <?php echo "passed: ".$_POST['pass']; echo "<pre>"; print_r($_REQUEST); echo "</pre>"; ?> This results in: Notice: Undefined index: pass in /var/www/2.php on line 3 passed: Array ( ) The above script doesn't pass the POST. But when I change it to GET it does get passed to 2.php. Does anyone have an idea? I am using: Debian 3.1r4 Apache v1.3.33 PHP v4.3.10-18
View Replies !
FastTemplate - Strange Problem
I have just uploaded page based on FastTemplate to my virtual server. Page generate data from MySQL base. Everythink is OK on my and several my friend's machines. But one of my friend has error on te same www: [DTemplate] Warning: no value found for variable: {VARIABLE}. Why? How is it possible? The same version of browsers. I thought that code is generated at server-side; the same results for all of the users but not :(
View Replies !
ISSET Acting Strange
I enter zero into a text box. Then I check if something was entered: $frm = $HTTP_POST_VARS; if (isset($frm["text_box"])){ echo "Nothing was entered!";} The problem is if I fill that field with a zero (0) a get a message "Nothing was entered". But if I enter two zeros (00) everything seems to be OK. Why is that? I thought that isset checks if there is anything in the variable. And the is. A zero. Isn't that a value too?
View Replies !
Include With Strange Phenomena...
I developed a suite of php scripts and i've tested it with PHP 4.3.3 and Apache; obiouvsly all works fine. Now I had a customer that want to buy my application and it needs to run all the scripts on IIS 5 and possibly with PHP5 (i've warned him that is not a production release but it want to look forward (...!!)) BUT a very strange things happens; this is the code: ----------------------------------------------- <?PHP require "globvar.php"; require "globfunc.php"; ----------------------------------------------- When i call the function contained into "globfunc.php" the messages are: Notice: Undefined variable: db_host in E:WWWTestglobfunc.php on line 46 Obiouvsly the variables he's looking for are correctly defined in "globvar.php". The values of the variables (printed into the function defined in "globfunc.php" are null). Same problem when i replace PHP5 with PHP4.3.3! The only way to solve the problem is to... reinstall Apache instead of IIS!!! Well... my OS is XpPro + SP1 but my customer want to run on Windows Server 2003.
View Replies !
Strange Strtotime() Behavior
I'm trying to use the strtotime() function to manage sessions. But I get the following <?php print(time() . " - " . strtotime("+1 hour")); ?> outputs: 1097380666 - 1097308800 Strange strtotime("+1 hour") produced a time stamp less than the current time. It also never changes. In other words strtotime("+1 hour") always results in the time stamp 1097308800. I have also tried strtotime("+1 hour", time()) with the same result Is this correct, have I misunderstood the strtotime() function? I'm running Gentoo with kernal 2.6.8.1, php 5.0.1, apache2
View Replies !
Strange Error In Server Log
I have two Apache servers running the same site code, on on most page accesses one gives the following error in the server's log: PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0, referer: The other has no errors reported. I only use require_once to include files.
View Replies !
Mysql Strange Behaviour
I've no access to mysql NG, so I ask here. I've a strange behaviour with mysql. when I do a select from a simple table, then I get a result for a certain field when I then put a "union" and create a query that return no result, I get an other result for that field. All other fields seems ok. the field's type are different (one is a mediumint(8) and the other is a char(13)
View Replies !
|