Re: [PHP] Associative arrays in strings

2001-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Boget, Chris") wrote: > Now, supposing you > do have error level set to very high, you cannot do this: > > echo "Here is a $string, $myArray['joe'] with $alot of PHP $variables"; > (using single quotes) > > to stop the error. You actually ha

Re: [PHP] preg_replace on array with "E (PCRE_DOLLAR_ENDONLY)" modifier

2001-04-23 Thread CC Zona
In article <9c2j66$1nt$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > If you are trying to match a $ in your code, just use a backspace to escape > it. Or enclose it in square braces. [$] Or use preg_quote(). -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] "reffered from" environmental variable?

2001-04-24 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Tom Beidler) wrote: > $parasite = getenv ("REMOTE_HOST"); > setcookie("reffrom",$parasite,time()+86400,"/",".flylikeaneagle.com"); > } > > That seems to set the browsers ip address not the ip address of the server > that's hosting one of th

Re: [PHP] last modified

2001-04-25 Thread CC Zona
In article , [EMAIL PROTECTED] ("Kasten, Holger") wrote: > how can I check the last modified date of a website. I mean not my own site, > I mean other sites. Use fsockopen(), send a HEAD request, get back (sometimes*) a Last-Modified header. *S

Re: [PHP] HELP! String Output Limit

2001-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Niko Spyridonos) wrote: > I am trying to display a variable that contains more than 255 characters but > the output stops at approx. 255. I tried to find what restricts it. Couldn't > find anything. I tried the "echo", "printf" commands even I

Re: [PHP] Quoting an unknown string for database insert

2001-05-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Joseph Tate") wrote: > Is there a function that I can call that is similar to perl's DBI::quote > function that will take arbitrary text and quote it so that it is safe to > insert into a database? http://php.net/addslashes -- CC -- PHP Ge

Re: [PHP] SQL Select Unique() ?

2001-05-02 Thread CC Zona
In article , [EMAIL PROTECTED] (Anuradha Ratnaweera) wrote: > > Is there a method of extracting rows from a MySQL table Uniquely (as in only > > once) ?. For example, when a user performs a search, using two words, > > it may return the same r

Re: [PHP] REG_BADPAT ERROR!

2001-05-03 Thread CC Zona
In article <007001c0d38f$c50929b0$a0a6ca18@renttib>, [EMAIL PROTECTED] ("Martin Bittner-Lamy") wrote: > Warning: REG BADPAT in /usr/home/64.157.1.190/public html/test/segrabs.php on > line 236 > > and the line 236 is: $url=ereg replace("&","&",$url); Why are bother to use a regex function fo

Re: [PHP] PHP 4.0.5 Parse Problems

2001-05-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ben Gollmer) wrote: > >I only mention them since they got parsed before. They are php files > >that the designers here have created in HomeSite and saved as PC > >format, so they are basically 1 long line when I open them in v

Re: [PHP] Variable question

2001-05-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("King, Justin") wrote: > A simple eval($mysqldata) isn't going to do it though since the string > is "Your username is $userdata["username"]"; it'll just spit a parse > error. I've already tried that The code being eval'd has to be a valid PH

Re: [PHP] Getting to many returns when creating a text file

2001-05-08 Thread CC Zona
In article <478EB6C82CC2D4119AF300B0D07963F4087721@NTSERVER01>, [EMAIL PROTECTED] (Sam) wrote: > But, it appears that the users type in a lot of character returns as well as > such symbols as " and commas. > > Is there a way, when creating the text file, to get rid of all these? Many ways. So

Re: [PHP] Putting quotes in?

2001-05-08 Thread CC Zona
In article <004401c0d83d$c711a180$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Ender") wrote: > Okay I am taking a number from a mySQL database and I want to put quotes on > that number? > > How would I do this? > > $databasenumber = 123.123.123.123; > > How do I make > $databasenumber = "123.12

Re: [PHP] mysql - SUBSTRING

