Re: [PHP] view outputed headers?

2004-01-11 Thread Jason Wong
On Monday 12 January 2004 13:34, Scott Taylor wrote: > What is the easiest way to view the headers that a PHP page has put > out? I've seen the |var_dump(headers_list()); on php.net but this Are you sure you don't mean headers_sent()? > always gives me an error (such as: | > > Fatal error: Call

Re: [PHP] addSlashes problem....5 lines code

2004-01-11 Thread Jason Wong
On Monday 12 January 2004 13:25, Ryan A wrote: > > addslashes() _enables_ you to enter stuff which contains > >quotes into the DB properly, but the slashes are obviously not part of the > >data and hence not stored. > > * > but the whole sql statement is part of the data right? I mean I am saving

[PHP] view outputed headers?

2004-01-11 Thread Scott Taylor
What is the easiest way to view the headers that a PHP page has put out? I've seen the |var_dump(headers_list()); on php.net but this always gives me an error (such as: | Fatal error: Call to undefined function: headers_list() in /usr/local/psa/home/vhosts/a.com/httpdocs/my/page.php on line 7

Re: [PHP] Ver 5.0 Questions ...

2004-01-11 Thread John English
Check these two nice articles on PHP5: http://www.sitepoint.com/print/1192 by Harry Fuecks [http://www.phppatterns.com] http://www.phpvolcano.com/articles/php5/index.php I was wondering if there is a timeline for version 5, if so where can I find it ... Also I am developing an application that

Re: [PHP] addSlashes problem....5 lines code

2004-01-11 Thread Ryan A
Hi, Thanks for replying. * > addslashes() _enables_ you to enter stuff which contains >quotes into the DB properly, but the slashes are obviously not part of the >data and hence not stored. * but the whole sql statement is part of the data right? I mean I am saving the whole sql statement for late

Re: [PHP] addSlashes problem....5 lines code

2004-01-11 Thread Jason Wong
On Monday 12 January 2004 12:31, Ryan A wrote: > I am getting some input from a client in a text area, the input is an sql > statement, so I am using addslashes but the damn thing is not working...any > idea why? > > Heres my code: > > if(isset($_POST['the_sql_command'])) > { > $the_sql_command=

[PHP] Re: php_hostconnect()

2004-01-11 Thread Aidan Lister
It sounds like your script is poorly written. On one server, error reporting is set to E_ALL (All errors and warnings). On the other, It's probably set to E_ERROR. Check out php.net/error_reporting "Anthony Ritter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I currently have w

Re: [PHP] Rand() problem

2004-01-11 Thread Jason Wong
On Monday 12 January 2004 12:30, Jon wrote: > I am running the latest stable PHP release. Which is? "Latest" changes over time. Always state the exact version. > I am passed values and my > range is far less than the max... On my computer with my Xitami webserver > this code returns the number

Re: [PHP] writing Excel files through PHP

2004-01-11 Thread Binay
Hi Marek, Thanks for replying ..I have got few questions based on ur suggestions.. plz find it embedded in your reply. Thanks Binay - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Binay" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 10, 2004 6:5

[PHP] addSlashes problem....5 lines code

2004-01-11 Thread Ryan A
Hi, I am getting some input from a client in a text area, the input is an sql statement, so I am using addslashes but the damn thing is not working...any idea why? Heres my code: if(isset($_POST['the_sql_command'])) { $the_sql_command=$_POST['the_sql_command']; $the_sql_command=addslashes($the

Re: [PHP] Rand() problem

2004-01-11 Thread Jon
I am running the latest stable PHP release. I am passed values and my range is far less than the max... On my computer with my Xitami webserver this code returns the number 45 over and over: $num = rand(0,50); echo $num; I don't know what to do. The rand function worked a few times then died o

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread DvDmanDT
Just wondering... :) It was a host about a year ago.. Someone named Ryan was in the team, and I have a slight memory of him trying pre configured packages.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Ryan A" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] >

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread DvDmanDT
Perl is just an older language.. AFAIK, php can do all perl can do, and the other way round.. Although, PHP is being developed more active than Perl it seems... Maybe due to php being like at least 10 years younger (I think it's accutually something like 25 years difference)... Perl is harder to re

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread Ryan A
Hey, > Thanks for the tip. You raised one other question I have - PERL. > > I know nothing about it, but I just wondered how it fits into the big > scheme of things. Am I correct in understanding that PHP is, in the > broadest sense, a more user friendly PERL equivalent, and that people > who have

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread DvDmanDT
PHP is pretty much the same, the only difference I've ever noticed in how to install them... About Foxserv, phpdev, phptriad, phperl and so on: They'll work nice and great.. But within few days, you'll anyway find yourself changing the config files manually. :p Installing all manually isn't hard a

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread Freedomware
Ryan A wrote: "It installed pretty easy and the guy who makes it is real cool and will help you via the forum. Also options to run other things like PERL" Thanks for the tip. You raised one other question I have - PERL. I know nothing about it, but I just wondered how it fits into the big sc

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread Ryan A
Hey, Sorry I cant answer all your questions but can answer one important one, I have tried foxserv and triad and quite a few others...finally what I settled down to was phpdev (do a search on google to see where to download.) its packed with features and I have never had a problem with it from the

Re: [PHP] Re: php doesn't work in html files

2004-01-11 Thread Chris Shiflett
--- Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Wow, my posts on the average get 0 or 1 (not helpful reply)... > This one gets 4 identical replies!!! Because the replies to the question that you quoted were all different, your comment makes no sense (I'm not sure that it would make sense anyway).

[PHP] Returning Newbie (Disoriented)

2004-01-11 Thread Freedomware
I've been lurking on this list for quite some time. I did a little homework, downloaded a preconfigured package (Apache, PHP and MySQL), and was beginning to learn the ropes when I had a rather severe hard drive crash, along with other computer and website problems. (Actually, I had only instal

[PHP] Re: Regex help please

2004-01-11 Thread Manuel Vázquez Acosta
Try this: $pattern = '#function (\w+)\(((?:\$\w+(?:,\s*\$\w+)*?)|\s*)\)\s*\{[.\s]*((?:return\s+[^;]*\s*;)|)[ .\s]*#m'; Notice that \w means: A "word" character is any letter or digit or the underscore character, that is, any character which can be part of a Perl "word". Though, any regexp for thi

[PHP] Re: Calling cgi post form from within php

2004-01-11 Thread Thomas Andersen
Thanks for your help guys, I got it working. Thomas "Thomas Andersen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > does anyone know how to call a cgi script and pass along a post-form from > within php? > > Thanks, > Thomas -- PHP General Mailing List (http://www.php.n

[PHP] Re: Exception number: c0000005 (access violation

2004-01-11 Thread DvDmanDT
Doesn't that mean the threads try to access the same variable at the same time? Or is it 'The memory could not be read/written'.. If it's the latter one... Tends to happend on free() in my C programs/extensions in XP... It's really strange accutually.. I'm starting to suspect some virus or somethin

[PHP] Re: Ver 5.0 Questions ...

2004-01-11 Thread DvDmanDT
Try beta3, or rc1-dev from snaps.php.net, if it works there, it'll work in 5.0, currently, it's bugfix only for RC1, and RC1 isn't very far from the release, so I really don't think anyting would get changed... Also, seems to me like objects and references are kinda the highest priority in 5.0 (alo

[PHP] Re: Function returns

2004-01-11 Thread DvDmanDT
Well... Definitly depends on what kind of function it is... However, instead of echoing in a function, most ppl recommend echo do_it(), were do_it() is function do_it() { return "Hi"; } There are many builtin functions without a return value, simply cause they don't need to, or there's no real log

[PHP] Regex help please

2004-01-11 Thread Shawn McKenzie
I have tried numerous variations, but my regex skills suck! I would appreciate anyone who can give me a pattern to use in preg_match_all() to match the following (I have the first part up to ANYTHING working): '|function ([\w\d\_]+)\((.*)\)ANYTHINGreturn (ANYTHING);|' So parsing a PHP file I hop

[PHP] Ver 5.0 Questions ...

2004-01-11 Thread Peter
I was wondering if there is a timeline for version 5, if so where can I find it ... Also I am developing an application that I pass a lot of objects by reference, will that cause problems in version 5 ? As far as I can see in the http://www.php.net/zend-engine-2.php there is nothing there to s

[PHP] Re: php doesn't work in html files

2004-01-11 Thread Shawn McKenzie
Wow, my posts on the average get 0 or 1 (not helpful reply)... This one gets 4 identical replies!!! -Shawn :) "Nico Berg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there all, > > I use Apache version 1.3 and WIndows 2000. The site is not global but only > local so I use th

[PHP] Function returns

2004-01-11 Thread Shawn McKenzie
Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo "hi"; } --or-- function do_it() { return echo "hi"; } Also, if they do other things but really don't return anything, should they retur

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Chris Shiflett
--- Nico Berg <[EMAIL PROTECTED]> wrote: > I use Apache version 1.3 and WIndows 2000. [snip] > echo "this is the second line"; > ?> > > Output is: This is a line > > So the php part is not done at all. Do you have PHP installed? Chris = Chris Shiflett - http://shiflett.org/ PHP Securit

Re: [PHP] phpdoc commenter

2004-01-11 Thread Shawn McKenzie
Thanks! I used this a while back but didn't remember that functionality. I have downloaded. Great, now I have 3 IDEs! Maguma, because it has some cool features, it is the first good one that I evaluated, and because Zend is very slow! Zend, because of the profiler and because it is Zend. PhpEdi

Re: [PHP] phpdoc commenter

2004-01-11 Thread Nelson Rodríguez-Peña Alarcón
Hi Shawn, Shawn McKenzie wrote: Has anyone seen a script or app that will parse PHP files and add phpdoc comments in the PHP file when it encounters a function or class? have you seen PhpEdit ? It's not that automatic, but it has an action that allows you to add documenta

[PHP] -DEAPI

2004-01-11 Thread richard
I'm running a Suse 8.2 out of the box. Now I want to create a PHP program with TCP sockets. The installed version of PHP is not supporting this because it is still experimental. After downloading and compiling the PHP source my first programs runs fine from the command line. Next step is compiling

Re: [PHP] picturing webpage

2004-01-11 Thread Stuart
PHP Email List wrote: Not sure that you wanted to know this or if this was mentioned already as I'm just now going through my 13,000+ emails from this list, but this isn't done dynamically. I'm betting that this Alexa company gets the urls that are posted for viewing and then goes out to grab the s

[PHP] phpdoc commenter

2004-01-11 Thread Shawn McKenzie
Has anyone seen a script or app that will parse PHP files and add phpdoc comments in the PHP file when it encounters a function or class? I know it won't be fool-proof, but it could at least add a block comment with required parameters and ascertain the function arguments and return value to be ad

RE: [PHP] picturing webpage

2004-01-11 Thread Ryan A
Hey, Thanks for that info, I checked a couple of other sites like jumac.com,securecents.com etc there and it showed me the same results as you got. Cheers, -Ryan On 1/11/2004 8:34:01 PM, PHP Email List ([EMAIL PROTECTED]) wrote: > Not sure that you wanted to know this or if this was mentioned alre

RE: [PHP] picturing webpage

2004-01-11 Thread PHP Email List
Not sure that you wanted to know this or if this was mentioned already as I'm just now going through my 13,000+ emails from this list, but this isn't done dynamically. I'm betting that this Alexa company gets the urls that are posted for viewing and then goes out to grab the site's pictures manuall

[PHP] Re: Sorting data into columns vertically

2004-01-11 Thread dareal hamsta
Well you didn't say you wanted a dynamic number of columns... Well I did* but thanks to yourself and Ralph I have what I'm looking for now, thanks very much. Much appreciated. adam * "Obviously if the number of items and columns are static, I have no problem, but how do I get a layout that app

Re: [PHP] Re: deamon / server

2004-01-11 Thread Marek Kilimajer
Decapode Azur wrote: Is it possible to make php scripts working like deamons and build something like a server? What you trying to achieve... Well nothing particular, just wondering howto... For exemple, the script make some calculations, but niced 19 in background and/or when the computer is id

Re: [PHP] Caps or No caps

2004-01-11 Thread Richard Davey
Hello Frank, Sunday, January 11, 2004, 2:51:55 PM, you wrote: FK> When you have output in the database like this: "HeLlo WorlD" FK> then you convert it to all caps "HELLO WORLD" or just the first FK> character that is only caps "Hello world". All uppercase = strtoupper() First letters capped = u

Re: [PHP] Exception number: c0000005 (access violation

2004-01-11 Thread Richard Davey
Hello Gunter, Saturday, January 10, 2004, 10:06:03 PM, you wrote: GS> I have 4.3.5-dev (Build Dec-22-2003) installed on a W2K Dell Inspiron 7500 GS> and I am getting an error which I don't get with 4.1.1 and 4.3.4. Would like GS> to learn how to debug things like that. Here is a dump of Dr. Watso

Re: [PHP] GMT

2004-01-11 Thread Sascha Kaufmann
Hello, you can use gmdate() http://ch2.php.net/gmdate regards Sascha Hassan Shaikh wrote: Hi, My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help! Once the date/time is in G

Re: [PHP] Caps or No caps

2004-01-11 Thread Brian V Bonini
On Sun, 2004-01-11 at 09:51, Frank Keessen wrote: > Hi All, > > Can you please help me with the following; Is there a function in PHP that can do > the following; > > When you have output in the database like this: "HeLlo WorlD" then you convert it to > all caps "HELLO WORLD" or just the first

[PHP] Re: Caps or No caps

2004-01-11 Thread Manuel Vázquez Acosta
>From the docs: $foo = 'hello world!'; $foo = ucwords($foo); // Hello World! $bar = 'HELLO WORLD!'; $bar = ucwords($bar); // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! "Frank Keessen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi

[PHP] Re: How do I do this select?

2004-01-11 Thread Manuel Vázquez Acosta
select distinct user.userId, fu.UserID as FriendID, fu.Name as FriendName from user, friendlist as f, user as fu where f.userkey = user.userkey and f.friendkey = fu.userkey order by user.userId, friendId; "Chris W" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I sent this to

[PHP] Caps or No caps

2004-01-11 Thread Frank Keessen
Hi All, Can you please help me with the following; Is there a function in PHP that can do the following; When you have output in the database like this: "HeLlo WorlD" then you convert it to all caps "HELLO WORLD" or just the first character that is only caps "Hello world". I googled and looked

[PHP] Re: GMT

2004-01-11 Thread Manuel Vázquez Acosta
As far as I know time() function returns the Unix timestamp which is GMT measured; althought date() function does the GMT convertion to the local timezone. You can store the result of time and then, modify the TZ environment var to matchs user timezone. Manu. "Hassan Shaikh" <[EMAIL PROTECTED]> w

[PHP] GMT

2004-01-11 Thread Hassan Shaikh
Hi, My hosting provider is located somewhere in Houston, TX (EV1). I am using PHP and MySQL and need to store all dates/time in GMT (considering DST also). Appreciate any help! Once the date/time is in GMT, it would be easier for me to display the date base on user preference (time zone differ

[PHP] How do I do this select?

2004-01-11 Thread Chris W
I sent this to the mysql list but it doesn't seem to be working so I was hoping someone here could help. I have the following 2 tables. CREATE TABLE User ( UserKey INT NOT NULL AUTO_INCREMENT, UserIDCHAR(16) NOT NULL UNIQUE , Name VARCHAR(20), PRIMARY KEY (UserKey) ); CREATE T

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Kelly Hallman
On Sun, 11 Jan 2004, MadHD wrote: > Try to rename the .html file in .php (index.html -> index.php) and test > it. You can reconfigure apache to pass all .html files to php compiler > but i don't recommend it because it reduce drastically the performance. ...IF those .html files don't mostly all co

Re: [PHP] php doesn't work in html files

2004-01-11 Thread MadHD
- Original Message - From: "Nico Berg" To: "'PHP General'" Sent: Sunday, January 11, 2004 2:04 PM Subject: [PHP] php doesn't work in html files > Hi there all, > > I use Apache version 1.3 and WIndows 2000. The site is not global but only > local so I use the url http://localhost/index.ht

[PHP] PHP 4.3.4 omits content-encoding gzip header with zlib.output_compression on (xs4)

2004-01-11 Thread Rogier Krieger
Hi there everyone, since upgrading to 4.3.4, I have a problem with the zlib.output_compression feature in PHP. In effect, I cannot use this feature as I get binary output in my browser (tested with both Mozilla and IE6). It seems the only way I can let PHP generate gzip encoded output is using the

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Jason Wong
On Sunday 11 January 2004 21:04, Nico Berg wrote: > I use Apache version 1.3 and WIndows 2000. The site is not global but only > local so I use the url http://localhost/index.html > > This index.html look's like this: [snip] > So the php part is not done at all. Is that right? I always believed

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Stuart
Nico Berg wrote: Hi there all, This index.html look's like this: This is a line Output is: This is a line So the php part is not done at all. Is that right? I always believed php should work in html? Assuming you have the web server set up according to PHP's installation docs, you either nee

Re: [PHP] File Uplaod

2004-01-11 Thread Jason Wong
On Sunday 11 January 2004 04:30, Rick Laird wrote: > I am trying to uplaod a 3 MB file to a server running apache and PHP. I > seem to hitting a 1.7 MB limit on the file size. I do not have > max_file_size set in my php.ini. I am using the Jakarta HTTPClient java > classes as the client. "uploa

Re: [PHP] File Uplaod

2004-01-11 Thread Stuart
Rick Laird wrote: I am trying to uplaod a 3 MB file to a server running apache and PHP. I seem to hitting a 1.7 MB limit on the file size. I do not have max_file_size set in my php.ini. Not having upload_max_filesize set (which I assume is the setting you are referring to) will cause PHP to use

[PHP] Re: jpeg Uploader issue

2004-01-11 Thread Volker Dähn
Hi, i had a problem like the one you descriped. The problem was quite simple. In my case everything worked fine with Windows-Web-Browsers but not with MAC-Browsers. Check the value of the filetype variable. There might be differences between different plattforms. Volker -- PHP General Mailing Lis

[PHP] I need a little help

2004-01-11 Thread webmaster
Hello all i have probably a pretty dumb one here. i need help with getting the proper count on my referrals the way i set it up was i was just going to count down the line by using the member table, i enter the referral in the member table when the new user is added, this may have been a bad ide

[PHP] php doesn't work in html files

2004-01-11 Thread Nico Berg
Hi there all, I use Apache version 1.3 and WIndows 2000. The site is not global but only local so I use the url http://localhost/index.html This index.html look's like this: This is a line Output is: This is a line So the php part is not done at all. Is that right? I always believed php

php-general Digest 11 Jan 2004 12:36:22 -0000 Issue 2524

2004-01-11 Thread php-general-digest-help
php-general Digest 11 Jan 2004 12:36:22 - Issue 2524 Topics (messages 174225 through 174229): Re: jpeg Uploader issue 174225 by: Manuel Vázquez Acosta File Uplaod 174226 by: Rick Laird Re: http authentication through PHP 174227 by: Burhan Khalid Re: deamon / server

Re: [PHP] Spell checker in PHP

2004-01-11 Thread Justin French
On Saturday, January 10, 2004, at 06:57 AM, Robin Kopetzky wrote: Good afternoon! I know aspell and pspell are available but pspell won't work in my Windows environment. Does anyone know how to tie into Word's spell checker using php or another spell check option? What I need is a way to check

Re: [PHP] Re: deamon / server

2004-01-11 Thread Decapode Azur
> > Is it possible to make php scripts working like deamons > > and build something like a server? > > What you trying to achieve... Well nothing particular, just wondering howto... For exemple, the script make some calculations, but niced 19 in background and/or when the computer is idl. And if

Re: [PHP] http authentication through PHP

2004-01-11 Thread Burhan Khalid
Scott Taylor wrote: What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? In other words, I have a PHP page that will get the username and password off a database and will then login through HTTP authentication to access a second page (say an HT

[PHP] File Uplaod

2004-01-11 Thread Rick Laird
I am trying to uplaod a 3 MB file to a server running apache and PHP. I seem to hitting a 1.7 MB limit on the file size. I do not have max_file_size set in my php.ini. I am using the Jakarta HTTPClient java classes as the client. Any help would be much appriciated. Thanks Rick Laird -- PHP