[PHP] Downside to using login sessions?

2002-06-15 Thread Leif K-Brooks
I am planning to change how my site stores logins to using sessions. Are there any reasons not to do this? Reasons against it I should know? Thanks for your input. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downside to using login sessions?

2002-06-15 Thread Leif K-Brooks
COOKIE based sessions is that they will break on non-cookie >browsers, so a smarter move is to use URL based sessions. > >A more focused question will of course result in a more focused answer :) > >Justin French > > >on 15/06/02 6:59 PM, Leif K-Brooks ([EMAIL PROTECTED]) wrote: &

[PHP] Replacing by soundex?

2002-06-22 Thread Leif K-Brooks
Is it possible to replace any part of a string that has a certain soundex with something else? It would also be helpful if I could reference the original in replacing. Thanks for any tips. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error(Newbie)

2002-06-22 Thread Leif K-Brooks
Do NOT do it that way! That may work now, but it may not in the future! The correct way is to append. Like ".$_COOKIE['tececo_stats']." (include the quotes). Do it the same way for the others. 1LT John W. Holmes wrote > >Try using $_COOKIE[tececo_stats] instead...without the single quotes

[PHP] Getting all letters not in a string?

2002-06-27 Thread Leif K-Brooks
What is the easiest way to get an array of all letters not in a string? I.e. $array = notinstring("abc"); //returns array of: d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing cookies in required files

2002-06-27 Thread Leif K-Brooks
This sounds like a problem with the function, not file. Are you globaling the variable with the cookie? Chris Morrow wrote: >Hi, > >Can anyone help with this problem? > >I have a file called "settings.inc" which I include in all files on my site >like this: > >require("settings.inc"); > >Up un

[PHP] Easier way to seperate variables?