2001-05-12 Thread CC Zona
In article <000c01c0dabb$422d2bd0$0101@devel01>, [EMAIL PROTECTED] ("andreas \(@work\)") wrote: > but i cant work it out how to use this function in the WHERE clause > > ... WHERE SUBSTRING(field,pos,len) LIKE "ABC" > ... WHERE SUBSTRING(field,pos,len) = 'ABC' > ... WHERE SUBSTRING(fie

Re: [PHP] Getting the domain from an url?

2001-05-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("John Vanderbeck") wrote: > I am quite horrible when it comes to regexps, but I have a string that > contains a complete url, like: > http://www.domain.com/this/is/it.html > > And I need to strip everything but the domain so that I am left with

Re: [PHP] need better solution...

2001-05-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Dechery) wrote: > > ... header here ... > lots of code > ?> > ... footer here ... > > > but sometimes I want something like this: > session_start(); // for instance > code code code > if(something) >

Re: [PHP] finding a variables name

2001-05-14 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joseph Blythe) wrote: > How does one find the name of a variable, not what the variable contains? > > This is not the same as variable variables. > > I know this seems a bit pointless but I have come across a situation > where I really need t

Re: [PHP] still not friends with RegExps..

2001-05-15 Thread CC Zona
In article <00c301c0dd69$a64de040$6a45c5d5@jaguar>, [EMAIL PROTECTED] ("Gyozo Papp") wrote: > There is a function quotemeta() which escapes all special regexp character > such as: > . \ + * ? [ ^ ] ( $ ) > with a '\' except one the '|' pipe. Forget quotemeta(). Use preg_quote() instead.

Re: [PHP] still not friends with RegExps..

2001-05-15 Thread CC Zona
In article <025c01c0dd7a$3b75d320$6a45c5d5@jaguar>, [EMAIL PROTECTED] ("Gyozo Papp") wrote: > > > There is a function quotemeta() which escapes all special regexp > > > character > > > such as: > > > . \ + * ? [ ^ ] ( $ ) > > > with a '\' except one the '|' pipe. > > > > Forget quotemeta

Re: [PHP] Are constants more efficient than variables that never change?

2001-05-15 Thread CC Zona
In article <9dsknt$fb1$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Noah Spitzer-Williams") wrote: > So my question is should i just do: > > define("myvar", 3); > > OR: > > $myvar = 3; > > does defining it make that much of a difference (if i have several of these > variables that could be define

Re: [PHP] Testing if variable was set

2001-05-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jordan Elver) wrote: > if($var) { > // variable is here > } > > But I've noticed that a lot of people do: > > if(isset($var)) { > // variable is here > } > > What's the difference and which is the best way? Turn up error reporti

Re: [PHP] mail function. not working

2001-05-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Richard Kurth) wrote: > Way does this not work it sends to the recipient but it will not > send to the bcc this is right out of the manual. > $recipient .= "[EMAIL PROTECTED]"; > $subject = "Hello"; > $message .= "The is the message\n"; > $m

Re: [PHP] Global variables? (unset/set or what?)

2001-05-19 Thread CC Zona
In article <9e6s21$2rk$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Richard") wrote: > So i should start the header (or wherever in the header) with : > > $GLOBALS["userPassword"] = "whatever"; > > function cp() { > global $userPassword; > > // $userPassword is 'whatever' /

Re: [PHP] What's wrong with this code?

2001-05-21 Thread CC Zona
In article <9eb4nf$pdf$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > $file = eregi_replace(".*", "", $file); > > But I use PCRE functions, so I don't want to use ereg in one place and PCRE > in another, so I tried: > > $file = preg_replace("#.*#i", "", $file); > > Thing is, that

Re: [PHP] regex

2001-05-22 Thread CC Zona
> > Is a '.' inside of a [] a literal '.', or a 'any character' > metacharacter. In what regex syntax? In POSIX (ereg_*) and in PCRE (preg_*): [.]//match a period \.//match a period . //match one instance of any character (which could be a period) [[.foo.]] //match string "foo" (

[PHP] Re: How to define subroutine

2002-01-07 Thread CC Zona
In article <002901c1980e$4ba456f0$0200a8c0@piii>, [EMAIL PROTECTED] (Sanjay) wrote: > I am new to PHP and want to do object oriented programming in PHP. I want to > write a subroutine and call that subroutine.

[PHP] Re: Maybe OT but I was wondering....

