Re: [PHP] N/A

2005-08-09 Thread Jasper Bryant-Greene
R. Ragunathan wrote: can we implement lock to a table using postgres with php. if any of u all knows the solution do reply back. You may also want to look at the following URL: http://www.postgresql.org/docs/8.0/interactive/explicit-locking.html -- PHP General Mailing List (http://www.php.net

Re: [PHP] N/A

2005-08-09 Thread Jasper Bryant-Greene
R. Ragunathan wrote: can we implement lock to a table using postgres with php. if any of u all knows the solution do reply back. Please, for the second time, simply read the manual. http://www.php.net/pgsql It explains both the issues you have recently posted about very well. If you have a s

[PHP] N/A

2005-08-09 Thread R. Ragunathan
hi, can we implement lock to a table using postgres with php. if any of u all knows the solution do reply back. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Wee Keat
Marco Tabini wrote: > Unfortunately, I can't seem to be able to connect to your server right now. > > What server software are you using? I have never heard of this approach not Info: --- Apache-AdvancedExtranetServer/2.0.50 Mandrakelinux/7.2.101mdk mod_ssl/2.0.50 OpenSSL/0.9.7d PHP/4.3.8 T

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Marco Tabini
On 8/9/05 10:30 PM, "Wee Keat" <[EMAIL PROTECTED]> wrote: > Hi Marco, > > Thanks for taking the time to answer my questions. > > Marco Tabini wrote: >> That's been discussed a few times on the list. For example: >> >> http://beeblex.com/lists/index.php/php.general/190410 > > Yes. I'm truly awa

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Wee Keat
Hi Marco, Thanks for taking the time to answer my questions. Marco Tabini wrote: > That's been discussed a few times on the list. For example: > > http://beeblex.com/lists/index.php/php.general/190410 Yes. I'm truly aware of that and have tried it but to no avail. I've added the code provided i

Re: [PHP] graph - dowloads/hr

2005-08-09 Thread Philip Hallstrom
i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc. each time someone downloads a file it is incremented in the db and the la

Re: [PHP] Server-Client connection via TCP port with PHP

2005-08-09 Thread Marco Tabini
Hi Eli-- On 8/9/05 9:40 PM, "Eli" <[EMAIL PROTECTED]> wrote: > Hi, > > I got a PHP program on my server. I want to open a live TCP port > connection between my server to a client (client is developed in .NET, > not regular HTTP browser). > How can I do this using PHP? You can use the socket fun

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Marco Tabini
Hello Wee-- That's been discussed a few times on the list. For example: http://beeblex.com/lists/index.php/php.general/190410 Cheers, Marco On 8/9/05 8:59 PM, "Wee Keat" <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been struggling to detect HTTPS connection for a shopping cart. > I've use

[PHP] Problem detecting HTTPS connection

2005-08-09 Thread Wee Keat
Hi all, I've been struggling to detect HTTPS connection for a shopping cart. I've used $_SERVER['SERVER_PORT'] to check for 443 and it kept on showing up as 80. Does anyone have any idea why this is happening? Is it the server config? I've called the server administrator and he said that it is ru

Re: [PHP] Server-Client connection via TCP port with PHP

2005-08-09 Thread Richard Davey
Hello Eli, Wednesday, August 10, 2005, 2:40:07 AM, you wrote: E> I got a PHP program on my server. I want to open a live TCP port E> connection between my server to a client (client is developed in E> .NET, not regular HTTP browser). How can I do this using PHP? Look in the manual at the quite c

[PHP] Server-Client connection via TCP port with PHP

2005-08-09 Thread Eli
Hi, I got a PHP program on my server. I want to open a live TCP port connection between my server to a client (client is developed in .NET, not regular HTTP browser). How can I do this using PHP? -thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] graph - dowloads/hr

2005-08-09 Thread Sebastian
Philip Hallstrom wrote: i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc. each time someone downloads a file it is increme

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Jasper Bryant-Greene
Sebastian wrote: yeah sorry, i must of deleted the original topic and all i had was the followups.. anyway, what do you want, the cake and eat it too? why two types of 404's? i mean you either use ErrorDocument or use php headers.. i guess i dont understand why use both.. to send 404 header

Re: [PHP] graph - dowloads/hr

2005-08-09 Thread Philip Hallstrom
i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc. each time someone downloads a file it is incremented in the db and the las

Re: [PHP] php output to string

2005-08-09 Thread Jesús Fernández
well, i found a little problem with this. when $url looks like "http://myhosting/xml.php"; and i upload it to my hosting, it times out before getting the content. that php needs includes and when i try $url="/dir/xml.php" it gives me a not found error. the file it doesnt find is one of those i

[PHP] Insert one or many chekbox values in a db mysql

2005-08-09 Thread Jesús Alain Rodríguez Santos
Hi, I have 5 chekboxes in a page, I would like insert the values of all chekboxes checked in a mysql db. -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio. -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] php output to string

2005-08-09 Thread Cafer Şimşek
Your $url variable's content like what? So, if you using like ftp://foo.bar it's the generally normal that you see the codes. If not, would you like to give me the $url's content? (Sorry for my bad English) Jesús Fernández <[EMAIL PROTECTED]> writes: > yes, the remote machine runs php (its

