Re: [PHP] Byte Array

2004-12-14 Thread Richard Lynch
Ian Firla wrote: Just a follow-up to myself... I decided to try packet sniffing to see what was going on and ettercap confirms that I'm sending out strings rather than data of the type stored in my array: 16:12:26 192.168.0.101:32779 -- 192.168.0.88:32896 | UDP | : 3331

Re: [PHP] bargraph gd not working

2004-12-14 Thread Richard Lynch
Oooop! Hit Send too soon. After you put the header BACK IN, the image should work, except some versions of IE are so badly-broken that they've cached the fact that that URL is text, not an image, and will refuse to display it as an image, and will dump out the image contents to the browser.

Re: [PHP] Loops

2004-12-14 Thread M. Sokolewicz
Gareth Williams wrote: $result = mysql_query(SELECT name, description FROM table); while ($row = mysql_fetch_assoc($result)) { echo {$row['name']}br /$row['description']; that will throw errors. echo {$row['name']}br /{$row['description']}; would work, just like all of the following would

[PHP] Free Auction Scripts

2004-12-14 Thread Robert Sossomon
Anyone have some good free auction scripts? I can write what I want it to do, but why re-invent the wheel if I can find one at a great price (FREE)? Thanks, Robert -- Robert Sossomon, Business and Technology Application Technician 4-H Youth Development Department 200 Ricks Hall, Campus Box 7606

Re: [PHP] bargraph gd not working

2004-12-14 Thread M. Sokolewicz
Richard Lynch wrote: Oooop! Hit Send too soon. After you put the header BACK IN, the image should work, except some versions of IE are so badly-broken that they've cached the fact that that URL is text, not an image, and will refuse to display it as an image, and will dump out the image contents

Re: [PHP] max_input_time

2004-12-14 Thread Richard Lynch
Rick Lim wrote: Hi there, I am trying to run a command line windows php script where I wait for characters from the serial port i.e. $sTemp = fgets($Serialfp); After about 60 seconds the script times out and quits, I have tried to change max_input_time in php.ini but it still times out in

Re: [PHP] Google search indexing

2004-12-14 Thread James Stewart
On Dec 14, 2004, at 1:04 PM, Jason FB wrote: If the answers to the questions above are Yes and No, then I could use a dynamically generated list of links with ?flag= to make Google crawl through the part of the MySQL content (as displayed through the scripts in HTML) that I want it to, using

[PHP] Loops

2004-12-14 Thread Steve Marquez
Greetings. I am trying to display looped information from a MySQL database in a PHP file. Loop $name (witht a br /) then $description End of loop I would like to loop the multiple variables rather than put all the variables into a single variable with an array. I can not figure out how to do

Re: [PHP] bargraph gd not working

2004-12-14 Thread Richard Lynch
jm wrote: Hi guys: I'm using php5 on winxp with IIS. I'm trying to run a simple bar graph demo found it on phpbuilder site. When I run it I get nothing but an x in the top left corner of my web page(no errors nothing). GD is uncommented in my php.ini, ext dir set and I have verified that GD

Re: [PHP] fopen/fpassthur

2004-12-14 Thread John Holmes
Sebastian wrote: Q I hope you have some good data validation going on too :) I am not too sure about how secure it is. basically, the files are called by an ID eg, download?type=fileid=3 so i query the db to get check if its a valid id and get the filename from the db as well. if its not found it

[PHP] getting a date 25 years back

2004-12-14 Thread Merlin
Hi there, I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; $start_from = date(Y-m-d,strtotime(- .$years. year)); Somehow it always ads the years

Re: [PHP] CGI vs Apache module

2004-12-14 Thread Greg Donald
On Tue, 14 Dec 2004 15:09:21 -0600, Sandy Keathley [EMAIL PROTECTED] wrote: We have a Redhat server, which only allows PHP 4.3.2 to be installed by RPM. I manually compiled and installed 4.3.9 using the configure params as the RPM install. Did you remove the PHP rpm(s) first? It compiled

Re: [PHP] Slow Zend Optimizer

2004-12-14 Thread Richard Lynch
Bruno B B Magalhães wrote: I've installed the zend Optimizer with my Mac OS X, Apache 1.2, PHP5. And guess what, it became about 40% slower!!! My framework was running for example in the modules administration (admin area) at 0.104ms, and now the average is 0.2ms - 0.24ms Does anybody have

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Greg Donald
On Tue, 14 Dec 2004 22:17:57 +0100, Daniel Schierbeck [EMAIL PROTECTED] wrote: And hey, Eclipse is free! So is vim. PHP explodes right on the screen for me, an IDE is so not required. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General