2002-01-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ben Turner) wrote: > I am trying to find somewhere that I can identify a custom 404 > error page and then pull the page based on the document directory. If you just want to customize your 404 page (presumably to call a PHP script?), your web

[PHP] Re: stripping high ascii from a string

2002-01-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bill) wrote: > Is there a function that can strip high ascii from a string? How about a regex? preg_replace() supports matching on octal or hex ranges , so perhaps one of these...? $news

Re: [PHP] echo "" problem NEW

2002-01-08 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steven Cayford) wrote: > You can tell php to treat quotes as text by escaping > them: putting a \ in front of them like this: > > echo ""; > > Or you could drop out of php mode entirely to do your html like this: > > ...php stuff here ... >

[PHP] Re: unshift a key value pair

2002-01-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Marc Logghe) wrote: > So it is really easy to *remove* a key-value pair, but how do you put one in ? $arr[$key]=$val; -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: Operators

2002-01-10 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Gerard Samuel) wrote: > If != is the opposite of == > What is the opposite of === ?? !($something===$somethingelse) -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] Re: include with call

2002-01-13 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John Cuthbert) wrote: > I have a file which does several different things depending on how its > called Ie > file?mode=show is to show it etc > > But I want to include the output from the show so I tried > but this causes errors. It goes away

[PHP] Re: Wrong result ("345php.tmp") instead a filepath from

2002-01-14 Thread CC Zona
In article <005501c19d41$28521e70$fe78a8c0@laptop>, [EMAIL PROTECTED] (Helmut Ott) wrote: > I have a page with a html-form headed with > ...ENCTYPE="multipart/form-data" ... > > and multiple inputs,e.g.: > "..." > If I select a file,e.g. "abc.jpg" with the path "c:\abc.jpg" > I get a value lik

Re: [PHP] PHP Errors?

2002-01-15 Thread CC Zona
In article <01a601c19de8$adc1b050$5e01a8c0@ben>, [EMAIL PROTECTED] (Ben Sinclair) wrote: > It is possible to disable error reporting, but you would probably remember > doing it. A call to phpinfo() to check the global and local settings for error_reporting and display_errors would be the firs

[PHP] Re: querying results already queryed once before

2002-01-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Phil Schwarzmann) wrote: > Dumb question: How do I query results from a MySQL that I've already > queried once before in the same page? > > Here is my code: > > // querying the database for the first time. > $query = "select * from table wher

[PHP] Re: Arrrr The Space is gone.

2002-01-26 Thread CC Zona
In article <002801c1a6ed$1a9c10a0$0401a8c0@philip>, [EMAIL PROTECTED] (Philip J. Newman) wrote: > $q=preg replace("/[ \W]/","",$q); > > I have this to remove all the bad things, but it takes out the space to ... > )o; why? There's a space in your character class, so of course it will be among

Re: [PHP] Re: Arrrr The Space is gone.

2002-01-26 Thread CC Zona
In article <004d01c1a6f2$cb909070$0401a8c0@philip>, [EMAIL PROTECTED] (Philip J. Newman) wrote: > This returns an error > > $q=preg replace("/[^ \w]/","",$q); > > Parse error: parse error in d:\hosting\http\philipsdomain\config.php on line > 41 > > Suggestions? I think ezmlm must strip under

[PHP] Re: Getting an include file into a string after PHP evaluates the vars?

2002-01-29 Thread CC Zona
In article <007601c1a91f$ea9ecac0$6401a8c0@kevin>, [EMAIL PROTECTED] (Kevin Stone) wrote: > I don't know why I didn't think of this ahead of time but in order to > produce the HTML-based ePostcard email I have to get the evaluated > template into a string. > > I can fopen() the template file an

[PHP] Re: preg_replace() 'space' the final frontier

2002-01-30 Thread CC Zona
In article <000801c1a9c5$26007460$017f@localhost>, [EMAIL PROTECTED] (Hugh Danaher) wrote: > What I am trying to do is have a line of text break at a "space" after > reading 19 words. Having read the various methods of finding and replacing > one character with another, I settled on preg

Re: [PHP] unset a function?

2002-01-30 Thread CC Zona
In article , [EMAIL PROTECTED] (Philip Olson) wrote: > > > include("file1"); > > function_somename(); > > include("file2"); > > function_somename(); > > ?> > > > > file1 and contain a function definition, but the function in both files had

