[PHP] executing php scripts via cron

2004-05-18 Thread Merlin
Hi there, I am trying to run a php script via cron. Problem is, that it does not work if I include the whole path in crontab Currently it looks like: 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php /dev/null Most likeley because the webserver root for the project is:

[PHP] Select box

2004-05-18 Thread Brent Clark
Hi all For the likes of me I cant seem to figure out how to have a select drop down box , and have it so, that when I click the submit button, the page displays the correct content (which is what it does) but at the same time I need the select box to be at the option of the query. Below is part

Re: [PHP] using returned references directly?

2004-05-18 Thread Burhan Khalid
Jeff Schmidt wrote: Hello, Say I have object A, with method getObjectB(), which returns a reference to object2. Is there a way to do something like $A-getObjectB()-methodFromObjectB(); Don't know if this would work, but you could give it it a try :

RE: [PHP] executing php scripts via cron

2004-05-18 Thread rich
I am trying to run a php script via cron. Problem is, that it does not work if I include the whole path in crontab Currently it looks like: 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php /dev/null Most likeley because the webserver root for the project is:

Re: [PHP] Verisign pfpro

2004-05-18 Thread Burhan Khalid
Boulytchev, Vasiliy wrote: Ladies and Gents, I am trying to install Pay Flow Pro on my server, and am running into weird problems. I follow instructions from Verisign, and still cant get the thing to function. I get the error below: Fatal error: Call to undefined function:

Re: [PHP] executing php scripts via cron

2004-05-18 Thread Clifford W. Hansen
Merlin, 0 6 * * * php /home/www/project/app_cron/follow_up_new_members.php /dev/ null That looks right to me, have you tried executing the command with the full path? I have a couple of php scripts running as cron jobs and web scripts... Also try php -q scriptname -q is for quiet which

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Burhan Khalid
Vans Hallden wrote: Please try to endure my ignorance. I'm new to PHP4 and out to perform just a single isolated task with it. :) I would like to form some simple statistics from specific column data in a mysql database and display those stats on a webpage. I have collected a few demographics

RE: [PHP] using returned references directly?

2004-05-18 Thread Ford, Mike [LSS]
On 17 May 2004 22:26, Jeff Schmidt wrote: Hello, Say I have object A, with method getObjectB(), which returns a reference to object2. Is there a way to do something like $A-getObjectB()-methodFromObjectB(); ?? When I try that, I get a parse error? Is this simply not possible

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-18 Thread Burhan Khalid
Torsten Roehr wrote: Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class Base { function Factory() { $classname = ???; return new $classname;

RE: [PHP] Select box

2004-05-18 Thread Ford, Mike [LSS]
On 18 May 2004 09:06, Brent Clark wrote: Hi all For the likes of me I cant seem to figure out how to have a select drop down box , and have it so, that when I click the submit button, the page displays the correct content (which is what it does) but at the same time I need the select

[PHP] Re: $_post and array question

2004-05-18 Thread Amon
Thanks for help Daniel Clark. I know i must use isset function but that was not the issue. But thanks anyway:) Curt Zirzow thanks for your reply also. But that has nothing to do with reference. If you use reference or not.. it still would not result in an error (hee... I want an error :P) I

Re: [PHP] How to get class name in static function (PHP 4.2.3)

2004-05-18 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Burhan Khalid [EMAIL PROTECTED] schrieb am 18.05.2004, 10:48:29: Torsten Roehr wrote: Hi, does anyone know a way of how to get the name of the class within a static function? I can't use __CLASS__ as my PHP version is 4.2.3 and I can't upgrade. My code (simplified): class

[PHP] mail command with PHP 4.3.4-1.1 and Fedora Core 1

2004-05-18 Thread C.F. Scheidecker Antunes
Hello all, I have updated an old system to Fedora 1 and php php-4.3.4-1.1. However the mail comand does not work anymore. The php.ini of the original system did not have anything special. Sendmail is not being run locally in this machine. What might be causing it? Thanks in advance, C.F. -- PHP

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Vans Hallden
Here is one way: (probably not the best) I was able to get almost everything working with your help. Thanks!!! :) average ages for male/female respondents (database column 'age') SELECT AVG(age) FROM tablename WHERE sex = 'male'; SELECT AVG(age) FROM tablename WHERE sex = 'female'; I have one