2002-06-27 Thread Leif K-Brooks
I am trying to put a variable within a print <<< END. The thing is, I want text directly after it - which php will include in the variable name. I have to END; and use another print $variable;. Is there an easier way to seperate the variable? -- PHP General Mailing List (http://www.php.ne

[PHP] Two cases going to same case?

2002-06-30 Thread Leif K-Brooks
I have a switch in a script I'm working on. I need to have case 1 and 2 both to to case 3, but without case 1 going through case 2. Is this possible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why is this code hanging?

2002-07-02 Thread Leif K-Brooks
I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30 seconds. The error is on line 18. Any ideas? My code: "; if(!isset($_POST['text'])){ print <<< END Text: END; }else{ $text

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Leif K-Brooks
Oops, sorry for the dumb problem... John Holmes wrote: >You're not incrementing $count within your while loop. So it's staying >at zero the whole time... > >---John Holmes... > > > >>-----Original Message- >>From: Leif K-Brooks [mailto:[EMAIL P

[PHP] Making sessions last longer?

2002-07-06 Thread Leif K-Brooks
Is there any way to make sessions last longer without access to php.ini? I know how to change the cookie length, but not how long the session is stored on the server. Is this possible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Function source?

2002-07-09 Thread Leif K-Brooks
If I understand correctly, all php functions are written in php. If this is true, is it possible to view function source code? Thanks for any insight into this :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Any sites like www.webcron.org?

2002-07-15 Thread Leif K-Brooks
I'm making a web site with a friend. For now, we're stuck on a free host with no cron. We need it, and I tried www.webcron.org, but it seems to be down. Does anyone here know of similar services? Thanks for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Leif K-Brooks
Steve Todd wrote: Is this a bug or can we legally use it. Please RTFM before posting! http://php.net/variables.variable -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing

Re: [PHP] Thank You for your help

2003-08-28 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: 2) this question is more directed to Justin French, but in any case, the reason i wanted to use the PDF forms is so that i don't have to create them again in CSS or any other format, the forms are already created and all i need to do is figure out how to make the data that

Re: [PHP] Re: IS THIS A BUG?

2003-08-28 Thread Leif K-Brooks
DvDmanDT wrote: When using register_globals=off, this might be off intrest: (notice $$var) while(list($var,$val)=each($_REQUEST))$$var=$val; Why not just turn register_globals on, then? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be

Re: [PHP] some html basics please

2003-08-30 Thread Leif K-Brooks
Dennis Gearon wrote: It seems that HTML is LAME, LAME,LAME when it comes to determining local directories. This is a PHP list, not an HTML list. What does this have to do with PHP? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pros

Re: [PHP] some html basics please

2003-08-30 Thread Leif K-Brooks
Dennis Gearon wrote: h, php outputs to the browser, hmmm, browser reads HTML hm,maybe somepeople who program in PHP have to dabble in HTML Never said they don't, but the HTML PHP outputs has nothing to do with PHP. Take this to an HTML list/newsgroup. -- The above message is encrypted wi

Re: [PHP] Block HTML Control

2003-09-02 Thread Leif K-Brooks
Seth Willits wrote: Aaa ok. I was confused with the semi colon and colon used in the last example. This clears it all up. Thanks. http://us3.php.net/manual/en/control-structures.alternative-syntax.php -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt t

Re: [PHP] precompile php scripts

2003-09-18 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: Hi there i was wondering if there was an open source port of a php script compiler for the server. Will this make alot of difference in performance at all. I know this may have been asked many times, is the encoders also a compile i dont particularly need to encode/decode

Re: [PHP] oop problems code

2003-09-18 Thread Leif K-Brooks
ORLANDO POZO wrote: Hello, mailing list, I have problem with this oop code: [snip bad code] -- the output of it is: [snip output] ---

Re: [PHP] Session with various Browser.

2003-09-18 Thread Leif K-Brooks
Dan Anderson wrote: Try running newer browsers. I'd be curious how everything handles with Netscape 7 or the newest incarnation of IE. NS7 would be the same as Mozilla. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to th

Re: [PHP] Can I run scripts on server?

2003-09-23 Thread Leif K-Brooks
zavaboy wrote: Is there a way to have a PHP script run on the server? For example, I want to run a script to erase old database fields at 12:00 AM server time without any user interaction, how would I do that? All PHP scripts are run on the server, I'm guessing you mean run /automatically/ on the

Re: [PHP] Lifetime with cookie-less sessions

2003-09-24 Thread Leif K-Brooks
Becoming Digital wrote: I just took a thorough look at the Session Handling section in the manual. I couldn't even find any mention of non-cookie session lifetimes. I get the impression they either die on broswer close or have a fixed lifetime that cannot be changed. Hopefully someone can prove

Re: [PHP] Compare dates

2003-09-29 Thread Leif K-Brooks
Shaun wrote: How can I compare two dates with PHP, to see if one date occurred before the other? Convert them to a timestamps (strtotime()), then just compare them: $date1 = 'september 10th 2003'; $date2 = 'september 20th 2003'; $date1_ts = strtotime($date1); $date2_ts = strtotime($date2); if(

Re: [PHP] OT(?): mod_rewrite not passing GET variables to php

2003-10-01 Thread Leif K-Brooks
Steven Jarvis wrote: I'm just starting to experiment with mod_rewrite on Apache 1.3.x and php 4.3.3. Register_globals is off. I have the following rules in my .htaccess file (which sits in the site's root dir along with paper.php): RewriteEngine On RewriteRule ^/([a-z]+)/([a-z]+)/$ paper.php?p

Re: [PHP] Are variable object vars possible?

2003-10-02 Thread Leif K-Brooks
Jason Godesky wrote: I've been playing with variable variables and variable functions lately, and I was wondering if there was anyway to use that with object variables? I'm trying to make classes that can store instances in a database, and I'd like to have an abstract parent class with a load

Re: [PHP] How can I get a function name?

2003-10-06 Thread Leif K-Brooks
RDias wrote: How can I get a function name? If you're using PHP 4.3.0+, try the __FUNCTION__ magic constant. http://us2.php.net/manual/en/language.constants.predefined.php -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted

Re: [PHP] Verry strange GET behaviour

2003-10-07 Thread Leif K-Brooks
Chris Shiflett wrote: You have register_globals disabled, and if you are asking this question, you need to leave register_globals disabled. Use $_GET['_section'] to access your variable. But he says $REQUEST_URI works. -- The above message is encrypted with double rot13 encoding. Any unauthorize

Re: [PHP] GET globals REQUEST the plot thickens

2003-10-07 Thread Leif K-Brooks
Marek Kilimajer wrote: Has you mention what php version are you running? Superglobals are available only since 4.1.0 If $_GET works, then his PHP version must support superglobals. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be pros

Re: [PHP] or return problem

2003-10-07 Thread Leif K-Brooks
Chris Sherwood wrote: Well Unfortunately pat You are going to have to be an unlazy man and use an if statement Why won't any of you give a good reason why it won't work? How come this works: function foo() { 2+2==4 or die("The world is ending, or at least your processor!"); } But this does

Re: [PHP] or return problem

2003-10-07 Thread Leif K-Brooks
Robert Cummings wrote: Directly from the docs: http://ca3.php.net/manual/en/function.return.php First line: "If called from within a function, the return() statement immediately ends execution of the current function" Important concept: IMMEDIATELY returns. Learn to read. What

Re: [PHP] or return problem

2003-10-07 Thread Leif K-Brooks
Robert Cummings wrote: How can you possibly test, in a conditional, the return value of the return statement itself when it has no value to return and even causes the current scope to exit IMMEDIATELY?? Ok, that explains it. Thanks. -- The above message is encrypted with double rot13 encoding

Re: [PHP] or return problem

2003-10-07 Thread Leif K-Brooks
Robert Cummings wrote: Generally it doesn't look like a function since you can do: return 'foo' which has no parenthesis. The parenthesis are optional and only used to return the result of an expression. The same is true of exit/die. -- The above message is encrypted with double rot13 encodi

Re: [PHP] HTML Printing problem.

2003-10-07 Thread Leif K-Brooks
php coder wrote: HTML files are to large to print from the browser. We are creating reports that are ++5 mg in size. This is a real problem for the browser. We are on a network and can print directly from the server but this means we must convert the html to some printer friendly format. We ar

Re: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread Leif K-Brooks
LiteSpeed Information wrote: We glad to introduce you LiteSpeed Web Server 1.1. Mind explaining this? $ telnet litespeedtech.com 80 HEAD / HTTP/1.1 Host: litespeedtech.com HTTP/1.1 200 OK Date: Wed, 08 Oct 2003 16:36:18 GMT Server: Apache <--

Re: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread Leif K-Brooks
LiteSpeed Information wrote: Thank you for your interest. Our recommendation is, to setup your server environment with Apache first, make sure every thing works, then run LiteSpeed in parallel on different port, sharing the document root, then stop Apache and switch LiteSpeed to port 80. If any

Re: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread Leif K-Brooks
LiteSpeed Information wrote: What we are waiting for are extra security features: "chroot"(almost done) and "auto-ban". They are not available on Apache either we believe. If they aren't available with Apache either, why are you still using it? -- The above message is encrypted with double rot13

Re: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread Leif K-Brooks
LiteSpeed Information wrote: No doubt, Apache is a good web server, everyone use it. ;-) What the heck? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.

Re: [PHP] Pidget - The PHP5 Widget Library

2003-10-14 Thread Leif K-Brooks
Luke Ehresman wrote: Hi Everyone, It doesn't seem to be very standards-compliant. Good PHP is important to me, but good HTML is too. Also, I can't find any examples, but it doesn't really seem to seperate logic from presentation - it just provides another means of presentation. -- The above

Re: [PHP] Alternative to die()????

2003-10-16 Thread Leif K-Brooks
Scott Fletcher wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. If you don't want the page to end, don't use die at all. Simple as that. -- The above message is

Re: [PHP] Page breaks and printing?

2003-10-17 Thread Leif K-Brooks
J J wrote: Is there a good way in PHP to determine page breaks for long reports and printing? I'd like to be able to best determine where pages should begin and end and reprint things like table/page headers and footers on each page so the reports print nicely. Just use HTML thead/tfoot elemen

[PHP] Darken and lighten color?

2003-10-18 Thread Leif K-Brooks
I'm looking for a nice alithogram to darken and lighten a color by a certain ammount. I know this isn't strictly a PHP question, but I'm doing it in PHP and there isn't anywhere better to ask. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it

Re: [PHP] Darken and lighten color?

2003-10-18 Thread Leif K-Brooks
Chris Shiflett wrote: --- Leif K-Brooks <[EMAIL PROTECTED]> wrote: I'm looking for a nice alithogram to darken and lighten a color by a certain ammount. Maybe you mean algorithm? :-) Yep. My ability to spell decreases 5% every 15 minutes after 12AM. To lighten, increase RG

Re: [PHP] Darken and lighten color?

2003-10-18 Thread Leif K-Brooks
Becoming Digital wrote: You just have to leave it at 255. That's what Illustrator does. Hmm, seems to work, thanks. Note to self: try before you ask. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of

Re: [PHP] run exe file

2003-10-20 Thread Leif K-Brooks
Deependra b. Tandukar wrote: Is there anyway that I can put .exe file on the web, and allow visitors only to run it, not download it. No. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PH

Re: [PHP] if and like together?

2003-10-26 Thread Leif K-Brooks
Tim Thorburn wrote: Is there an IF LIKE statement in PHP? I've got a MySQL database setup with headings and text (think a news article site) - headings in one field, text in another. In some cases, I don't want the contents of the heading field to appear on the site - in these cases, the head

Re: [PHP] Idea for new operator

2003-10-26 Thread Leif K-Brooks
Larry E. Ullman wrote: I was feeling generous so I went back in time and added this functionality to PHP as of version 3. I call it the "strcasecmp" function. I placed the description and usage of the function in the PHP manual: http://www.php.net/strcasecmp That was nice of you, but he wanted

[PHP] Upgrading GD...

2003-10-27 Thread Leif K-Brooks
I need to use imagecreatetruecolor(), but my server is still using GD 1.6. Is it possible to upgrade GD without having to recompile PHP, etc.? I'm still fairly new to Linux administration. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

Re: [PHP] Upgrading GD...

2003-10-27 Thread Leif K-Brooks
Curt Zirzow wrote: The odds aren't that good, unless the current gd is loaded from a shared object instead of linked directly to php. Check your configure command from phpinfo() if it has the option --with-gd then it was linked directly. Otherwise it is loaded from an shared object file located in

Re: [PHP] Tricky variable syntax...

2003-10-27 Thread Leif K-Brooks
René Fournier wrote: What I want to do is echo the value of $img_photo_name. But how can I refer to it? echo 'file name: ' . ${$fld . '_name'}; -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

Re: [PHP] Upgrading GD...

2003-10-27 Thread Leif K-Brooks
Ryan Thompson wrote: Just a thought. Try using phpinfo() to find out the compile options. Use that and just add the GD compile options after upgrading GD. That's usually how I go about adding a new module. I can never remember what I've compiled into it. Thing is, I don't know how to get GD,

Re: [PHP] How to deal with XML?

2003-10-27 Thread Leif K-Brooks
Robert Cummings wrote: PHP docs are SGML as far as I can remember. How so? PHP isn't XML, SGML, HTML, or anything else besides PHP. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP Gene

Re: [PHP] Upgrading GD...

2003-10-28 Thread Leif K-Brooks
- Edwin - wrote: That should do it. (Unless, of course, you encounter some "configure" or "make" problems.) And of course, I did: configure: error: Cannot find rfc822.h. Please check your IMAP installation. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt

Re: [PHP] show_source

2003-10-28 Thread Leif K-Brooks
Curt Zirzow wrote: +1 and + on getting rid of the tags What he said. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Generate Thumbnail gif's

2003-10-28 Thread Leif K-Brooks
Vijaya_Manda wrote: Is there any pre-written code available on the net to generate thumbnail images for a picture. I mean I send the path of the image and my PHP Script should be able to generate a gif file of size 100x71 or something like that. Images will look stretched if you do that, but he

Re: [PHP] Generate Thumbnail gif's

2003-10-28 Thread Leif K-Brooks
Vijay Killu wrote: That will resize the image and display it as a thumbnail. No, they will give you a GD image resource to do what you want with. What I want is a new image to be created. I mean a .gif file. You can't create a GIF, but you can use imagepng() or imagejpeg() to output it t

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
Curt Zirzow wrote: Try reversing the quotes: error_prepend_string = ""; Not valid XHTML (not sure if it's even valid HTML). -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Ma

Re: [PHP] Calendar Script

2003-10-29 Thread Leif K-Brooks
Vijay Killu wrote: Where can I find the Calendar script that has been used on the PHP.net site. I believe I can use it on my website since it is open source :-) I don't seeany calendar, but you should be able to use the "show source" link whereever it is. -- The above message is encrypted with d

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
- Edwin - wrote: Why not? Because that's what the standard says. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] quotes in php.ini

2003-10-29 Thread Leif K-Brooks
- Edwin - wrote: Interesting. Where? www.w3.org -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Leif K-Brooks
- Edwin - wrote: Just by reading this -> http://www.apple.com/macosx/ esp. these last two sections: * Solid as a rock * Developer's dream would give people reason to consider and even "switch"... Mac OS X is fairly stable, I'll give you that. As for "developer's dream", that's a matter of op

Re: [PHP] Endless 'while' loops?

2003-10-30 Thread Leif K-Brooks
Dave G wrote: In the example they give in this book, they use a "while" loop (page 670, for anyone who has it). But it's confusing because it looks like this: while ( $subscriber = mysql_fetch_row($result)) { [write and send the email] } $subscriber

Re: [PHP] How to find the Drive letters

2003-11-12 Thread Leif K-Brooks
D. Jame wrote: How to find the Drive letters and Drive Types of remote system WNT, i have system administrator password too.. this all work done with PHP pages, when my client give IP, user /password then my PHP scirpt show him that system drive/ folders... Can't be done unless the remote

Re: [PHP] Extracting Source code from Binary Files(.dll,.exe.,class)

2003-11-13 Thread Leif K-Brooks
Prashant Akerkar wrote: I have a Query. Is it Possible to extract the source code from .exe,(VB,'C',C++),.dll(VB,'C',C++) or .class(java) files. To some extent. All that's left intact by the compiler is the logic, not the exact source code. In theory, a utility to transform machine code logic

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Robert Cummings wrote: FYI, if you're woprried about the "header cannot be sent due to output..." error, then if your file only has code and no HTML, then you can omit the ?> tag at the end of your script. This solves countless issues with there being a space, a tab, a newline, or any whitespace a

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: It's not a bug. Anything (including spaces, newlines etc) that is not inside is output directly to the browser. No, I'm talking about not using ?>. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to th

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: That's not a bug either. Leaving out the ?> is simply telling the php parser that it has to parse the rest of the script. Where's the manual page saying that's allowed? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: Ok, you're getting into semantics now. http://www.php.net/manual/en/language.basic-syntax.php doesn't say whether it is acceptable or not, but as Robert pointed out, if your script is purely php, omitting it is a good way of eliminating the headache of trailing white spaces

[PHP] Storing images for photo album?

2003-11-16 Thread Leif K-Brooks
I'm writing a photo album in PHP. The idea is to convert user-uploaded images to PNGs with unique IDs (1.png, 5.png, etc.), and cache them at certain sizes as needed. Now I'm running into an out-of-memory converting user images to PNGs, and I'm not sure what to do: copy them in whatever format

[PHP] How compatible is using PATH_INFO?

2003-11-27 Thread Leif K-Brooks
One common way to work around many search engines ignoring pages with query strings is to use scripts with odd URIs (http://server.com/foo.php/foo/bar for instance) and get them with $_SERVER['PATH_INFO']. How compatible is doing that? Will servers besides Apache support it? -- PHP General Mai

Re: [PHP] how can i get rid of newlines?

2003-11-28 Thread Leif K-Brooks
David T-G wrote: I need a true nl2br function to get rid of newlines; I am accepting a changed ini file parameter but the newline kills me. Try: $text = preg_replace("/\r\n|\n|\r", '', $text); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to escape '\'

2003-11-28 Thread Leif K-Brooks
Manisha Sathe wrote: I have magic_quotes_gpc ON 'Here's is' - this comes out after HTTP post as 'Here\'s is' But i want to get back the original string as it is - how to change ? www.php.net/stripslashes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Re: Unicode translation

2003-12-02 Thread Leif K-Brooks
Luke wrote: Yeah, i had a similar problem, i dont know if its the same, but i found that adding in the head of the html output fixed it Even better, use header('Content-Type: text/html; charset=UTF-8') at the beginning of your PHP page. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] removing line breaks

2003-12-05 Thread Leif K-Brooks
Roel Derckx wrote: I want to remove line breaks from the front of a string, but i can't get it to work. Who can help me? Note that i only want to remove line breaks in the start of the string, all line breaks in the rest of the string should remain. ltrim() -- PHP General Mailing List (http://ww

[PHP] UIEE?

2003-12-05 Thread Leif K-Brooks
I need to parse UIEE files for a project. Has anyone done that before? Any pointers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: spambothoney: script to pollute spammer's databases

2003-12-09 Thread Leif K-Brooks
Manuel Lemos wrote: The latest spamming strategies consist on using valid sender addresses of inocent companies. Therefore, when you make up invalid addresses, all the bounces will go to the innocent companies mail servers. The more invalid addresses you make up the more harm you cause to innoc

Re: [PHP] PHP forms that are valid XHTML

2003-12-30 Thread Leif K-Brooks
Tim Burgan wrote: In their forms they use the name attribute (ie. name="example") instead of XHTML's id attribute (ie. id="example"). How can I fix this? (X)HTML still requires name to be used for forms. It's usually best to use both name and ID for forms. -- PHP General Mailing List (http://ww

Re: [PHP] A simple instruction

2004-01-01 Thread Leif K-Brooks
Dino Costantini wrote: i have a file name with the path ex food/italy/pizza/margherita.php. how can i obtain the name of the file in this case "margherita.php" i know there is a function, but i don't remember it. $_SERVER['PHP_SELF'] -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] detecting flash in php

2004-01-08 Thread Leif K-Brooks
Louie Miranda wrote: is there anyway of detecting flash? in php Detecting whether the user has Flash enabled, you mean? No. PHP is server-side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I'm not sure how to do some simple code...

2002-01-25 Thread Leif K-Brooks
I know this is probably a stupid question, but how do I make it so that if a string contains the word "script" (I'm banning javascript) it does something? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

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

2002-01-30 Thread Leif K-Brooks
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the li

[PHP] Checking for plus signs?

2002-02-07 Thread Leif K-Brooks
I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I do?

[PHP] Trying to put ips into database

2002-02-08 Thread Leif K-Brooks
I'm trying: $query = mysql_query("select COUNT(*) as rowexists from ips where ip = '$REMOTE_ADDR'"); $result = mysql_fetch_array($query); if($result['rowexists'] == false){ mysql_query("INSERT INTO `ips` (`ip`) VALUES ('$REMOTE_ADDR')"); } But it keeps putting the ip into tthe array, even if it'

[PHP] Any way to protect cookies?

2002-02-09 Thread Leif K-Brooks
I have a website with logins, personal profiles, and stuff. I'd like to allow people to have htmlin their profiles, but if I did, they could use javascript to get people's cookies and hack their accounts! What can I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] How do I upload files sent with ?

2002-02-12 Thread Leif K-Brooks
I need to upload files sent with in my script, but how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is this possible?

2002-02-13 Thread Leif K-Brooks
;d need to get the url the user is requesting into the script. If this possible? Thanks in advance, Leif K-Brooks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] A function that turns special charcters into html codes?

2002-02-19 Thread Leif K-Brooks
I'm looking for a function that turns special charcters into html charcter codes (" into "). Is there one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-04-15 Thread Leif K-Brooks
I'm trying to build some sort of AI chat bot in php (yes, I know I'm crazy). To do this, I need some way to check for the presence of any value from an array. Example: $pharray = array("php","the best language ever"); if($question == "What is ".anything_in_array_function($phparray)."?"){ print "

Re: [PHP] Server-side imagemaps?

2002-04-16 Thread Leif K-Brooks
on 4/16/02 3:26 PM, Uchendu Nwachukwu at [EMAIL PROTECTED] wrote: Is there anyway I can use server-side imagemaps with PHP? I want to build an application that lets people click on a picture, and have the coordinates of the click on the picture be stored in a database. I've searched www.php.net a

[PHP] Does anyone have auto-signup stopping code? URGENT!

2002-04-19 Thread Leif K-Brooks
I have a website where people can signup. Some jerk just made a program that cheats by signing up automaticly and transfering what he gets when he starts (you can get virtual money in my game). Does anyone have code to stop automatic signups? I would write it, but he's about to distribute his p

[PHP] Second opinion needed - javascript blocker

2002-04-22 Thread Leif K-Brooks
I am trying to block javascript from ares of my site that users can change. I am going to use the following code. Can someone give me a second opinion on whether it will work? function stopjavascript($text){ //Stop people from using &whatever; tags, in case they can smuggle javascript in with

Re: AW: [PHP] Re: Second opinion needed - javascript blocker

2002-04-22 Thread Leif K-Brooks
Thynks, but I don't want to block html, I want to block javascript! And since onmouseover and similar events can be put in any tag, I'm trying to block them. on 4/22/02 4:44 PM, J Smith at [EMAIL PROTECTED] wrote: Then I'd suggest using the strip_tags() function and define which tags you'd like

[PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Leif K-Brooks
I use $formvar for form processing, I don't use the arrays. This is how I was taught to do it. If my host upgrades to 4.2.0, my website is as good as gone! What am I supposed to do?! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The so-called improvment in PHP 4.2.0

2002-04-22 Thread Leif K-Brooks
The only problem with that is that I have at least 50 scripts that are using the old thing! on 4/22/02 5:14 PM, Adam Voigt at [EMAIL PROTECTED] wrote: Umm, use $_POST or $_GET or $_REQUEST from now on. Adam Voigt [EMAIL PROTECTED]

[PHP] Why isn't this working? :(

2002-04-22 Thread Leif K-Brooks
I have a site where users can sign up. I have had huge problems with people using auto-signups, so I tried to stop them with an authentication image. Someone has since gotten around that. I highly doubt he is using OCR. Can someone try to figure out what's wrong with my code? Here it is: Conte

Re: [PHP] Why isn't this working? :( - I found my solution!

2002-04-22 Thread Leif K-Brooks
Thanks for everyone's help. I just figured out was wrong. I wasn't checking if a code was being returned. So all he had to do was chenge the codeid field to a non-existant code. Lol. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array wildcard?

2002-04-25 Thread Leif K-Brooks
Is there some array wildcard I can use? In other words, I have an array. Is there any wildcard function/character that will let me test to see if a string matches anything in that array? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Array wildcard?

2002-04-25 Thread Leif K-Brooks
on 4/25/02 1:58 PM, Miguel Cruz at [EMAIL PROTECTED] wrote: On Thu, 25 Apr 2002, Leif K-Brooks wrote: > Is there some array wildcard I can use? In other words, I have an array. > Is there any wildcard function/character that will let me test to see if a > string matches anything in th

[PHP] Variable won't work in function, even when I global it?

2002-05-19 Thread Leif K-Brooks
On my website, I open my header (and footer) file with fileopen and then eval() it. I know I should include them, but I knew nothing about php when I did this. Anyway, I'm working on "groups" for my website. They will be a kind of club. At the top of every group page, I include a group f

<    1   2   3   4   5   6   >