[PHP] Re: A function that executes php code in a string?

2002-01-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leif K-Brooks) wrote: > I want to execute code in a mysql datrabase, but is this possible? I want > it to run exactly as if I had tyyped it in to the php file. -- CC -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: try/catch type constructs?

2002-02-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jon Drukman) wrote: > the idea being that if any of the commands in the block fail, the database > package automatically does a die("") and the block is terminated. > > the nearest i could get with php is: > > do { >mysql_query("UPDATE ..

[PHP] Re: pushing array index

2002-02-01 Thread CC Zona
In article <006101c1ab7b$27ec01b0$9d0e533e@mazingerz>, [EMAIL PROTECTED] (Borja martín) wrote: > $img[3]["src"]= "img1"; > $img[6]["src"]= "img2"; > $img[9]["src"]= "img3"; > > and I would like to change the array index adding one to their values,but > only on the two last arrays,

[PHP] Re: Address unknown

2002-02-02 Thread CC Zona
In article <000e01c1ac31$2cdf6f20$017f@localhost>, [EMAIL PROTECTED] (Hugh Danaher) wrote: > Some one please tell me to RTFN!, but first tell me where to look. :-) > > I have a page with an image of a map which delivers the following info to the > address bar of someplace.php. the html c

Re: [PHP] Re: Address unknown

2002-02-02 Thread CC Zona
In article <001001c1ac45$406eab00$017f@localhost>, [EMAIL PROTECTED] (Hugh Danaher) wrote: > Thank you for your help regarding parsing the url (Hey, go figure, they > named the function almost exactly the same as my question.). > > I am still at sea about getting all the information from th

[PHP] Re: !isset ??

2002-02-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Erik Price) wrote: > Pretty confusing. Can anyone shed some light on whether or not there is > a final definite way to do this? I've used (!($_POST['var'])) with no > problems in the past, but does good coding style suggest that I use > (!i

Re: [PHP] secure form handling

2002-02-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Obo) wrote: > > Sorry, perhaps I've misunderstood. You would like to charge a customer's > > card without the customer knowing how much you're charging them? > i want the user to be able to see the amount being charged on the > screen, but not

Re: [PHP] secure form handling

2002-02-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wm) wrote: > Cc Zona wrote: > > > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Obo) > > wrote: > > > > > > Sorry, perhaps I've misunderstood. You would like to charge a customer's

[PHP] Re: I'm new here is there.....

2002-02-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cyberskydive) wrote: > I know this php.general - is there another newsgroup which specifically > deals with help issues? PHP General does deal with help issues. Alternatively, you can post to . -- CC -- PHP General Mailing

[PHP] Re: Table exists?

2002-02-09 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Nick Wilson) wrote: > What would be the easiest way to see if a MySQL table exists with PHP? > I can do it by checking against mysql_list_tables() but that seems a > little clumsy. Is there a better way? See MySQL's documentation of the "CREATE

[PHP] Re: Implement @-domains with PHP?

2002-02-11 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > Anybody got some code how to access the first part of > a URI (the string just before the @)? I don't want to use > HTTP-authentication and I'm using Win2k with IIS as CGI... > > Example: > http:[EMAIL PROTECTED]

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > My problem is much more trivial, how to retrieve the string the user > type into the address bar of his/her browser??? You can look over the environment vars available to you with a quick call to phpinfo()

[PHP] Re: PHP not parsed in HTML

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Spyproductions Support Team) wrote: > I am with a hosting company that doesn't want to parse PHP in HTML files > because they are afraid it will slow down their server(s) too much. > > So. I really like them and don't want to move the site if

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Christian Blichmann) wrote: > "Cc Zona" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > You can look over the environment vars available to you with a quick cal

[PHP] Re: storing arrays

2002-02-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Clark) wrote: > 1) Is it possible to write an array to a file? > 2) Is it possible to specify the name of the key to each item of an array > when you get the array usin

[PHP] Re: Frustrating ?

2002-02-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > Heres's a frustrating, and maybe not so stupid question? > > I'm getting "Warning: Supplied argument is not a valid MySQL result > resource" on this line: > > while ($mydata = mysql_fetch_object($news)) > > So what am I d