Re: [PHP] $_post and array question

2004-05-18 Thread Amon
Thanks for help Daniel Clark. I know i must use isset function but that was not the issue. But thanks anyway:) Curt Zirzow thanks for your reply also. But that has nothing to do with reference. If you use reference or not.. it still would not result in an error (hee... I want an error :P) Matt

[PHP] between date

2004-05-18 Thread Brent Clark
Hi all I have a table whereby I use the php date() and time() function. I retrieve the data etc, no problem. but I now need to perform a query of between dates. Is there a function or method to perform this. Kind Regards and thank you in advance Brent Clark -- PHP General Mailing List

Re: [PHP] between date

2004-05-18 Thread Brent Clark
Hi Sorry, I should have copied and pasted the table structure before, sending the mail. (Sorry for the scewness) Kind Regards Brent Clark ++---+++++ | id | user | ref_id | stage | files_captured | time |

RE: [PHP] between date

2004-05-18 Thread Jay Blanchard
[snip] I have a table whereby I use the php date() and time() function. I retrieve the data etc, no problem. but I now need to perform a query of between dates. Is there a function or method to perform this. [/snip] Use SQL 'BETWEEN' i.e. SELECT items FROM table WHERE date BETWEEN this date

[PHP] PHP and Caching and IMS Headers

2004-05-18 Thread Nick Wilson
Hi, I was reading this post here: http://www.cre8asiteforums.com/viewtopic.php?t=9801 No, not my site ;-) I think it sounds like there are some mistaken views in there, anyone that knows about If-Modified-Since headers, PHP and Caching could shed a little conclusive light on the subject? Many

RE: [PHP] PHP and Caching and IMS Headers

2004-05-18 Thread Ford, Mike [LSS]
On 18 May 2004 13:58, Nick Wilson wrote: Hi, I was reading this post here: http://www.cre8asiteforums.com/viewtopic.php?t=9801 No, not my site ;-) I think it sounds like there are some mistaken views in there, anyone that knows about If-Modified-Since headers, PHP and Caching could

[PHP] RE: [PHP-WIN] i need help

2004-05-18 Thread Gryffyn, Trevor
If the format is consistantly the same, try this: $somedata = [i:aslkdfj]; $insidedata = substr($somedata,3,strlen($somedata)-4); -TG -Original Message- From: Student [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 11:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Burhan Khalid
Vans Hallden wrote: Here is one way: (probably not the best) I was able to get almost everything working with your help. Thanks!!! :) average ages for male/female respondents (database column 'age') SELECT AVG(age) FROM tablename WHERE sex = 'male'; SELECT AVG(age) FROM tablename WHERE sex =

[PHP] Can anyone identify this CM system?

2004-05-18 Thread KEVIN ZEMBOWER
[For those of us who like detective novels:] My organization has asked me to consult on a web site which was written by one of our field offices. Unfortunately, there's no one around anymore who was part of the original program. The kicker is that it's all in Russian. It's at http://www.fzr.ru.

[PHP] Re: [PHP-WIN] i need help

2004-05-18 Thread Cory D. Wiles
Assuming you are doing just one string at a time: ? $str = [i:abcdef]; #[i:bcdefg] #[i:xyzab] #[i:priftds] $regex = /(\[i:)(\w+)(\])/i; preg_match($regex, $str, $matches); print $str;//original string print substr($matches[2], 1, 3);//trimmed string ? Gryffyn, Trevor wrote: If the format is

Re: [PHP] Re: $_post and array question

2004-05-18 Thread Curt Zirzow
* Thus wrote Amon ([EMAIL PROTECTED]): Curt Zirzow thanks for your reply also. But that has nothing to do with reference. If you use reference or not.. it still would not result in an error (hee... I want an error :P) function foo($v) {} foo($asdf['qwer']); PHP Notice: Undefined variable:

[PHP] executing PHP via cron

2004-05-18 Thread shawn_milochik
How about just using cron to call wget, and wget the URL of your page? Shawn ** This e-mail and any files transmitted with it may contain confidential information and is intended solely for use by the individual to whom

Re: [PHP] executing PHP via cron