Re: [PHP] Infinity and nested categories

2004-12-14 Thread Bruno B B Magalhães
Thanks Richard! Helped a lot! Regards, Bruno B B Magalhaes On Dec 13, 2004, at 4:16 PM, Richard Lynch wrote: Bruno B B Magalhães wrote: Hi again everybody, well, I've asked it before, but I couldn't work on this at all. As some knows I have a system witch has a category system. The generic part of

Re: [PHP] Google search indexing

2004-12-14 Thread Richard Lynch
I've heard different claims about how google handles GET queries and am pretty sure it doesn't submit POSTed forms. I can guarantee that at least one time one search engine indexed a URL with GET data in it. Shocked the [bleep] out of me to find one of my dynamic pages in a search results

[PHP] Re: Good and free encoder for PHP5

2004-12-14 Thread Manuel Lemos
Hello, Mário gamito said the following on 12/14/2004 08:51 AM: Does anyone around here knows a *good* and *free* encoder for PHP5 ? I used to run Turck, but it seems that somehow it has been discontinued. (At least, the last release occured about a year ago). Did it stop working? My Turck copy

RE: [PHP] Byte Array

2004-12-14 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Ian Firla Sent: 14/12/04 17:52 On Tue, 2004-12-14 at 08:40 -0800, Richard Lynch wrote: Ian Firla wrote: Just a follow-up to myself...

[PHP] Re: MMS?

2004-12-14 Thread Manuel Lemos
Hello, Robert Sossomon said the following on 12/14/2004 05:18 PM: Anyone know of some scripts to email ringtones/graphics to your cell phone? That is a bit vague, but you find something in these classes for Wireless and Mobile devices. If you do not find, you may want to post a a message in the

Re: [PHP] scripting with php

2004-12-14 Thread Robert Cummings
On Tue, 2004-12-14 at 16:38, Bruno Santos wrote: Hello all. i'm working with php for about 3 years and i must say: i cant get tired of it !! :-) since my first page, ive used php as a server side language, embebed in html pages. now, i need to develop a small script to run as stand

[PHP] scripting with php

2004-12-14 Thread Bruno Santos
Hello all. i'm working with php for about 3 years and i must say: i cant get tired of it !! :-) since my first page, ive used php as a server side language, embebed in html pages. now, i need to develop a small script to run as stand alone. how can i do it ? just like bourn shell, ive used

[PHP] Turn off out of offfice messages for the list, please

2004-12-14 Thread John Holmes
List, I'm sure many of us will be taking some time off for the holidays (if you aren't already). Just a friendly reminder to either 1) unsubscribe while you're gone (you won't miss much, trust me) or 2) set your notice to not reply to postings to the list. These get quite annoying after a

Re: [PHP] Re: Good and free encoder for PHP5

2004-12-14 Thread Octavian Rasnita
Oh yeah but probably the problem is that it wasn't updated in order to work with PHP 5. Or does it does? Teddy - Original Message - From: Manuel Lemos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 1:16 AM Subject: [PHP] Re: Good and free encoder for PHP5

[PHP] Getting mail() to return false/0

2004-12-14 Thread Paul Reinheimer
Hi, I was working with the mail function today to experiment with sending a few messages, and threw in the apropriate checks so when mail() can't send the message the apropriate errors were raised, however, I discovered I couldn't actually get mail() to return 0. Take the following call:

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Rory Browne
I use kdevelop. I'm not sure how cross-platform it is, since I've never tried to get it working on a non-linux machine, but it should run anywhere KDE will run. I'm not sure what you'd need to do to get it running on Windows. Vim is a text editor, albeit a very good one, but Not an IDE, even

[PHP] getting name of class from a parent