[PHP] Re: More: Frustrating ?

2002-02-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > > > $where = "id like $id"; > So I do? > > $news = mysql_query("select * from ccl where '.$where.' order by AU desc"); > > or ? > > $news = mysql_query("select * from ccl where '.%$where%.' order by AU desc"); Neither.

[PHP] Re: preg_match vs ereg etc

2002-02-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Digitalkoala) wrote: > I was just wondering what your opinions were on using preg_match, preg_split > instead of ereg and explode? > > I have to write a script to parse a lot of html and text files.. and I'm > looking to use the fastest possib

[PHP] Re: argh!

2002-02-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Richard Baskett) wrote: > Ok this is getting frustrating! I am serializing a variable and passing it > through the url, in the url and when I echo it on the next page it shows > s:608:, and when I unserialize it and echo it, it doesnt show anyt

[PHP] Re: Removing every thing between ( )

2002-02-20 Thread CC Zona
In article <001901c1ba5d$634e3840$89010a0a@bpaulson>, [EMAIL PROTECTED] (Brian Paulson) wrote: > What would the regular expression be to remove all the text > between ( ) > > $string = "This is a (001 Test) and (002 Test)"; $string=preg_replace("/\(.+\)/U",'',$string); Note that leadi

[PHP] Re: Seeing if a value matches anything in an array

2002-04-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leif K-Brooks) wrote: > I need some way to check for the presence of any value from an > array. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Re: help required on removing lf-cr from form data

2002-04-16 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Venkateshwar B) wrote: > I have > tried to use "str_replace" and replace "\n" by "". But it does'nt give > me the desired result of limiting text to single line . $nobreaks=preg_replace("/[\r\n]+/"," ",$hasbreaks);

Re: [PHP] Would this work? (mod_rewrite)

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > But now I am receiving a 404 error message and the following message in my > error log: > > [Wed Apr 17 18:31:26 2002] [error] [client 172.131.190.148] File does not > exist: /home/swiften/public_html/404.shtml > > [Wed Apr 17 18:31:

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > RewriteEngine on > RewriteBase/ > RewriteRule$.* index.php RewriteRule takes a regular expression as its first parameter . The "$" regex meta-character is an end-

[PHP] Re: mod_rewrite (the solution)

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cc Zona) wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > wrote: > > > RewriteEngine on > > RewriteBase/ > > RewriteRule$.* index.php > > RewriteRule takes a regul

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
In article <000401c1e67b$dd64c820$2fa3f318@blackbox>, [EMAIL PROTECTED] (Dustin E. Childers) wrote: > It does not stop after its execution time. We have let this run for 10+ > minutes to see if it would crash the server, and it did. It does not affect > the person that loads the code in the brow

[PHP] Re: HTTP gzip-compression and fopen

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Trond Arve Nordheim) wrote: > I was writing a slashdot RSS-parser for my homepage, and wrote a simple > function to fetch the slashdot.rdf-file from slashdot, and parse it > using PEAR's XML/RSS.php. > > Here's the core reading the remote file:

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
In article , [EMAIL PROTECTED] (Richard Archer) wrote: > At 8:55 PM -0400 17/4/02, Justin Farnsworth wrote: > > >This is a rather meaningless thread. It is a > >security issue that is displaced. > > If PHP is not honoring the time limit and memory usage

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
> From: Martin Towell <[EMAIL PROTECTED]> > Date: Wednesday, April 17, 2002 6:37 pm > Subject: RE: [PHP] Nasty DoS in PHP > > > Is that memory usage used by PHP or apache? > > > > -Original Message- > > From: Jason Soza [mailto:[EMAIL PROTECT

Re: [PHP] Nasty DoS in PHP

2002-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Soza) wrote: > Interesting, check out my apache error log: > [Wed Apr 17 18:35:53 2002] [error] PHP Fatal error: Maximum execution time > of 30 seconds exceeded in d:\html\loop.asp on line 7 LOL. You use *.asp for your PHP scripts? Wou

[PHP] Re: Executing a time intensive script

2002-04-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Zach Curtis) wrote: > Is there a way to get the function to > execute and let it run on its own within login.php and let the user continue > on to the authenticated area without that delay?

