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] Re: Generating Barcodes and printing

2002-06-27 Thread Anil Kumar K.
Also: http://www.mribti.com/barcode/ On Thu, 27 Jun 2002, Peter wrote: > Read the stuff you find on google first though - there was an article I read > about certain inks absorbing InfraRed light so barcodes printed in them will > not work! > The HP ink used in the Deskjet 693 and 660 seems to

[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] Re: Two cases going to same case?

2002-06-30 Thread Anil Kumar K.
Can't you write it this way? switch( $bar) { case 2: ... case 1: ... case 3: ... } On Sun, 30 Jun 2002, Leif K-Brooks wrote: > 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 thr

[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

Re: [PHP] how to resort results of a query

2002-07-05 Thread Matthew K. Gold
27;m not sure how to go about it. Thanks in advance. best, Matt - Original Message - From: Chris Hewitt <[EMAIL PROTECTED]> To: Matthew K. Gold <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 7:34 AM Subject: Re: [PHP] how to resort results

[PHP] how to resort results of a query

2002-07-05 Thread Matthew K. Gold
Hi, How can I set things up so that a user can resort the results of a query? Also, how can I make certain columns into links? I'm making a site that will list college courses. When users decide to browse listings by discipline, or college, I'd like the titles of the courses to be links to ful

[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

Re: [PHP] Re: Development Tools

2002-07-10 Thread Matthew K. Gold
The difference between Dreamweaver and Homesite is that Homesite is easier to customize, and it doesn't mess with your code the way that Dreamweaver does. If you're happy with Dreamweaver, you should stick with it. But if you want more control over your code, you should consider switching. Of co

[PHP] is_null question

2002-07-12 Thread Matthew K. Gold
Hi Everyone, Here's my problem: I'd like to make the printing of some text dependent on whether or not a variable is null. In the following example, when $row[1] is null, what gets printed on the page is "Email: ". I'd like the script to not print "Email:" if row[1] is null. It looks like

Re: [PHP] How come this will echo No or nothing?

2002-07-14 Thread Matthew K. Gold
this is from the O'Reilly _Programming PHP_ (Rasmus Lerdorf & Kevin Tatroe): "Because echo is not a true function, you can't use it as part of a larger expression: // parse error if (echo("test)) { echo("it worked!"; } Such errors are easily remedied, though, by using the print() or printf()

[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

[PHP] can pdf forms be used to submit data into db?

2003-08-27 Thread Ryan . K . Look
hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits submit, php takes the data and puts it into a db or some sort of db technology and if the need

[PHP] can pdf forms be used to submit data into a db?

2003-08-27 Thread Ryan . K . Look
hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits submit, php takes the data and puts it into a db or some sort of db technology and if the need

[PHP] Thank You for your help

2003-08-27 Thread Ryan . K . Look
Hi guys, gals, first off i just wanted to thank all of you who responded to my question, they were very helpful...but the answers bring me to several new questions: 1) has anyone seen anything like this done with the reader ver. of acrobat and not the full version of acrobat...could you point me

Re: [PHP] can pdf forms be used to submit data into db?

2003-08-27 Thread Ryan . K . Look
John, that is EXACTLY what i want, now the question is...have you seen this implemented somewhere? so php would pass the data to a database and when a user/client wants to see that data again, php would "re-generate" the form with the data that is being requested right? and that is what FDF can

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] Restart Apache with PHP???

2003-09-04 Thread Anil Kumar K.
Writing something like this as part of a Web application is definitely a bad idea. The requirement is more like that of a remote administration system and Webmin (http://www.webmin.com/) cleanly and safely fits the bill. Webmin can actually do more than just restarting Apache. But it can be co

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

[PHP] Printing in Linux

2003-10-25 Thread Manilal K M
Hello everybody, Can anyone give information regarding how to print a file in plain text format using PHP. I am using RedHat Linux9.0, httpd-2.0.40-21 and php-4.2.2-17. I think that print support is not given to linux. I want to know that whether there is any developments in this reg

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

[PHP] How to get the server information

2003-11-04 Thread K. Praveen Kumar
Dear All, How can I get the Server Information which operating system the server is running? Using PHP. please let me know -- Thanks & Regards Praveen Kumar SoftPro Systems Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get the server information

2003-11-04 Thread K. Praveen Kumar
gt; bye > > - Original Message - > From: "K. Praveen Kumar" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "Praveen Kumar" <[EMAIL PROTECTED]> > Sent: Tuesday, November 04, 2003 2:33 PM > Subject: [PHP] How to get the server informat

[PHP] How to support Multi Lingual characters

2003-11-07 Thread K. Praveen Kumar
Dear List, I would like to support Multi lingual characters using PHP in my application. How can I support? Does PHP automatically supports this feature. Please let me know. I will be really waiting for your suggestions -- Thanks & Regards Praveen Kumar SoftPro Systems Ltd -- PHP Gener

RE: [PHP] How to support Multi Lingual characters

2003-11-07 Thread K. Praveen Kumar
same language. Can it be done?? -- Thanks & Regards Praveen Kumar SoftPro Systems Ltd On Fri, 2003-11-07 at 16:17, umesh wrote: > yes, though compile PHP with japanese support, you can accept input in > English as well. > > Umesh. > > -Original Message- > From:

[PHP] HTML2PDF on the fly

2003-11-11 Thread K. Praveen Kumar
Hi all, Can anybody tell me how can I convert the HTML to PDF on the fly. I have a HTML form which should be converted into PDF after filling and submitting it. Please give me your valuable suggestions. I have been using HTMLDOC-1.8.23. executing the below code giving error.This code is given

Re: [PHP] HTML2PDF on the fly

2003-11-11 Thread K. Praveen Kumar
This is the error I am getting while executing the script. File does not begin with '%PDF-'. -- Thanks & Regards Praveen Kumar SoftPro Systems Ltd On Tue, 2003-11-11 at 16:29, Burhan Khalid wrote: > K. Praveen Kumar wrote: > > Hi all, > > Can anybody tell me

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] PHP Dynamic menu building

2003-12-05 Thread K. Praveen Kumar
Dear list, I have been facing problems while building dynamic menu. I am using database to store the Menu items. I am having two fields in the database table called ParentID, ChildID. Parent Child 1 0 2 0 3 0 4 1 5 1 6 1 7 3 8 3 9 4 10

[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

[PHP] DGS Search Script Modifications

2003-12-15 Thread K. Praveen Kumar
Dear All, I recently downloaded the DGS search, which has the great features. Now I would like to modify the script a bit. Requirement: I wanted to search different tables for the entered keywords. If find the file name and id will be different for each so, I wanted to get the id of

[PHP] DGS Search Modifications

2003-12-15 Thread K. Praveen Kumar
Dear All, I recently downloaded the DGS search, which has the great features. Now I would like to modify the script a bit. Requirement: I wanted to search different tables for the entered keywords. If find the file name and id will be different for each so, I wanted to get the id of

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

<    2   3   4   5   6   7   8   9   >