[PHP] Re: Referer Question
you can call the predefined variable in PHP $HTTP_REFERER will return the address of the previous page. $REQUEST_URI will return the URI of current page. is those something you need? -- Hidulf http://www.hidulf.com George E. Papadakis [EMAIL PROTECTED] wrote in message 001f01c17d91$46a9af20$07dbdbc2@phaistonian">news:001f01c17d91$46a9af20$07dbdbc2@phaistonian... Hi, Say I have an image called in a page which is actually a PHP script (A banner image for example). Is there any variable I could use to detect where the the one that entered the page and ran the php script came from? I guess it's something like the referer of HTTP_referer or something. I could do it using some javascript and pass it to the php but that's not really acceptable. Thanks in advance, George E. Papadakis Project Manager Phaistos Networks S.A - http://www.phaistosnetworks.gr [EMAIL PROTECTED] T: +30 892 24450 F: +30 892 23206 - A DOL Digital Company -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: stripslashes
if you just want to add slashes to the data, use addslashes if you want to get away the alashes from the data, use it in the print or echo function. -- Hidulf http://www.hidulf.com Caleb Carvalho [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, if i have an array that is fetching the result to be display example, for ($i =1; $i=sybase_num_rows($result); $i++){ $row =sybase_fetch_array($result); $row[product] a href=solution.php?id=$row[prob_title]$row[prob_title]/a $row[description]$row[solution] where would i put the stripslashes function to get the description? ... I have tried up and down, but unfortunately am still learning php, sorry, Caleb Carvalho Application Engineer LoadRunner/APM -- --- Enterprise Testing and Performance Management Solutions -- --- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300 _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: still problem with getting HIGHest and LOWest VALUES
try this $x = mysql_query(SELECT * FROM $dealer_tabela ORDER BY cena); $row = mysql_fetch_array($x); natsort($row); print 'id - pricebr /\n'; while (list ($key, $val) = each ($row)) { print $key .' - ' .$val .'br /\n'; } -- Hidulf http://www.hidulf.com Teqila Man [EMAIL PROTECTED] wrote in message 001801c149bb$63026d60$017f@tm">news:001801c149bb$63026d60$017f@tm... The table has values : id - price 1 - 15 2 - 24000 3 - 65000 4 - 20 When i want to sort it $x = mysql_query(SELECT * FROM $dealer_tabela ORDER BY cena); while ($row = mysql_fetch_array($x)) { $id=$row[id]; $price=$row[price]; print($pricebr\n); } It returns me values : 15 20 24000 65000 What is false! It sorts this by getting first values ? How to fix it ? Thanks for your help tm. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: how to execute a php script thru a cron job
php script.php will able to run the php script in command line -- Hidulf http://www.hidulf.com Carry Ian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... hello, can anybody suggest me how to execute a php file thru a cron job? i have a php script which checks for invalid links in my links database and mails the result to the site admin if any 400 series errors are found. thanks in advance. regards carry Carry Ian e-mail: [EMAIL PROTECTED] -- Get real solutions to all your problems. http://www.salahkarindia.com - India's first advisory Portal Your friend, advisor, healer,companion!!! Register now to get free advice on all your problems. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: variable $PATH_INFO
$PATH_INFO is server variable, that appear on IIS but not apache. maybe you can try $REQUEST_URI, that return URL with query string there. or you can check all the server variable with phpinfo(). you can put this into the web server and run it on your browser. ?php phpinfo(); ? -- Hidulf http://www.hidulf.com Lolodev News Php [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... why can i read PATH_INFO server variable with apache under windows server ? with IIS 5 it's OK how can i ? ? print $PATH_INFO ? - Warning: Undefined variable: PATH_INFO in e:\sitephp\php_edit\htdocs\var.php on line 3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Best way to take a copy of a Database from Server to server
easy, go inside each table, there will be the structure dump function available. that will allow you to take the data for that table only. this may give you a smaller size of data. -- Hidulf http://www.hidulf.com Elias [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello. I have two MySql databases running on different servers. I have no root access and only PHP + Mysql and MysqlAdmin. How can i take a dump of first database (which is about 1MB) and restore that dump on the second one? Actually, I'm doing a structure dump, but the outputed SQL text is very big!..I'm not able to paste it all in the second server's sql query textbox. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Host OnLine ?
which web server are you using? if you are using apache as the web server, i think you can try the function apache_lookup_uri(). this function will return status of the request. or you can use fsockopen() that allow you to make connection to internet connection. -- Hidulf http://www.hidulf.com Arcadius A. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello ! Is there any function in PHP returning true or false or something similar when a given host is online or not ? Basically , I'm in need od something ping Thanks ... Arcad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]