2004-12-14 Thread Rory Browne
Hi I need a way to create an instance of a class, from a parent of that class. Lets say I have the following code: ?php class base_class{ static function get_instance(){ // code I need goes here } } class utility_class { } $instance = utility_class::get_instance() ? You may

Re: [PHP] PHP Apache Upload file Permission denied

2004-12-14 Thread Michael Leung
Yes, I have restarted my Apache. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google search indexing

2004-12-14 Thread Jason Wong
On Wednesday 15 December 2004 02:04, Jason FB wrote: Will Google see both pages if I have both linked with A HREF= tags? Or will it stop at the question mark, only loading the page somepage.php and ignore the ?flag=14 and ?flag=15 or whatever? Will it index ?flag=14 and ?flag=15 as two

[PHP] CGI vs Apache module

2004-12-14 Thread Sandy Keathley
We have a Redhat server, which only allows PHP 4.3.2 to be installed by RPM. I manually compiled and installed 4.3.9 using the configure params as the RPM install. It compiled the CGI version, which seems to run, but Apache (2.0) doesn't recognize it. phpinfo() still reports 4.3.2. Any ideas

Re: [PHP] Loops

2004-12-14 Thread M. Sokolewicz
Richard Davey wrote: Hello Steve, Tuesday, December 14, 2004, 3:52:26 PM, you wrote: SM I would like to loop the multiple variables rather than put all the SM variables into a single variable with an array. I can not figure out how to SM do this. I assume you have placed the MySQL query and

Re: [PHP] scripting with php

2004-12-14 Thread Christopher Fulton
one more note...you may look at the manual under http://us3.php.net/features.commandline -Chris On Tue, 14 Dec 2004 16:04:15 -0800, Christopher Fulton [EMAIL PROTECTED] wrote: Not sure if this is what you want, but i know that you can call php from a command line by using. php

RE: [PHP] Unreliable mail delivery through PHP

2004-12-14 Thread Chris W. Parker
Jason Wong mailto:[EMAIL PROTECTED] on Monday, December 13, 2004 10:52 PM said: On Tuesday 14 December 2004 07:43, Chris W. Parker wrote: $headers = From: $from\n .Reply-To: $from\n .X-Mailer: PHP/.phpversion(); Headers should be separated by \r\n. Not

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Daniel Schierbeck
Craig Slusher wrote: ... Another alternative is to use Eclipse IDE with the PHPEclipse.de plugin. I've messed around with it a little bit and it's not too bad. Yeah, I'd go with Eclipse. It also integrates with CVS WebDAV (and FTP!), and have some cool features. I've tried off Zend Studio, but I

Re: [PHP] scripting with php

2004-12-14 Thread Marek Kilimajer
Bruno Santos wrote: Hello all. i'm working with php for about 3 years and i must say: i cant get tired of it !! :-) since my first page, ive used php as a server side language, embebed in html pages. now, i need to develop a small script to run as stand alone. how can i do it ? just like

[PHP] finding out the age from a birthdate

2004-12-14 Thread Merlin
Hi there, i am somehow strugling to find out how to get the age of a person from its birthdate. If I divide the date from today, there still is a year instead of the age. And deviding the years does not work since we should be accurat about the day. I tried: $age[] = date(Y,(time()-$birthday));

Re: [PHP] Google search indexing

2004-12-14 Thread Merlin
You could also use a file called for example pictures parse this file with php (use an apache directive for that) and add the filename. Then you can get the filename from the url and interprete it inside the php file pictures. Its funny what you can do with php, and nobody will notice, not even

[PHP] Conflicts between c-client and MySQL

2004-12-14 Thread Rodolfo Gonzalez Gonzalez
Hello, I'm trying to compile with: UW-IMAP's c-client 2004, MySQL 4.1.7, php-5.0.3RC2 and php-5.0.2, configure somethingmorehere --with-imap --with-mysqli, and I get this: /usr/lib/libc-client.a(misc.o)(.text+0x8a4): In function `hash_reset':

[PHP] PHP Question

2004-12-14 Thread CFDelBene
I am new to this languaue and need some info. I am not a programmer but I need some info for a project I am working on. I have data in MS Access and I want to create graphs and charts using this data to display on a website. I read on your website PHP is able to do this. What do I need to know

Re: [PHP] getting a date 25 years back

2004-12-14 Thread John Nichel
Merlin wrote: Hi there, I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; $start_from = date(Y-m-d,strtotime(- .$years. year)); Somehow it always

Re: [PHP] getting a date 25 years back

2004-12-14 Thread Jason Wong
On Wednesday 15 December 2004 03:21, Merlin wrote: I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; $start_from = date(Y-m-d,strtotime(-

Re: [PHP] getting a date 25 years back

2004-12-14 Thread John Holmes
Merlin wrote: Hi there, I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; $start_from = date(Y-m-d,strtotime(- .$years. year)); Somehow it always

Re: [PHP] Byte Array

2004-12-14 Thread Richard Lynch
Ian Firla wrote: I thought of that too and have since expanded my debugging. The types are correct when passed to fwrite. They come out the other end as strings: 16:39:54 SENT 'K' of type string 16:39:54 SENT '0' of type integer 16:39:54 SENT '0' of type integer 16:39:54 SENT

Re: [PHP] Getting mail() to return false/0

2004-12-14 Thread Travis Conway
- Original Message - From: Paul Reinheimer [EMAIL PROTECTED] Hi, I was working with the mail function today to experiment with sending a few messages, and threw in the apropriate checks so when mail() can't send the message the apropriate errors were raised, however, I discovered I

[PHP] Re: Getting mail() to return false/0

2004-12-14 Thread Paul Reinheimer
In the continuing trend of responding to my own messages Perhapps the issue is with how I am interpreting the docs, which state: mail() returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise. I read that as, mail() will return true if PHP is able to connect to the

[PHP] Re: Loops (Thank you very much!)

2004-12-14 Thread Steve Marquez
This is the code I went with and it works like a charm! Thank you very much M. Sokolewicz! echo {$row['name']}br /{$row['description']}; would work, just like all of the following would also: echo $row[name]br /$row[description]; echo $row['name'].br /.$row['description']; and a couple of others

[PHP] Re: php mysql codes insertion error.

2004-12-14 Thread Jonathan
Found the problem. I set ( default_charset = iso-8859-1 ) in php.ini and it solve the problem. Just in case anyone want to know. Jonathan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have encounter something rather weird. In my development server, when I insert a

[PHP] Re: Getting mail() to return false/0

2004-12-14 Thread Manuel Lemos
Hello, Paul Reinheimer said the following on 12/14/2004 11:49 PM: I read that as, mail() will return true if PHP is able to connect to the MTA, pass the message, and the MTA responds that the message was accepted. My understanding (or assumption) of how the MTA operates is that it would not accept

[PHP] File locking file_[get|put]_contents

2004-12-14 Thread Gerard Samuel
I was wondering. Does file_get_contents() or file_put_contents() utilise any kind of file locking? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Google search indexing

2004-12-14 Thread Jason FB
Follow up question: At 4:39 PM + 12/14/04, Richard Davey wrote: sp does anybody know how does google (and other search engines) index websites sp implemented in PHP + MySQL? For instance, sites which use PHP based CMS sp (Content Management Systems)? It doesn't. It indexes the HTML that they

Re: [PHP] Byte Array

2004-12-14 Thread Marek Kilimajer
Ian Firla wrote: You're right. I think it will. Thanks. I've got another issue now though which may indeed be a show-stopper. It seems that while socket_recvfrom is binary safe, there's no way to send data in any way other than a string... Is that right? Can I not send data of other types? no

[PHP] Output buffering - saving + echoing

2004-12-14 Thread Lorderon
Hi, When using ob_start(), the output is buffered and not sent till ob_end_flush() is called or got to end of the script. Also before flushing you can get the buffer contents by ob_get_contents(). ? //start buffering, from now on no output. //NEED: start buffering, but output imediatly when

[PHP] Problem with PHP5, CGI and Session

2004-12-14 Thread Markus Fischer
Hi, I'm expiriencing a problem when I use my application with PHP5 as a CGI module (this is due to my provider). I've developed and tested the application on two servers, both using PHP5 as module, without problems. It seems that the session gets malformed somehow during the first reuqest. 1) On

Re: [PHP] Automaticly Play Sound when MySql Reach some Number

2004-12-14 Thread Nigel Jones
That would be javascript alert() feature. (Documented so much on sites which can be found on google I won't even bother explain) On Mon, 13 Dec 2004 18:23:35 -0800 (PST), Sejati Opreker [EMAIL PROTECTED] wrote: I planning to make an inventory php-mysql based program, that need to warn my user

[PHP] divide the text

2004-12-14 Thread Ahmed Abdel-Aliem
hi, i have a page that views details of games from a database i get the text and screen shots from the database, i want to view 3 pictures among the text when i view it how i can view the 1st picture after 1/3 of the text and the next one after 2/3 of the text without affecting the text itself

[PHP] Good and free encoder for PHP5

2004-12-14 Thread Mário Gamito
Hi, Does anyone around here knows a *good* and *free* encoder for PHP5 ? I used to run Turck, but it seems that somehow it has been discontinued. (At least, the last release occured about a year ago). Any help would be apreciated. Warm Regards. -- Mário Gamito Administração de sistemas e

[PHP] php mysql codes insertion error.

2004-12-14 Thread Jonathan
Hi, I have encounter something rather weird. In my development server, when I insert a string contain '*%$, I got this in my mysql server '*%$ (i.e. the same) but in my application server, I got this â?T*%$ in my mysql server (i.e. ' == â?T) anyone know how to resolve this? When I use the

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Chris Boget
A bit off topic, what are people out there using for PHP IDE's? Thought not specifically a PHP IDE, I use Visual Slick Edit (which is cross platform). It's probably the best IDE I've come across to date. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP cross platform IDE

2004-12-14 Thread Bryan Dina
I have done a little checking and I think I already know the answer, but I wanted to toss this one out there anyway. Are there any cross platform IDE's available for PHP v.5 development, specifically I am looking for Linux/Mac. A bit off topic, what are people out there using for PHP IDE's?

Re: [PHP] Loops

2004-12-14 Thread Gareth Williams
$result = mysql_query(SELECT name, description FROM table); while ($row = mysql_fetch_assoc($result)) { echo {$row['name']}br /$row['description']; } On 14 Dec 2004, at 16:52, Steve Marquez wrote: Greetings. I am trying to display looped information from a MySQL database in a PHP file.

[PHP] fopen/fpassthur

2004-12-14 Thread Sebastian
Hi all, I have created a download manger to handle files, when a user clicks a link the file is sent though fopen() and fpassthru() like this: header(Content-type: application/octet-stream); header(Content-disposition: attachment; filename= . $file['filename']); header(Content-transfer-encoding:

Re: [PHP] Loops

2004-12-14 Thread Richard Lynch
Steve Marquez wrote: Greetings. I am trying to display looped information from a MySQL database in a PHP file. Loop $name (witht a br /) then $description End of loop I would like to loop the multiple variables rather than put all the variables into a single variable with an array.

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Richard Lynch
Bryan Dina wrote: A bit off topic, what are people out there using for PHP IDE's? vi :-) Zend Studio and Komodo have been recommended to me in the past by people I trust. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] How does google index PHP + MySQL (PostgreesSQL) websites?

2004-12-14 Thread symbulos partners
Dear friends, does anybody know how does google (and other search engines) index websites implemented in PHP + MySQL? For instance, sites which use PHP based CMS (Content Management Systems)? Someone told us google spiders do call for the pages so they only see the resulting HTML code. Is that

Re: [PHP] How does google index PHP + MySQL (PostgreesSQL) websites?

2004-12-14 Thread Richard Davey
Hello symbulos, Tuesday, December 14, 2004, 4:12:20 PM, you wrote: sp does anybody know how does google (and other search engines) index websites sp implemented in PHP + MySQL? For instance, sites which use PHP based CMS sp (Content Management Systems)? It doesn't. It indexes the HTML that they

Re: [PHP] divide the text

2004-12-14 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: hi, i have a page that views details of games from a database i get the text and screen shots from the database, i want to view 3 pictures among the text when i view it how i can view the 1st picture after 1/3 of the text and the next one after 2/3 of the text

Re: [PHP] Using SSL

2004-12-14 Thread Richard Lynch
Daniel Lahey wrote: Can anyone point me to a good source of information for how to use SSL with PHP? I know it's not quite on-topic, but perhaps someone could point me at a good source of info? TIA Not sure what you mean by using SSL with PHP... There's really not a whole lot to it. You

Re: [PHP] email processing

2004-12-14 Thread Richard Lynch
adwin wijaya wrote: I want to create a system to process the email that coming. For example, I send a confirmation email to our client and they just simply reply the email that we send to them to verify. The problem I got, I dont know how to process the email that coming to our mailbox and

Re: [PHP] Loops

2004-12-14 Thread Richard Davey
Hello Steve, Tuesday, December 14, 2004, 3:52:26 PM, you wrote: SM I would like to loop the multiple variables rather than put all the SM variables into a single variable with an array. I can not figure out how to SM do this. I assume you have placed the MySQL query and checked the number of

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Richard Lynch
Sebastian wrote: Hi all, I have created a download manger to handle files, when a user clicks a link the file is sent though fopen() and fpassthru() like this: fopen() + fpassthru() == http://php.net/readfile is this the most practical way of doing it? i don't want to display file

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Richard Davey
Hello Sebastian, Tuesday, December 14, 2004, 4:19:31 PM, you wrote: S header(Content-type: application/octet-stream); S header(Content-disposition: attachment; filename= . $file['filename']); S header(Content-transfer-encoding: binary); S header(Content-length: . filesize($file['path'] .

Re: [PHP] Loops

2004-12-14 Thread M. Sokolewicz
Richard Lynch wrote: Steve Marquez wrote: Greetings. I am trying to display looped information from a MySQL database in a PHP file. Loop $name (witht a br /) then $description End of loop I would like to loop the multiple variables rather than put all the variables into a single variable with an

Re: [PHP] Byte Array

2004-12-14 Thread Ian Firla
On Tue, 2004-12-14 at 08:40 -0800, Richard Lynch wrote: Ian Firla wrote: Just a follow-up to myself... I decided to try packet sniffing to see what was going on and ettercap confirms that I'm sending out strings rather than data of the type stored in my array: 16:12:26

[PHP] Slow Zend Optimizer

2004-12-14 Thread Bruno B B Magalhães
Hi guys, I've installed the zend Optimizer with my Mac OS X, Apache 1.2, PHP5. And guess what, it became about 40% slower!!! My framework was running for example in the modules administration (admin area) at 0.104ms, and now the average is 0.2ms - 0.24ms Does anybody have any idea of what hell

Re: [PHP] PHP Apache Upload file Permission denied

2004-12-14 Thread Richard Lynch
Michael Leung wrote: Yes, apache can do read/write in /tmp. I can't su to apache. But I created another account in apache group(userid test1). I have such tests by using that account. I can do mv , cp , create new file. After those successful test, I have modified httpd.conf to make

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Richard Lynch
Richard Davey wrote: no need to exit() - it's the last line of your script anyway. There was a bug in PHP for a very brief period of time where scripts were not ending under some conditions after all the content was delivered. If one is running that version of PHP, exit; at the end of a script

Re: [PHP] getting a date 25 years back

2004-12-14 Thread Richard Lynch
Merlin wrote: I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; // $start_from = date(Y-m-d,strtotime(- .$years. year)); Somehow it always

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Richard Lynch
Sebastian wrote: Q I hope you have some good data validation going on too :) I am not too sure about how secure it is. basically, the files are called by an ID eg, download?type=fileid=3 so i query the db to get check if its a valid id and get the filename from the db as well. if its not

Re: [PHP] getting a date 25 years back

2004-12-14 Thread Merlin
Richard Lynch wrote: Merlin wrote: I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; // $start_from = date(Y-m-d,strtotime(- .$years. year)); Somehow

Re: [PHP] CGI vs Apache module

2004-12-14 Thread Richard Lynch
Sandy Keathley wrote: We have a Redhat server, which only allows PHP 4.3.2 to be installed by RPM. I manually compiled and installed 4.3.9 using the configure params as the RPM install. It compiled the CGI version, which seems to run, but Apache (2.0) doesn't recognize it. phpinfo() still

[PHP] Re: email processing

2004-12-14 Thread Manuel Lemos
Hello, Adwin Wijaya said the following on 12/14/2004 12:06 AM: I want to create a system to process the email that coming. For example, I send a confirmation email to our client and they just simply reply the email that we send to them to verify. The problem I got, I dont know how to process

[PHP] MMS?

2004-12-14 Thread Robert Sossomon
Anyone know of some scripts to email ringtones/graphics to your cell phone? Thanks, Robert -- Robert Sossomon, Business and Technology Application Technician 4-H Youth Development Department 200 Ricks Hall, Campus Box 7606 N.C. State University Raleigh NC 27695-7606 Phone: 919/515-8474 Fax:

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Sebastian
Q I hope you have some good data validation going on too :) I am not too sure about how secure it is. basically, the files are called by an ID eg, download?type=fileid=3 so i query the db to get check if its a valid id and get the filename from the db as well. if its not found it errors out.. i

Re: [PHP] Google search indexing

2004-12-14 Thread Octavian Rasnita
Yes Google index the entire url including the HTTP_QUERY_STRING (the part after the question mark). You will see many warnings in old tutorials telling that the search enginnes don't index the entire url, but I don't think it is the case anymore. However, if you want to avoid this, or to just

Re: [PHP] scripting with php

2004-12-14 Thread Christopher Fulton
Not sure if this is what you want, but i know that you can call php from a command line by using. php code_name.php that will print out the http headers, so to supress the headers you can do php -q code_name.php Hope this helps, Chris On Tue, 14 Dec 2004 21:38:18 +, Bruno Santos

[PHP] Re: Good and free encoder for PHP5

2004-12-14 Thread Jon Drukman
Octavian Rasnita wrote: Does anyone around here knows a *good* and *free* encoder for PHP5 ? I used to run Turck, but it seems that somehow it has been discontinued. (At least, the last release occured about a year ago). Did it stop working? My Turck copy still works. ;-) turck never worked for

Re: [PHP] fopen/fpassthur

2004-12-14 Thread Matt M.
Hi all, I have created a download manger to handle files, when a user clicks a link the file is sent though fopen() and fpassthru() you could try http://us3.php.net/readfile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting a date 25 years back

2004-12-14 Thread John Nichel
Merlin wrote: Hi there, I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql database date field for columns smaller than this date. I tried this: $years = 25; $start_from = date(Y-m-d,strtotime(- .$years. year)); Somehow it always

Re: [PHP] Google search indexing

2004-12-14 Thread Richard Lynch
This is really two questions about Google indexing Let's say I have a site in PHP MySQL. Let's say that I have some links on my site that use GET variables to call other PHP pages and pass them a GET variable, like http://www.somesite.com/somedir/somepage.php?flag=15 The flag variable is

Re: [PHP] Loops

2004-12-14 Thread Richard Lynch
//Untested code. $connection = @mysql_connect('localhost', 'USERNAME', 'PASSWORD') or trigger_error(@mysql_error() . connecting to mysql, E_USER_ERROR); mysql_error() *never* returns warnings... so why are you prepending an @ ? If $connection is an invalid link, it most certainly does print

Re: [PHP] Getting mail() to return false/0

2004-12-14 Thread Paul Reinheimer
'dude' is in fact not a user on my box, I was in fact something I choose trying to use as an example of something that was not valid. Running it again against asdadasdsadasdadsad returns the same result. When I do send mail that matters I include a From header, I was just trying to stick with as

Re: [PHP] curl libraries on Debian Woody with apache 1.3.29.0.2-6 and php 4.3.4-4

2004-12-14 Thread symbulos partners
Christophe Chisogne wrote: hem, this is a PHP list. Perhaps you're talking about curl PHP extension? Sorry Cristophe, should have been more precise :-). We meant the related PHP libraries. Thanks for your help! -- symbulos partners -.- symbulos - ethical services for your organisation

[PHP] Re: scripting with php

2004-12-14 Thread Matthew Weier O'Phinney
* Bruno Santos [EMAIL PROTECTED]: since my first page, ive used php as a server side language, embebed in html pages. now, i need to develop a small script to run as stand alone. how can i do it ? just like bourn shell, ive used #!/usr/bin/php -q, but it apears is not working ... Did you

Re: [PHP] getting a date 25 years back

2004-12-14 Thread Mailit, LLC
You should do date arithmetic using the Unix date format (number of seconds since 1970). I think these string format dates are not appropriate. Mario Merlin wrote: Hi there, I am trying to create a date which is 25 years back from today. The purpose of this is to be able to query a mysql

Re: [PHP] getting name of class from a parent

2004-12-14 Thread Chris
I'm not sure I'm quite clear on what you want, ... ?php class base_class{ static function get_instance(){ static $oUtility = new utility_class(); return $oUtility; } } class utility_class { } $instance = utility_class::get_instance() ? That should create an instance of

[PHP] register_user_func and register_shutdown_func

2004-12-14 Thread Bostjan Skufca @ domenca.com
Hi all, is there any internal difference between following calls (they occur inside some class)? #1 register_shutdown_function(array($this, 'myfunc')); #2 register_shutdown_function(array($this, 'myfunc')); (note the reference operator in #2) Or is parameter $this in example #1 forced to be