2004-05-18 Thread Oliver Hankeln
[EMAIL PROTECTED] wrote: How about just using cron to call wget, and wget the URL of your page? It depends. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can anyone identify this CM system?

2004-05-18 Thread Jay Blanchard
[snip] My organization has asked me to consult on a web site which was written by one of our field offices. Unfortunately, there's no one around anymore who was part of the original program. The kicker is that it's all in Russian. It's at http://www.fzr.ru. It's titled Health Russia 2020 and

RE: [PHP] Can anyone identify this CM system?

2004-05-18 Thread KEVIN ZEMBOWER
By clicking pretty much at random (since I don't speak Russian), I see strings like these: http://www.fzr.ru/index.php?ae=4ah=3 http://www.fzr.ru/index.php?ae=6ah=3 http://www.fzr.ru/index.php?ae=1554 http://www.fzr.ru/ll.php?i=23f=1ae=49l=http%3A%2F%2Fwww.fzr.ru%2Findex.php%3Fae%3D6%26ah%3D3

[PHP] XML problem

2004-05-18 Thread Phpu
Hi, I know that this is not an xml list but maybe you could help me. I'm looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. Could someone send me a link to that kind of tutorial? Thanks for your reply !!! Stefan

RE: [PHP] Can anyone identify this CM system?

2004-05-18 Thread Jay Blanchard
[snip] By clicking pretty much at random (since I don't speak Russian), I see strings like these: http://www.fzr.ru/index.php?ae=4ah=3 http://www.fzr.ru/index.php?ae=6ah=3 http://www.fzr.ru/index.php?ae=1554 http://www.fzr.ru/ll.php?i=23f=1ae=49l=http%3A%2F%2Fwww.fzr.ru%2Finde

RE: [PHP] Can anyone identify this CM system?

2004-05-18 Thread James Tusini
have you already had a look through this: http://www.opensourcecms.com/ ? it lists many open source cms wtih screenshots etc... J -Original Message- From: KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED] Sent: 18 May 2004 14:40 To: [EMAIL PROTECTED] Subject: [PHP] Can anyone identify this CM

Re: [PHP] XML problem

2004-05-18 Thread Miguel J. Jiménez
Try the one at http://www.w3schools.com/ Phpu wrote: Hi, I know that this is not an xml list but maybe you could help me. I'm looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. Could someone send me a link to that kind of

RE: [PHP] Can anyone identify this CM system?

2004-05-18 Thread KEVIN ZEMBOWER
Yeah, I thought it was a long-shot. I'm actually meeting with the coordinator in 10 minutes, and one of the things I'm asking for is shell access to the host. I have no idea what Linux or Unix (God help me if it's NT) on a Russian host looks like. Thanks for your thoughts, Jay. -Kevin Jay

RE: [PHP] Can anyone identify this CM system?

2004-05-18 Thread KEVIN ZEMBOWER
No, I didn't know about that site. Thank you, Jim. -Kevin James Tusini [EMAIL PROTECTED] 05/18/04 10:48AM have you already had a look through this: http://www.opensourcecms.com/ ? it lists many open source cms wtih screenshots etc... J -Original Message- From: KEVIN ZEMBOWER

Re: [PHP] XML problem

2004-05-18 Thread Brent Clark
Hi, I know that this is not an xml list but maybe you could help me. 'm looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. Could someone send me a link to that kind of tutorial? http://www.zend.com/zend/tut/index.php Kind

Re: [PHP] Can anyone identify this CM system?

2004-05-18 Thread zerof
The server returned the following response headers: HTTP/1.1 200 OK Date: Tue, 18 May 2004 13:15:39 GMT Server: Apache/1.3.12 (Unix) (Black Cat/Linux) PHP/4.3.4 Cache-Control: max-age=604800 Expires: Tue, 25 May 2004 13:15:39 GMT Last-Modified: Thu, 13 Nov 2003 15:36:52 GMT ETag:

[PHP] Domain Name Lookup Scripts

2004-05-18 Thread Ryan Schefke
Can anyone suggest any good (free) domain name lookup scripts written in php? Thanks, Ryan

Re: [PHP] Domain Name Lookup Scripts

2004-05-18 Thread Robert Cummings
On Tue, 2004-05-18 at 11:09, Ryan Schefke wrote: Can anyone suggest any good (free) domain name lookup scripts written in php? This is short, far from perfect, but I use it to look for availability and you might be able to adapt it - it also checks for a verisign hit which is usually that

Re: [PHP] XML problem

2004-05-18 Thread Michal Migurski
I'm looking for a good tutorial in xml or a list with most of the xml tags. I've googled for it but i can't find anything. Could someone send me a link to that kind of tutorial? There are no xml tags as such; XML defines a grammar but not a vocabulary. The actual tags used depend on the

[PHP] Regular Expression

2004-05-18 Thread Chris Boget
Why isn't my regex working? From everything that I've read, it should be... script language=php $string = [joebob]; if( preg_match( '/\[(\s+)\]/i', $string, $aMatches )) { print_r( $aMatches ); } else { echo 'No match was found' . \n\n; } /script Chris -- PHP General Mailing List

RE: [PHP] Regular Expression

2004-05-18 Thread Chris W. Parker
Chris Boget mailto:[EMAIL PROTECTED] on Tuesday, May 18, 2004 9:55 AM said: Why isn't my regex working? From everything that I've read, it should be... $string = [joebob]; if( preg_match( '/\[(\s+)\]/i', $string, $aMatches )) { \s Matches any whitespace character; this is equivalent

Re: [PHP] Regular Expression

2004-05-18 Thread Ryan Carmelo Briones
Chris Boget wrote: Why isn't my regex working? From everything that I've read, it should be... script language=php $string = [joebob]; if( preg_match( '/\[(\s+)\]/i', $string, $aMatches )) { print_r( $aMatches ); } else { echo 'No match was found' . \n\n; } /script Chris your regex is

Re: [PHP] [Newbie] Simple stats from mysql table data

2004-05-18 Thread Torsten Roehr
Vans Hallden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is one way: (probably not the best) I was able to get almost everything working with your help. Thanks!!! :) average ages for male/female respondents (database column 'age') SELECT AVG(age) FROM tablename WHERE

Re: [PHP] between date

2004-05-18 Thread Torsten Roehr
Jay Blanchard [EMAIL PROTECTED] wrote in message ews:[EMAIL PROTECTED] [snip] I have a table whereby I use the php date() and time() function. I retrieve the data etc, no problem. but I now need to perform a query of between dates. Is there a function or method to perform this. [/snip] Use

RE: [PHP] Verisign pfpro

2004-05-18 Thread Boulytchev, Vasiliy
I think its working now, I get this error, does this have to do with verisign? Could not process transaction! User authentication failed (1) Is it the test account that is not assigned properly? THANKS!!! Vasiliy Boulytchev Colorado Information Technologies, Inc.

[PHP] Problem - Turckmmcache, Apache2 and SuSE 9.1

2004-05-18 Thread Andrei Verovski (aka MacGuru)
Hi, I have compiled and installed (precisely following instruction) turck-mmcache 2.4.6 for Apache2-2.0.49-23/php4-4.3.4-43.3 on SuSE 9.1. Unfortunately, I cannot start Apapche2 anymore, I am getting this error message: /usr/sbin/httpd2-prefork: error while loading shared libraries:

[PHP] PDFLib pdf_get_pdi_value

2004-05-18 Thread Matt Matijevich
I am trying to do some PDF templating work with PHP/PDFLib. I have a template file created and I am able to use all of the php functions for pdf's but I am having a slight problem: here is part of my code $pdi_file = $_SERVER['DOCUMENT_ROOT'].dirname($_SERVER['PHP_SELF']).'/block_test.pdf';

[PHP] Using Cygwin tar.exe on Windows

2004-05-18 Thread Brian Muldown
I have a little application I have built that will create a tar.gz archive of a group of files and directories. It works flawlessly on FreeBSD, OSX and Debian Linux. I want it to work for Windows, but I am having some trouble. I am simply using an exec call to the tar application:

Re: [PHP] PDFLib pdf_get_pdi_value

2004-05-18 Thread Matt Matijevich
I figured out what was wrong. If you are interested in my solution here it is: I did some searching in the PDFLIB documentation and I needed to set this at the top of my script to show some errors pdf_set_parameter($pdf, 'pdiwarning', 'true'); then, to fix the problem I needed to add this

[PHP] Multiple Update from one form

2004-05-18 Thread Enda Nagle - Lists
Hi I have a current application where I am listing a table of order details, where a fulfillment company can enter the tracking number and the cost of the shipment. At present, I have up to 40 orders displayed, and when they click on the Œupdate¹ button, the code executes as if

Re: [PHP] loosing memory

2004-05-18 Thread Raymond den Ouden
Well last weak I experienced the same problems... after a while my server turned into a zombie while the server was swapping his ass off... 2 apache treads at 10% each and the kswapd process 80% cpu and also all my memory had been taken by apache... afer doing a apache 2 reload 350 Meg of

Re: [PHP] Multiple Update from one form

2004-05-18 Thread Enda Nagle - Lists
Its OK guys, Got something else myself. Here¹s the solution... Any suggestions appreciated... / // UPDATE PART / $i=1; //while ($ordersinfo[$i]) while ($i $total) { $session = $ordersinfo[$i][session]; $tracking =

[PHP] How to use pcntl_fork()?

2004-05-18 Thread Ben Ramsey
I'm working with PHP-GTK to create a GUI application. This GUI application opens a socket to a gaming server to send/receive data to display to the user. So far, this is working well, but the problem is that it can only receive data after I make a function call to send data. Here's my

Re: [PHP] Multiple Update from one form

2004-05-18 Thread Miles Thompson
At 07:56 PM 5/18/2004, Enda Nagle - Lists wrote: Its OK guys, Got something else myself. Here¹s the solution... Any suggestions appreciated... / // UPDATE PART / $i=1; //while ($ordersinfo[$i]) while ($i $total) { $session =

Re: [PHP] Multiple Update from one form

2004-05-18 Thread Enda Nagle - Lists
Hi Miles, Thanks for the reply. I see what you¹re doing there and had looked at the foreach() functionality, but am I right in saying that I still need to use the multidimensional array since there are three variables in each line? (id, tracking, kb_ship)? Enda -- On 19/05/2004 00:58, Miles

Re: [PHP] Multiple Update from one form

2004-05-18 Thread Miles Thompson
Enda Yes, you need the multi-dimensional array as you want to keep the data for the same line together. Miles At 09:03 PM 5/18/2004, Enda Nagle - Lists wrote: Hi Miles, Thanks for the reply. I see what you're doing there and had looked at the foreach() functionality, but am I right in saying

[PHP] why i could not use DB.php?

2004-05-18 Thread David
hi I want to use the DB.php to access mysql database, so I add the following line to my file: require_once 'DB.php'; but I get the following error info: Warning: main(DB.php): failed to open stream: No such file or directory in D:\Apache2\htdocs\dunj\test\member\connectDatabase.php on line

Re: [PHP] why i could not use DB.php?

2004-05-18 Thread Travis Low
David wrote: hi I want to use the DB.php to access mysql database, so I add the following line to my file: require_once 'DB.php'; Is my file the file referenced in the error message below? Namely, D:\Apache2\htdocs\dunj\test\member\connectDatabase.php. I'm guessing the message No such

RE: [PHP] why i could not use DB.php?

2004-05-18 Thread Martin Towell
I had a similar error before before. I think php was thinking that the path was '.;d:\php\PEAR' and not two seperate paths (??) What's the include_path line in you php.ini look like? Could there be something to do with that? Martin David wrote: hi I want to use the DB.php to access

RE: [PHP] [newbie] Can PHP be a security risk if it's just connecting to MySQL?

2004-05-18 Thread Dave G
John, If that text is not properly validated and escaped, you could be open to SQL Injection attacks ... you could be open to Cross Site Scripting attacks After reading your response, I looked the web to determine what you meant by properly validated and escaped. From what I

[PHP] Re: mail command with PHP 4.3.4-1.1 and Fedora Core 1

2004-05-18 Thread David Robley
[EMAIL PROTECTED] (C.F. Scheidecker Antunes) wrote in news:[EMAIL PROTECTED]: Hello all, I have updated an old system to Fedora 1 and php php-4.3.4-1.1. However the mail comand does not work anymore. The php.ini of the original system did not have anything special. Sendmail is not