[PHP] problem compailing php-4.3.6 please help !!!!! CAn someone PLEA SE HELP !!!!

2004-09-15 Thread Juan Fernandez
Hi, I am installing php-4.3.6 on Fedora, When I am compiling I receive the following error : [EMAIL PROTECTED] php-4.3.6]# make install Installing PHP SAPI module: apache2handler /www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la /www/modules /www/buil

[PHP] download pdf using php script

2004-09-15 Thread adwinwijaya
Hello PHP Users, I have files (that protected from direct download) and I put it outside public_html/ directory (outside web server directory). and the people from outside could access the file by typing: www.myweb.com/download.php?filename=xzy.pdf can someone give me hint how to do this ? than

Re: [PHP] auto converting a $string to ALL Upper Case.

2004-09-15 Thread - Edwin -
On Thursday 16 September 2004 15:36, Louie Miranda wrote: > Is there a PHP syntax that can convert a $string result to > all UPPER CASE? php.net -> manual -> strings -> strtoupper ? -- - E - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Oliver Kurz
Hello Yusuf, > Class fl_SQL > { > var $server; > var $user; > var $pass; > > var $connection; > var $db; > > var $query; > var $record; > var $tlist; > } The bracket is wrong. Your class only has properties but no methods. > Function fl_SQL($server, $user, $pass, $db = NULL) { > $

[PHP] auto converting a $string to ALL Upper Case.

2004-09-15 Thread Louie Miranda
Is there a PHP syntax that can convert a $string result to all UPPER CASE? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread David Robley
On Thu, 16 Sep 2004 04:14, Trevor Gryffyn wrote: > It appears to be a "user not found" type error..'desintione non > existente' looks a lot like "destination doesn't exist". The guys that > manage the PHP-General list need to be made aware so they can remove the > offending email address. Th

Re: [PHP] Session theory

2004-09-15 Thread Chris Shiflett
--- Dennis Gearon <[EMAIL PROTECTED]> wrote: > At one time, I thought that I read about a problem with PHP4 > sessions involving the recognitioni of the session expiration in > the session engine. > > The problem was that the session variables were read into the > scipt BEFORE the expiration time

Re: [PHP] PHP include before or after Apache SSI?

2004-09-15 Thread David Robley
On Thu, 16 Sep 2004 04:51, Andrew W wrote: > > On 13 Sep 2004, at 19:11, Ed Lazor wrote: > >> Why use SSI? PHP's include directive allows you to bring separate >> pages >> together for creating an overall page. You can include .html files. >> Also, >> PHP programming isn't *required* in a file

[PHP] Session theory

2004-09-15 Thread Dennis Gearon
At one time, I thought that I read about a problem with PHP4 sessions involving the recognitioni of the session expiration in the session engine. The problem was that the session variables were read into the scipt BEFORE the expiration time was checked. Anyone remember this? So, I'm asking if the

[PHP] Re: Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Greg Beaver
Michael Mao wrote: Anyone know how I can split a number into individual digits? If you want to be funky, you can try Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Michael Mao
Thanks John. Found what I'm looking for: Function str_split() On Wed, 15 Sep 2004 23:48:33 -0400, John Holmes <[EMAIL PROTECTED]> wrote: Michael Mao wrote: Anyone know how I can split a number into individual digits? http://us2.php.net/manual/en/function.preg-split.php -- PHP General Mailing Lis

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread John Holmes
Michael Mao wrote: Anyone know how I can split a number into individual digits? http://us2.php.net/manual/en/function.preg-split.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mail

[PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Michael Mao
Anyone know how I can split a number into individual digits? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread John Holmes
Dan Joseph wrote: You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. Also, this: > Function doquery($query, $db = $this->db){ is causing your error. The default value must be a constant expression, not a variable, function, method, etc... -- ---John

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread raditha dissanayake
me thinks it's time to look very closely at http://www.postgresql.org Not just you sam, all of us. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP apple

[PHP] Re: php/MYSQL remove duplicate records

2004-09-15 Thread Sam Hobbs
I do that a lot using Microsoft Access. I just finished on a project where I had to eliminate duplicates from each of three or more queries, a couple of which have three keys. However I am not much more experienced han you are; Microsoft Access generates SQL for us so I am not sure what the SQL

RE: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Dan Joseph
Hi, You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. -Dan Joseph -Original Message- From: Yusuf [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 11:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Coding Blues - Parse Error

[PHP] Coding Blues - Parse Error

2004-09-15 Thread Yusuf
Hello. I am writing some code, but though everything seems ok, I get the same error: "parse error, unexpected T_VARIABLE on line 23" . Here is the code: var $connection; var $db; var $query; var $record; var $tlist; } Function fl_SQL($server, $user, $pass, $db = NULL) { $thi

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> > Now that you have figured out, that it is possible its your firewall, > which, many, and i think you claimed before was impossible, what > exactly makes you sure i said anything invalid. It is my understanding that

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yeah, seeing how we don't have physical access to your system that's > all you will get is guesses and suggestions. If you want definative > answers, hire a consultant, bring them to your pc, and pay them to fix > it.

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > So now are you fully convinced it's your firewall that's the root of your > problem? No, not really. At the moment I am assuming it is a bug in something somewhere. The versions of php and MySQL that I am using are not

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Jason Davidson
i think with perl regs.. as preg_replace is, you can just use a shortcut command.. \w is any word char, \d is any digit.. im not sure it will improve this solution any, but its something else :P Jason Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > Jeff Oien wrote: > > Is there an easy way to

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread John Holmes
Jeff Oien wrote: Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. $fixed = preg_replace('/[^a-zA-Z0-9]/','',$text); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Marek Kilimajer
Jeff Oien wrote: Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff $string = preg_replace('/[^a-z0-9]/i', '', $string); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] How I can create....

2004-09-15 Thread Jason Davidson
the reason it doesnt work, is becuase you have muddied the requests for the client and the server. PHP is completely server side, so putting a php function name in onclick, which will execute client side code doesnt work. the solution would be to have you button reload the page, or submit to an

[PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Jeff Oien
Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checking multiple URL parameters

2004-09-15 Thread Jason Davidson
same way, if i understand your questoin... if your url looks like this sometestpage.php?mov=something&year=1999 - the queries are seperated by the '&' char.. then $_REQUEST will have both mov and year elements in it so just as $_REQUEST['mov'] worked, so would $_REQUEST['year'] Jason Dusti

[PHP] How I can create....

2004-09-15 Thread Yusdaniel Rodriguez Espinosa
Hello to everyone. I want to clean a field from my Data Base in MySQL from a button. But I don't know how i can create a button in PHP, the funtion of button is TRUNCATE TABLE(Table). I have a form in HTML but hi don't work because when I press the button he don't do anything, but when i press

[PHP] checking multiple URL parameters

2004-09-15 Thread Dustin Krysak
Hi there, I am currently using the following code to display content based on the URL parameters HTML CONTENT else { ?> OTHER HTML CONTENT ?> now what I need to do is modify the code so that the script che

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Greg Donald
On Wed, 15 Sep 2004 15:06:11 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > I am the original poster. The reason I avoid doing things like that is > because it is a guess. It should not be necessary; the firewal should not be > relevant. Sometimes people suggest things that are not likely to be a >

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Jason Davidson
firewall, who would have thought Jason Wong <[EMAIL PROTECTED]> wrote: > > On Thursday 16 September 2004 06:14, Sam Hobbs wrote: > > [quote from another Sam Hobbs post] > > I am the original poster. The reason I avoid doing things like that is > > because it is a guess. It should not be nec

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Jason Davidson
Good day, im glad you seem to have resolved your problem, i shall comment on your comments. "Sam Hobbs" <[EMAIL PROTECTED]> wrote: > > I appreciate your attempts to help, but you must understand that when > attempts to help just cause time to be wasted, then it might be appropriate > to no

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Jason Wong
On Thursday 16 September 2004 06:14, Sam Hobbs wrote: [quote from another Sam Hobbs post] > I am the original poster. The reason I avoid doing things like that is > because it is a guess. It should not be necessary; the firewal should not > be relevant. Sometimes people suggest things that are not

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Andrew Kreps" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 14 Sep 2004 10:11:24 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: >> Also, are the warning messages documented? As I asked in my original >> question, is 10061 an error code? > > 10061 is a generic winsock error fo

Re: [PHP] Re: XML parser for PHP5

2004-09-15 Thread Matthew Sims
> Matthew Sims wrote: > >> My fault, I should have been more specific. An RSS reader. :) I was >> using >> xmlParser-0.3 and feedParser-0.5 to display news sites. Since I've >> converted to PHP5, they no longer work for me. > > definitely a combination of simplexml and DOM would work. You need DOM

Re: [PHP] Re: XML parser for PHP5

2004-09-15 Thread Greg Beaver
Matthew Sims wrote: My fault, I should have been more specific. An RSS reader. :) I was using xmlParser-0.3 and feedParser-0.5 to display news sites. Since I've converted to PHP5, they no longer work for me. definitely a combination of simplexml and DOM would work. You need DOM in order to determ

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I lost track of who the original poster was, but anyway... > > Why not disconnect from the internet, turn off all the firewalls, and > then see if it works. If it doesn't then post some error messages and > code for wha

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
I appreciate your attempts to help, but you must understand that when attempts to help just cause time to be wasted, then it might be appropriate to not appreciate the help. Then when I try to explain that you are not helping, you make comments such as this, trying to blame me. If I am the only

Re: [PHP] File Download Problems

2004-09-15 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can help me out with this. I created a simple File Manager application, a lot of you already know about it as you helped me with coding at different stages. The problem is this: The Downloa

Re: [PHP] Re: XML parser for PHP5

2004-09-15 Thread Matthew Sims
> Matthew Sims wrote: > >> Anyone know any good XML parsers that work with PHP5? Most of what I can >> find on freshmeat are still using PHP4 classes and Google isn't turning >> up >> much either. > > What do you want to do? This parses xml pretty well: > > $parsed = simplexml_load_file('filename

[PHP] Re: XML parser for PHP5

2004-09-15 Thread Greg Beaver
Matthew Sims wrote: Anyone know any good XML parsers that work with PHP5? Most of what I can find on freshmeat are still using PHP4 classes and Google isn't turning up much either. What do you want to do? This parses xml pretty well: as does this load('filename.xml'); ?> The first one is brillian

[PHP] XML parser for PHP5

2004-09-15 Thread Matthew Sims
Anyone know any good XML parsers that work with PHP5? Most of what I can find on freshmeat are still using PHP4 classes and Google isn't turning up much either. -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] MySQL to OO

2004-09-15 Thread John Holmes
From: "Neo Theone" <[EMAIL PROTECTED]> I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Are you talking about

RE: [PHP] MySQL to OO

2004-09-15 Thread Jay Blanchard
[snip] I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Does anybody know such a project or something similar

Re: [PHP] MySQL to OO

2004-09-15 Thread Greg Donald
On Wed, 15 Sep 2004 21:51:40 +0200, Neo Theone <[EMAIL PROTECTED]> wrote: > I am searching for a MySQl to Object abstraction class. > I am thinking something like WebObjects does in Java (it is just a part) > in PHP. I had one for Ruby but now I have to use a DB in MySQL and such > a class would ma

[PHP] Re: MySQL to OO

2004-09-15 Thread Matthew Weier O'Phinney
* Neo Theone <[EMAIL PROTECTED]>: > I am searching for a MySQl to Object abstraction class. > I am thinking something like WebObjects does in Java (it is just a part) > in PHP. I had one for Ruby but now I have to use a DB in MySQL and such > a class would make it alot easier. > > Does anybody kn

[PHP] MySQL to OO

2004-09-15 Thread Neo Theone
I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Does anybody know such a project or something similar? I jus

Re: [PHP] jpgraph newbie

2004-09-15 Thread Greg Donald
On Wed, 15 Sep 2004 07:10:39 -1200, blackwater dev <[EMAIL PROTECTED]> wrote: > I go the following code form phpfreaks..problem is, when I run it I > get a page not found error. I know jpgraph sends the image back to > the browser but why do I get page not found? If I force some syntax > errors,

Re: [PHP] Checking file_exists()

2004-09-15 Thread PHP Junkie
Ave, I can swear it wasn't working with the Double Quotes either because I tried it first. But well, now it is so no point in anything. Thanks a lot. On 9/15/04 3:19 PM, "John Holmes" <[EMAIL PROTECTED]> wrote: > From: "PHP Junkie" <[EMAIL PROTECTED]> > > $trauma = 'imsafm/$PHP_login/$img1_

Re: [PHP] PHP include before or after Apache SSI?

2004-09-15 Thread Andrew W
On 13 Sep 2004, at 19:11, Ed Lazor wrote: Why use SSI? PHP's include directive allows you to bring separate pages together for creating an overall page. You can include .html files. Also, PHP programming isn't *required* in a file with the php extension. I had wondered about that but I must be

[PHP] File Download Problems

2004-09-15 Thread PHP Junkie
Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can help me out with this. I created a simple File Manager application, a lot of you already know about it as you helped me with coding at different stages. The problem is this: The Download. When you dow

Re: [PHP] Checking file_exists()

2004-09-15 Thread Greg Donald
On Wed, 15 Sep 2004 15:05:02 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote: > I have a simple file upload form, which uploads without a problem. > Today I added the file_exists() function to my PHP code. And everything > stopped working. What am I doing wrong here: > > if($upload_file) { > $db = my

Re: [PHP] Checking file_exists()

2004-09-15 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> $trauma = 'imsafm/$PHP_login/$img1_name'; http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] jpgraph newbie

2004-09-15 Thread blackwater dev
I go the following code form phpfreaks..problem is, when I run it I get a page not found error. I know jpgraph sends the image back to the browser but why do I get page not found? If I force some syntax errors, they will be displayed but this just doesn't seem to do anything. Thanks! $db=new db

Re: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Nick Wilson
* and then Gryffyn, Trevor declared > It appears to be a "user not found" type error..'desintione non I must say, im glad it's not just me hehe! I was beginning to think it was just me. I've been away from the list (never a big participant...) for a while but stuff like that used got sort

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-15 Thread Jasper Howard
yeah, im pretty sure that's spanish -- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexEleven.com/ <<-- "Nick Wilson" <[EMAIL

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Gryffyn, Trevor
Fair enough. > -Original Message- > From: Ron Guerin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 15, 2004 3:04 PM > To: Gryffyn, Trevor > Cc: php-general; Dan Joseph > Subject: Re: [PHP] iguanahost - anyone else being plagued? > > > Gryffyn, Trevor wrote: > > >It appears to

[PHP] Checking file_exists()

2004-09-15 Thread PHP Junkie
Ave, I have a simple file upload form, which uploads without a problem. Today I added the file_exists() function to my PHP code. And everything stopped working. What am I doing wrong here: File $img1_name uploaded to $PHP_login folder."; } } ?> I'm not getting any errors (for some reason I don't

Re: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Ron Guerin
Gryffyn, Trevor wrote: It appears to be a "user not found" type error..'desintione non existente' looks a lot like "destination doesn't exist". The guys that manage the PHP-General list need to be made aware so they can remove the offending email address. There's not a lot these iguana guys c

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Gryffyn, Trevor
It appears to be a "user not found" type error..'desintione non existente' looks a lot like "destination doesn't exist". The guys that manage the PHP-General list need to be made aware so they can remove the offending email address. There's not a lot these iguana guys can do if a user no long

Re: [PHP] Refresh page with frames...

2004-09-15 Thread Jasper Howard
so change parent to the name of the frame -- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexEleven.com/ <<-- "Andre" <[EMAIL

Re: FW: [PHP] Refresh page with frames...

2004-09-15 Thread John Nichel
Andre wrote: This list is for PHP, not a JavaScript. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] Refresh page with frames...

2004-09-15 Thread Andre
I need to refresh the top frame and I am on the content frame (for example) and this code doesn’t work for this And I try whit this; -Original Message- From: Jasper Howard [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread John Holmes
Subject: [PHP] iguanahost - anyone else being plagued? I have a big lizard, if that helps. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple web sites, one IP address...

2004-09-15 Thread John Nichel
René Fournier wrote: I have a question that I'm not sure how to phrase (and google)... I know this is a little off-topic, but I was hoping some guru here might at least be able to point me in the right direction... run multiple web sites/domains (the docs say so). But does each of my domains, r

Re: [PHP] Multiple web sites, one IP address...

2004-09-15 Thread raditha dissanayake
René Fournier wrote: I have a question that I'm not sure how to phrase (and google)... I know this is a little off-topic, but I was hoping some guru here might at least be able to point me in the right direction... the term you are looking for is 'virtual hosting' their is an excellent guide in

Re: [PHP] fopen problem, 5 line script [SOLVED!]

2004-09-15 Thread Mag
Got it, 'case anybody else needs this: $page = file_get_contents('http://www.google.se/index.html'); if(strstr($page, 'href="/imghp?hl=sv&tab=wi&ie=UTF-8"')) { $resultt = 1; } else {

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Dan Joseph
I've done the same thing. Most likely its an auto-response msg from them after we reply to anything on this list. I can't read the language its in personally. I wrote abuse several times, I get the same msg back. -Dan Joseph > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTE

Re: [PHP] Refresh page with frames...

2004-09-15 Thread Jasper Howard
-- -->> Jasper Howard :: Database Administration ApexEleven Web Design 1.530.559.0107 http://www.ApexEleven.com/ <<

[PHP] Multiple web sites, one IP address...

2004-09-15 Thread René Fournier
I have a question that I'm not sure how to phrase (and google)... I know this is a little off-topic, but I was hoping some guru here might at least be able to point me in the right direction... --- I have several web sites (PHP-driven :-) that I want to host on my new xServe, which is sitting b

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Vail, Warren
Could it be that lizards are nocturnal? ;-) Warren Vail -Original Message- From: Jim Grill [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:05 AM To: Nick Wilson; php-general Subject: Re: [PHP] iguanahost - anyone else being plagued? > Anyone else getting these infuria

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Mag: > > Hi, > > Can someone tell me what I am doing wrong here > please? > > > > > $fileptr = > > fopen("http://www.google.com/index.html","r";); > > > > $contents = fread($fileptr, filesize($fileptr)); > >... > > > > This is the erro

Re: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Jim Grill
> Anyone else getting these infuriating italian messages about some muppet > that doesnt exist? > > 'desintione non existente'? > > I've written to [EMAIL PROTECTED] but no joy, everytime i post on the > php list i get half a dozen of the damn things... > -- > Nick W > I've been getting those stu

RE: [PHP] fopen problem, 5 line script

2004-09-15 Thread Vail, Warren
I thought filesize required the file name, and not the fileptr??? Warren Vail -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:17 AM To: php php Subject: Re: [PHP] fopen problem, 5 line script * Thus wrote Mag: > Hi, > Can someone t

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Curt Zirzow
* Thus wrote Mag: > Hi, > Can someone tell me what I am doing wrong here please? > > $fileptr = > fopen("http://www.google.com/index.html","r";); > > $contents = fread($fileptr, filesize($fileptr)); >... > > This is the error I get: > Warning: filesize(): Stat failed for Resource id #1 > (errno

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Mark
--- Mag <[EMAIL PROTECTED]> wrote: > Hi, > Can someone tell me what I am doing wrong here please? > > $fileptr = > fopen("http://www.google.com/index.html","r";); > > $contents = fread($fileptr, filesize($fileptr)); http://us2.php.net/filesize int filesize ( string filename) > > if(strstr(

[PHP] Re: php - no results - display other message

2004-09-15 Thread Dustin Krysak
Actually, after some searching I got it figured out... here is the way I ended up doing it Obviously the "RSdel" and the "MLemail" are specific to my record set and my database field. Show result from database. No matching

[PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
Hi, Can someone tell me what I am doing wrong here please? http://www.google.com/index.html","r";); $contents = fread($fileptr, filesize($fileptr)); if(strstr($contents, "href=\"/froogle?hl=en&tab=wf\"")) { $result = 1;}else{ $result = 2;} echo $result; ?> This is the error I get: Warning: fil

Re: [PHP] security issus

2004-09-15 Thread Greg Donald
On Wed, 15 Sep 2004 12:47:05 -0400, H. Ch. Esperer <[EMAIL PROTECTED]> wrote: > I have an apaci 1.3 and php 5.0.1 running on my machine and when I enter a url in a > browser without a slash at the end of it I get the php script(!) instead of its > output. When I add a slash, it works all right. >

[PHP] security issus

2004-09-15 Thread H. Ch. Esperer
Hello, I have an apaci 1.3 and php 5.0.1 running on my machine and when I enter a url in a browser without a slash at the end of it I get the php script(!) instead of its output. When I add a slash, it works all right. Has anyone experienced this before? Did I just misconfigure something? hc -

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Gryffyn, Trevor
Yeah, I get tons of them too. Ideally, someone should identify which user subscribed to the list is the culprit and remove their address. -TG > -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 15, 2004 11:53 AM > To: php-general > Subject: [P

Re: [PHP] IIS 4 vulnerabilities

2004-09-15 Thread Greg Donald
On Wed, 15 Sep 2004 17:28:50 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > A client of mine is running PHP on a windows box (SErver) with IIS 4 > installed. I am definitely not a favourite of it being a windows box and > secondly IIS version 4. I have heard many things about security breaches

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
> From: "Zoran Lorkovic" <[EMAIL PROTECTED]> > > > Well, when parsing html page data I want to save is saved in txt file. > > But when saving in txt file I got some strange chars like small square > > (this I see when open in NotePad). > [snip] > > Am I missing something? > > You forgot to post you

[PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread Nick Wilson
Anyone else getting these infuriating italian messages about some muppet that doesnt exist? 'desintione non existente'? I've written to [EMAIL PROTECTED] but no joy, everytime i post on the php list i get half a dozen of the damn things... -- Nick W -- PHP General Mailing List (http://www.php.

Re: [PHP] Bug? ... and commenting them out

2004-09-15 Thread John Holmes
From: "Stefan" <[EMAIL PROTECTED]> i've the dump feeling there's a bug in the parser (or in my mind =) since i tried to commenting out some code, containing . http://us4.php.net/manual/en/language.basic-syntax.comments.php Quote:The one-line comment styles actually only comment to the end of the

[PHP] IIS 4 vulnerabilities

2004-09-15 Thread Angelo Zanetti
Hi guys, A client of mine is running PHP on a windows box (SErver) with IIS 4 installed. I am definitely not a favourite of it being a windows box and secondly IIS version 4. I have heard many things about security breaches in IIS version 4. A question I want to ask you all is it still safe for t

Re: [PHP] Help with fwrite()

2004-09-15 Thread Nick Wilson
* and then John Holmes declared > >Should the db go like this? > > > >db_urls > >url_id | user_id | project_id | url > > > >db_user > >user_id | name | whatever > > > >db_project > >project_id | user_id > > > >Wow, now i've written it down it seems clearer ;) you guys reckon that's > >the righ

Re: [PHP] Help with fwrite()

2004-09-15 Thread John Holmes
From: "Nick Wilson" <[EMAIL PROTECTED]> Each user (must have an id,name clearly) can fetch as many urls as they wish, those urls get written to the db, then as each url is fetched from the db it is dealt with with php and deleted from the db. What if a user gets cut off from the script and a whole

[PHP] Bug? ... and commenting them out

2004-09-15 Thread Stefan
i've the dump feeling there's a bug in the parser (or in my mind =) since i tried to commenting out some code, containing . The according code was something like ... --- begin //$xml = ""; --- end the occured error is ... --- begin Parse error: parse error, unexpected $ in uninteresting on line

Re: [PHP] something like an SID

2004-09-15 Thread Chris Dowell
Perhaps it's something Freudian to do with your chequered past Just a thought :) John Holmes wrote: Subject: Re: [PHP] something like an SID Anyone else read that as "something like an STD" ?? and thought we were getting more spam to the list!?!? ;) ---John Holmes... -- PHP General Mailing List

Re: [PHP] something like an SID

2004-09-15 Thread John Holmes
Subject: Re: [PHP] something like an SID Anyone else read that as "something like an STD" ?? and thought we were getting more spam to the list!?!? ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php - no results - display other message

2004-09-15 Thread John Holmes
From: "Chris Dowell" <[EMAIL PROTECTED]> Or alternatively $result = mysql_query("SELECT * FROM tablename"); if (mysql_num_rows($result)) { while ($row = mysql_fetch_row($result)) { // display results } } else echo "No results"; bah... you're wasting precious resources on a mysql_num_rows call

Re: [PHP] Help with fwrite()

2004-09-15 Thread Nick Wilson
* and then John Nichel declared > John Holmes wrote: > >You can't just remove part of a file like you remove part of a string. > >You'll need to read (eventually) the entire file and only write back > >what you want to keep. > > > >Now, you said this could be a very large file, so you don't

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread Chris Dowell
Zoran Sounds like your problem is with line endings - your unix (i presume) box ends its lines with a newline (\n) Windows ends lines with a carraige return followed by a newline (\r\n or CRLF) Notepad doesn't recognise a newline on its own as either a valid character or a valid line ending, s

Re: [PHP] Removing strange chars from array (or string)

2004-09-15 Thread John Holmes
From: "Zoran Lorkovic" <[EMAIL PROTECTED]> Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I got some strange chars like small square (this I see when open in NotePad). [snip] Am I missing something? You forgot to post your code. If you're only usi

Re: [PHP] Refresh page with frames...

2004-09-15 Thread John Nichel
Andre wrote: Hello How can I refresh a page with frames, I use the code below but don't it doesn't work You can't with PHP. But I'm betting that if you Google, you'll find some info on JavaScript. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Refresh page with frames...

2004-09-15 Thread John Holmes
From: "Andre " <[EMAIL PROTECTED]> How can I refresh a page with frames, I use the code below but don't it doesn't work Right click -> Refresh Frame ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Refresh page with frames...

2004-09-15 Thread Andre
Hello How can I refresh a page with frames, I use the code below but don't it doesn't work Can I refresh a page with frames with this code? echo""; Thank's

[PHP] Removing strange chars from array (or string)

2004-09-15 Thread Zoran Lorkovic
Hi Well, when parsing html page data I want to save is saved in txt file. But when saving in txt file I got some strange chars like small square (this I see when open in NotePad). When I try to open in WordPad this strange chars (squares) are recognized as new lines so in my file I got many em

Re: [PHP] php - no results - display other message

2004-09-15 Thread Chris Dowell
Or alternatively $result = mysql_query("SELECT * FROM tablename"); if (mysql_num_rows($result)) { while ($row = mysql_fetch_row($result)) { // display results } } else echo "No results"; Hope this helps Cheers Chris John Nichel wrote: Dustin Krysak wrote: Hi there... I have a simple search pa

  1   2   >