[PHP] Re: file_get_contents source??

2002-04-19 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Giovanni Lenzi) wrote: > file_get_contents function is supposed to return the contents of a file in a > binary safe manner. I tried it on two different servers which has different > versions of APACHE+PHP but it still not works. > The server giv

[PHP] Re: Why does this not work??

2002-04-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jeffrey Means) wrote: > In using the setcookie function I can not set a cookie if I specify a time > period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not > set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does

[PHP] Re: Help PHP 4.2: No more error messages

2002-04-23 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Mark W. Humphries) wrote: > I am running PHP 4.2 and Apache 1.3.23 on Win2k. > I am generating png files. Before upgrading to PHP 4.2 whenever I had a bug > in a png generating script I would get back an error message, now I only get > back a bl

Re: [PHP] Array wildcard?

2002-04-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leif K-Brooks) wrote: > One more question. Is there any way to use this with part of a string? > Example: > function checkfruitlove($string){ > $fruitarray = array("apples","oranges"); > if($string == "I love ".in_array($fruitarray)."!"){ > $r

[PHP] Re: Safe mode

2002-04-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ashley M. Kirchner) wrote: > > php_value include_path ".:/usr/local/lib/php" > php_flag safe_mode On > php_flag magic_quotes_gpc Off > php_flag track_vars On > php_flag track_errors On > > > And the s

Re: [PHP] Safe mode

2002-04-26 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ashley M. Kirchner) wrote: > Rasmus Lerdorf wrote: > > > You need to use php_admin_flag for safe_mode. > > And I suppose this page has an error on it then: > > http://www.php.net/manual/en/configuration.php > > Since it states ph

[PHP] Re: init_set(): auto_append_file doesn't work?

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Matt Wong) wrote: > init_set doesn't seem to work for setting auto_append_file, in php 4.1.2. > the master setting is NULL, and the local setting is properly set when I do > a phpinfo(), but the file never gets appended. Any ideas? The functi

[PHP] Re: Stripping characters.....

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cditty) wrote: > ieUser email address is "Chris Ditty" > <[EMAIL PROTECTED]> or Chris Ditty <[EMAIL PROTECTED]> > > I need to be able to strip the quotes and everything between them and the > < > signs from the first one and then the na

[PHP] Re: Stripping characters.....

2002-04-27 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cc Zona) wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Cditty) wrote: > > > ieUser email address is "Chris Ditty" > > <[EMAIL PROTECTED]> or Chris Ditty <[EMAIL PROTEC

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Wong) wrote: > Konqueror is the only browser (that I've used) which supports per-site > javascript policy (deny, allow, disable pop-ups). iCab too. It allows suppression of various intrusive JS features on a global and per-host basis.

[PHP] Re: Looking for an easier regex check...

2002-04-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > Does anybody know of a good way to make sure that a string contains ONLY > certain characters. I tried using > ereg("[~`!@#$%^&*(){}-+=|\\/.,<>'\":;\[\]]", $string); but I get parse > errors. Besides that I only want

[PHP] Re: Problem with fopen()

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ben Turner) wrote: > I am getting the error that I cannot create the > file in the directory. I have tried chmod and chown on the directory but > nothing is working for me. I have even gone so far as to make the owner of > the directory apache

[PHP] Re: regular expressions help please

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ed Lazor) wrote: > I've been banging my head against regular expressions all night... help > would be greatly appreciated. Could you give me examples on how to do the > following? > > Pull everything except a specific word from a sentence.

Re: [PHP] apps that need register globals 'on' and others require 'off' on same server

2002-04-30 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Sheets) wrote: > > From: Jeff Bearer [mailto:[EMAIL PROTECTED]] > > > > Is there a way to turn register globals on or off in the script at > > runtime? > Chapter 3 in the PHP manual covers setting PHP configuration directives via > the .

Re: [PHP] PHP --help

2002-05-01 Thread CC Zona
In article <002b01c1f115$7ae52790$2f7e3393@TB447CCO3>, [EMAIL PROTECTED] (1lt John W. Holmes) wrote: > Use $_GET["fn"] and $_GET["ln"], or $_POST[], depending on your action. > > Does anybody read the release notes for a product before you download and > install it? I'm just going to save a sta