Re: [PHP] php output to string

2005-08-09 Thread Jesús Fernández
yes, the remote machine runs php (its my hosting's server) -- "El único error real es aquel en el que no hemos aprendido nada."

Re: [PHP] php output to string

2005-08-09 Thread Cafer Şimşek
Ok, Has the remote machine configured to run the php? So, the remote machine is your $url variable's host. Or, you may try browse the URL via any browser (etc; IE, Firefox). If you see the PHP codes, the remote machine has not been configured to run PHP. Jesús Fernández <[EMAIL PROTECTED]> writ

Re: [PHP] php output to string

2005-08-09 Thread Jesús Fernández
thanks, it works, but that returns the php code. what i actually need is the output of that php code evaluated. -- "El único error real es aquel en el que no hemos aprendido nada."

Re: [PHP] php output to string

2005-08-09 Thread Cafer Simsek
Hi, You may make it with fopen() like that; $fd = fopen($url, "r"); $returnString = "" while (!feof($fd)) { $returnString .= fgets($fd); } fclose($fd); Jesús Fernández <[EMAIL PROTECTED]> writes: > Hi there, > i'm a little newbie you know. > I have a php that returns some xml, and i wa

[PHP] graph - dowloads/hr

2005-08-09 Thread Sebastian
i'd like to create a graph with the amount of downloads per hour, i am a little confused how i should go about this. i know i can use rrdtool/mrtg, but im looking for more 'user friendly' graphs with custom colors,etc. each time someone downloads a file it is incremented in the db and the la

[PHP] php output to string

2005-08-09 Thread Jesús Fernández
Hi there, i'm a little newbie you know. I have a php that returns some xml, and i want to parse that xml through php. the xml returned depends on the variable passed thru the url. what i need is to get the output of that php file and store it in a string. i have tried everything i have though,

Re: [PHP] select * from...

2005-08-09 Thread tg-php
Sounds like you want to do an inner(?) join on the two tables. This will show you where you have matches between the two tables but also show you the items that don't match (no special instructions). If I understand right, you have an "order_id" in both "orders" and "special_orders_instruction

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Sebastian
Jasper Bryant-Greene wrote: Sebastian wrote: Paul Waring wrote: On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header("Status: 404 Not Found"); but

[PHP] select * from...

2005-08-09 Thread [EMAIL PROTECTED]
Hi to all, It's more mysql question than php, but I like you more than mysql guys! :) Let's say I have a table called "orders" and other table called "special_orders_instructions". Logically, one column in "orders" table should be link to "special_order_instructions" (foreign key ?) and if that

Re: [PHP] PHP error tracking on new server

2005-08-09 Thread Lawrence Kennon
- Original Message - From: "Terry Romine" <[EMAIL PROTECTED]> To: Sent: Sunday, August 07, 2005 10:03 AM Subject: [PHP] PHP error tracking on new server ... The problem is that when an error occurs, the page just comes up blank, Does your hosting service give you access to the PH

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Jasper Bryant-Greene
Sebastian wrote: Paul Waring wrote: On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header("Status: 404 Not Found"); but this did not work either.

Re: [PHP] re: blank page with PHP

2005-08-09 Thread Sabine
Hi Bruce, the error_reporting level in your php.ini is set to 81, that means only a few sorts of errors will be shown on your site. Even parse-errors are hidden. But you can set it to a different level in your script. Have a look at error_reporting in the manual. Best regards Sabine Bruce Gi

[PHP] blank page with PHP

2005-08-09 Thread Bruce Gilbert
I have a form which displays fine with html, but when I add the php thew page is blank. I am re-using code which I have on another form so I know it works. I was wondering if there might be something in the PHP confuration which may be preventing the page from displaying. IE error reporting . Can

[PHP] re: blank page with PHP

2005-08-09 Thread Bruce Gilbert
I guess this would help. The URL to my PHP config is http://www.wealthdevelopmentmortgage.com/test/form_test/info.php -- ::Bruce:: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to add .zip or gzip compression to the php module

2005-08-09 Thread Mauricio Pellegrini
Hi , This time I'm trying to add support for compressed files into the PHP module version 4.3.4 running with Apache 1.3.29 I remember adding dbase and mysql support with the following command > './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' > '-enable-dbase' Now I need t

Re: [PHP] Session-problem? Simple counter won't work

2005-08-09 Thread Jochem Maas
Sabine wrote: Hello to all, I'm working on a server where even a simple counter-script won't work. session_start(); if (isset($HTTP_SESSION_VARS['counter'])) { $HTTP_SESSION_VARS['counter']++; } else { $HTTP_SESSION_VARS['counter']=1; } On every refresh the counter is set to 1. I take

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Sebastian
Paul Waring wrote: On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header("Status: 404 Not Found"); but this did not work either. Try searching th

Re: [PHP] parallel execution of php code?

2005-08-09 Thread Martin van den Berg
> I have lots of places where I used to do this. Since MySQL 4.1 I've > changed it to something like: > > "INSERT INTO mytable SET id = 123, bla = '$x' ON DUPLICATE KEY UPDATE > bla='$x'" > > This saves you a query, and makes it easier to isolate the insert/ > update as it will play nicely with aut

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Eric Gorr
Paul Waring wrote: On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: Should it? Is it possible to write a doesexists.php script which would cause the 404 directive to be triggered? I also tried: header("Status: 404 Not Found"); but this did not work either. Try searching the archi

Re: [PHP] rename an uploaded file.

2005-08-09 Thread Stut
Bosky, Dave wrote: I seem to be having some trouble renaming a file after uploading it. It always returns a warning message indicating I have an invalid attribute in my rename statement. $old = 'C:\\homedirectory\uploadedfiles\\newfile.gif'; $new = 'C:\\homedirectory\\uploadedfiles\\2005-08-

[PHP] rename an uploaded file.

2005-08-09 Thread Bosky, Dave
I seem to be having some trouble renaming a file after uploading it. It always returns a warning message indicating I have an invalid attribute in my rename statement. Thanks, Dave --- Example: $old = 'C:\\homedirectory\uploadedfiles\\newfile.gif'; $new = 'C:\\homedi

RE: [PHP] How to search products on my site

2005-08-09 Thread Jim Moseby
> > I have a site with some phone products. I want to search for > a specific products. I use this: > > SELECT product_id, product_name FROM products WHERE > product_name LIKE '%$search_string%' > > It works fine if the search string counts 1 word. But if the > search string id counts 2 or

Re: [PHP] How to search products on my site

2005-08-09 Thread Miles Thompson
At 08:54 AM 8/9/2005, [EMAIL PROTECTED] wrote: Hi, I have a site with some phone products. I want to search for a specific products. I use this: SELECT product_id, product_name FROM products WHERE product_name LIKE '%$search_string%' It works fine if the search string counts 1 word. But

RE: [PHP] How to search products on my site

2005-08-09 Thread Jay Blanchard
[snip] I have a site with some phone products. I want to search for a specific products. I use this: SELECT product_id, product_name FROM products WHERE product_name LIKE '%$search_string%' It works fine if the search string counts 1 word. But if the search string id counts 2 or 3 or more words

[PHP] How to search products on my site

2005-08-09 Thread virtualsoftware
Hi, I have a site with some phone products. I want to search for a specific products. I use this: SELECT product_id, product_name FROM products WHERE product_name LIKE '%$search_string%' It works fine if the search string counts 1 word. But if the search string id counts 2 or 3 or more word

RE: [PHP] N/A

2005-08-09 Thread Jay Blanchard
[snip] can we implement postgres transactions with php. if anyone knows the solution please reply back. [/snip] Have you read http://www.php.net/postgres ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] N/A

2005-08-09 Thread R. Ragunathan
hi, can we implement postgres transactions with php. if anyone knows the solution please reply back. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re: parallel execution of code

2005-08-09 Thread hope
U might try omthing like this:: $query = "SELECT id FROM mytable WHERE bla LIKE " . $x ."; $result = mysql_query($query, $cnn) or die(mysql_error()); $totalRows_result = mysql_num_rows($result); if($totalRo

Re: [PHP] Class / app for reading web pages and storing in a mySQL DB

2005-08-09 Thread Burhan Khalid
Alan Milnes wrote: I'm interested in extracting a series of web pages from a Yahoo forum and storing them in a MySQL database so I can generate things like most number of posts etc. I've searched on Google but most of the links seem to be for email harversters! Anyone have any tips for where

Re: [PHP] download snippet

2005-08-09 Thread Burhan Khalid
Roger Thomas wrote: Am looking for code snippet to download file. It should be able to detect mime-types. Thanks. http://www.php.net/manual/en/function.header.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] download snippet

2005-08-09 Thread Roger Thomas
Am looking for code snippet to download file. It should be able to detect mime-types. Thanks. -- Roger --- Sign Up for free Email at http://ureg.home.net.my/ --- -- PHP General Mailing List (http:/

[PHP] Session-problem? Simple counter won't work

2005-08-09 Thread Sabine
Hello to all, I'm working on a server where even a simple counter-script won't work. session_start(); if (isset($HTTP_SESSION_VARS['counter'])) { $HTTP_SESSION_VARS['counter']++; } else { $HTTP_SESSION_VARS['counter']=1; } On every refresh the counter is set to 1. I dont' know, where to

Re: [PHP] parallel execution of php code?

2005-08-09 Thread Marcus Bointon
On 8 Aug 2005, at 16:07, Martin van den Berg wrote: $query = "SELECT id FROM mytable WHERE bla LIKE " . $x ."; $rows = execute( $query ) if ( $rows == 0 ) { /* some more processing */ $query = "INSERT INTO mytable .. etc etc execute( $query ) } I have lots of places where I used to

Re: [PHP] Generating a 404 status message with header()

2005-08-09 Thread Paul Waring
On Mon, Aug 08, 2005 at 04:37:12PM -0400, Eric Gorr wrote: > Should it? Is it possible to write a doesexists.php script which would > cause the 404 directive to be triggered? > > I also tried: header("Status: 404 Not Found"); but this did not work either. Try searching the archives for this list