[PHP] Re: getting a function name of the calling function

2002-05-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > Does anybody know of any constants or predefined functions that will > retrieve the calling functions name? For example: > > function new_func($somedata) { > echo "I am function ".get_func_name(); > } > ?> What wo

[PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Joshua E Minnie) wrote: > What I am trying to do is create an error message within in a string that > whenever each function fails it echos this particular string out with it's > pertinent information. > > i.e. > $error_string = "Warning: unab

[PHP] Re: case-insensitive str_replace

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J Smith) wrote: > Reuben D Budiardja wrote: > > > I am in need of a case-insensitive str_replace. > > > > The feature that I use in str_replace is to put the 'search' and 'replace' > > argument as an array, as described in the documentation fo

Re: [PHP] Re: case-insensitive str_replace

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Reuben D Budiardja) wrote: > On Thursday 02 May 2002 04:08 pm, J Smith wrote: > > preg_replace() can be used with arrays. > > Yeah, but how to make it case-insensitive beside changing the my search and > replace strings to a regular expression

Re: [PHP] eregi

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miguel Cruz) wrote: > On Thu, 2 May 2002, Fredrik Arild Takle wrote: > > eregi("$start(.*)end", $rf, $my_var); > > > > And I want it to stop at the first presedence of $end, not the last (thats > > what this is doing). > > Try preg, which is f

Re: [PHP] eregi

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miguel Cruz) wrote: > On Thu, 2 May 2002, CC Zona wrote: > > [EMAIL PROTECTED] (Miguel Cruz) wrote: > >> preg_match("/{$start}(.*?)end/", $rf, my_var); > > > > Leave out the braces. > >

Re: [PHP] Re: getting a function name of the calling function

2002-05-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Miguel Cruz) wrote: > I'm guessing he wants to do something like a stack trace to figure out how > a function managed to get itself called with bad data. > > With utility functions that may get called hundreds of times in a single > run, that

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Caldwell) wrote: > Here's my code: > > set_time_limit(1); > function clean_up() > { > if(connection_status() & TIMEOUT) >print("Script timed out.\n"); > } > register_shutdown_function("clean_up"); > while(1); >

[PHP] Re: php.net sloooooooowwww

2002-05-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Caldwell) wrote: > Is there some place else I can download release 4.2.1 ??? www.php.net is > dead slow, and us2.php.net is taking forever to prompt me for the > download -- I keep getting hit with the "Page Cannot be Displayed" error. Ha

[PHP] Re: unable to process form data

2002-02-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jeremy Reed) wrote: > I was able to fix the 'unable to find dynamic etc.' error thanks to you > guys. Now I have a new problem. It seems that I am unable to process form > data. Before upgrading to 4.1.1, you were able to refer to the form da

[PHP] Re: gzip?

2002-02-21 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jtjohnston) wrote: > What header do I type to gzip something out on the screen? To make the > output go faster, such as this text output: > http://ccl.flsh.usherb.ca/db/export_to_nb_format.php > I don,t want to actually zip the output, just make

[PHP] Re: php 4.1.1 vs 4.0.6

2002-02-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ezra Nugroho) wrote: > I am deciding between 4.0.6 and 4.1.1 (or maybe 4.1.2 if it's comming soon). > I heard that there is some significant difference between 4.0.x and 4.1.x > What is the main difference between 4.0.6 and 4.1.1 ? > Are the 4.1

[PHP] Re: Changing arguments in the php.ini file

2002-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Kostas Karadamoglou) wrote: > When I change an argument from off to on and then restart the Apache server > the php.info() function displays thats no changes took place. > Exambles like register_global and display_errors. > I dont know what is

[PHP] Re: multilanguage support

2002-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Leonid Zilber) wrote: > On our site, we have page with a form a user puts his/her information such > as company name, givenname, etc. Currently, if a name entered is anything > but English characters, PhP fails. > > For example, if I enter Norw

[PHP] Re: Is there a way to put a scroll in a table ???

2002-02-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (J.F.Kishor) wrote: > I'am breaking my head by trying to put a scroll in a table, > my problem is, using php 'am trying to display a report and the report > should have three tables, data to display are taken from three different > tables

<    1   2   3   4   5   >