[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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 HTML page).
I believe Snoopy can do this
http://snoopy.sourceforge.net
--
Burhan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 sometimes the user want to see where 
the calculations are in progress, the user make a tcp query. Is it possible 
and how?
Or another exemple, a php-gtk 3D isometric game, with a PHP server to put 
several users in the same persistant world. So is it possible (and of course 
how :p) to make a TCP/udp server in PHP ?

Are there (and of course what are their name/url :p) server or deamon writen 
in PHP yet?

-- 
thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 spelling 
on
city/state names and select the most appropriate if the user mangles 
the
words.
U, does is Word actually capable of City/State names?  To the best 
of my knowledge (I don't use Word), Word checks against a dictionary 
(US/UK/AU English, etc)... I wouldn't think these dictionaries would 
extend as far as all City & State names applicable for that dictionary. 
 That's insane.

Although technically, you *could* add them all to Word's dictionary.

However, my point is, Spell-checking of City & State names isn't 
common, because it's too hard for the dictionaries to keep up with the 
list.

So, if Word can't offer this feature, why would your web application 
need it?

Also, given the global nature of the web, you'd have a LOT of data 
entry to do :)

Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.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
174228 by: Decapode Azur

Re: Spell checker in PHP
174229 by: Justin French

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
--- Begin Message ---
Could you give us details on: how the uploads is being made: HTTP, or FTP;
tests you have made, etc.

Manu.

"Mike R" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I am having an issue where a user with a MAC can't see jpegs uploaded to a
> web site I built.  They are getting some sort of corrupt file indicator.
> All PC users are fine from what I gather.
>
> I saw only one reference to this on the web in a forum, and it lead to no
> particular answer; just a few people talking about how they were all
having
> the issue.
>
> Anyone ever seen anything like this?
>
> Thanks,
>
> -Mike
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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 HTML page).
I believe Snoopy can do this
http://snoopy.sourceforge.net
--
Burhan
--- End Message ---
--- Begin Message ---
> > 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 sometimes the user want to see where 
the calculations are in progress, the user make a tcp query. Is it possible 
and how?
Or another exemple, a php-gtk 3D isometric game, with a PHP server to put 
several users in the same persistant world. So is it possible (and of course 
how :p) to make a TCP/udp server in PHP ?

Are there (and of course what are their name/url :p) server or deamon writen 
in PHP yet?

-- 
thanks
--- End Message ---
--- Begin Message ---
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 spelling 
on
city/state names and select the most appropriate if the user mangles 
the
words.
U, does is Word actually capable of City/State names?  To the best 
of my knowledge (I don't use Word), Word checks against a dictionary 
(US/UK/AU English, etc)... I wouldn't think these dictionaries would 
extend as far as all City & State names applicable for that dictionary. 
 That's insane.

Although technically, you *could* add them all to Word's dictionary.

However, my point is, Spell-checking of City & State names isn't 
common, because it's too hard for the dictionaries to keep up with the 
list.

So, if Word can't offer this feature, why would your web application 
need it?

Also, given the global nature of the web, you'd have a LOT of data 
entry to do :)

Justin French
--- End Message ---


[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
should work in html?

Nico

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 idea but i figured it would save sql resources, 
well the problem is when i do the count it does okay unless i run accross a member who 
doesnt have a downline yet, say member1 has 4 referrals member2 has 3 well if the 
first of the 4 from member1 doesnt have any then it wont show what the next member 
has. i believe i need to place them in a array before using the count and im not sure 
of a good way to pull table information to an array. So really if someone could just 
show me a goodway to put information from a table into an array i could probably 
figure the rest out. Thanks for any help.


[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 List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 the default value of 2MB. Try 
setting it and see what happens.

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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.

"upload_max_filesize" defaults to 2MB, so to upload something larger you 
_need_ to set it. Also read the chapter on "Handling file uploads" to see 
what other settings needs to be changed as well.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
When given a choice -- take both! 
-- Anti- Murphy's Laws n2
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 need to rename index.html to index.php or tell the web 
server to run .html files through PHP (refer to the PHP manual for 
details on how to do this).

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 php
> should work in html?

By default the webserver only treats files with the .php extension (and a few 
others, see your webserver config) as PHP files.

If you want it to process .html files as PHP then look for the following line 
(or similar) in httpd.conf:

 AddType application/x-httpd-php .php4 .php3 .phtml .php .inc

and add .html to the end of it, then restart Apache.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
"I got everybody to pay up front...then I blew up their planet."
  "Now why didn't I think of that?"
-- Post Bros. Comics
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 ob_gzhandler in php.ini.

The scripts I use do not contain ob_start() functions, etc. The
problem also occurs with the standard phpinfo() 'script'. From
phpinfo(), I can see my php.ini file is read correctly (yes, I
checked the FAQ). Starting point for my php.ini file is the php 4.3.4
php.ini-recommended settings file. More system information is
included at the bottom of this message.

When I try the following setup in php.ini:
output_handler = 
zlib.output_compression = on
zlib.output_handler =

I get garbled, binary data in my browser. Inspecting the HTTP headers
(in Mozilla), I see both the "Vary: Content-encoding" and
"Content-encoding: gzip" headers are not present. Experience with
other gzip modules (such as apache's mod_gzip) suggests these headers
should be present. I suspect PHP correctly generates gzip-encoded
output, yet does not include the correct headers. In older PHP
versions (4.3.2, 4.3.3) I had no such trouble. The problem occurs on
both Apache 1.3.29 and 2.0.48 starting with PHP version 4.3.4.


As a workaround, I now use the following setup in php.ini:
output_handler = ob_gzhandler
zlib.output_compression = off
zlib.output_handler = 

This works correctly, sending gzip-encoded output using the correct
headers. Compression is active (and effective, clearly visible
checking the page size for phpinfo()). My only problem with this
workaround, is that I now have several scripts that no longer
correctly generate CSV and/or PDF files for IE clients. As crappy as
some may find IE, I'm afraid I cannot work arround that browser,
which is why I would like to use the former setup.


I know the CSV/PDF generating scripts should never trust the
site-wide output handlers, but this seems to be a problem of PHP as
well. Can anyone reproduce this to see whether this is a setup
problem or worthy of a bug report?

Thanks in advance,

Rogier Krieger


Tested systems:
Apache 1.3.29 as well as 2.0.48
NetBSD 1.6.1 as well as FreeBSD 4.8
PHP 4.3.4 with modules:
+ zlib, gettext, gd, domxml, xslt, pdflib,
+ openssl, mcrypt, mhash,
+ sockets, snmp, ftp, imap,
+ pgsql, mysql and ldap

PHP configurations are similar on all 3 machines.

My php.ini for NetBSD/apache2:
[ http://www.iverdahl.net/pub/php.ini ]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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.html
>
> This index.html look's like this:
>
> 
> 
> This is a line
> 
> 
>
>  echo "this is the second 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?

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.

Heber

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 contain PHP code.
Same performance hit if you were naming plain HTML files as .php...

-- 
Kelly Hallman
// Ultrafancy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 TABLE FriendList(
  UserKey INT NOT NULL,
  FriendKey   INT NOT NULL,
  PRIMARY KEY (UserKey, FriendKey)
);
The second table is a many to many relationship table.  I want to select
 every row from FriendList and link it to userID so the out put looks
something like this.
UserID   FriendID  FriendName
ax x-name
ay y-name
az z-name
ba a-name
bc c-name
bz z-name
cb b-name
cx x-name
This will give me sort of what I am looking for, but it shows the
UserKey in the first column and I want the UserID.  I have tried a few
others but just got errors.
SELECT f.UserKey, UserID FriendID, Name FriendName
FROM User u, FriendList f
WHERE f.FriendKey = u.UserKey
ORDER BY f.UserKey, FriendID;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 difference).

Thanks.


Hassan


[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]> wrote in message
news:[EMAIL PROTECTED]
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 difference).

Thanks.


Hassan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 at the php.net site but i'm not seeing it.

Regards,

Frank


[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 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 TABLE FriendList(
>UserKey INT NOT NULL,
>FriendKey   INT NOT NULL,
>PRIMARY KEY (UserKey, FriendKey)
> );
>
> The second table is a many to many relationship table.  I want to select
>   every row from FriendList and link it to userID so the out put looks
> something like this.
>
> UserID   FriendID  FriendName
> ax x-name
> ay y-name
> az z-name
> ba a-name
> bc c-name
> bz z-name
> cb b-name
> cx x-name
>
>
> This will give me sort of what I am looking for, but it shows the
> UserKey in the first column and I want the UserID.  I have tried a few
> others but just got errors.
>
> SELECT f.UserKey, UserID FriendID, Name FriendName
> FROM User u, FriendList f
> WHERE f.FriendKey = u.UserKey
> ORDER BY f.UserKey, FriendID;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 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 at the php.net site but i'm not seeing it.
>
> Regards,
>
> Frank
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 character that is only caps "Hello world".

Any of the regex replace functions should be able to do that.



-- 
BrianGnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
  Key Server: pgp.mit.edu
==
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org


signature.asc
Description: This is a digitally signed message part


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 GMT, it would be easier for me to display the date base on user preference (time zone difference).

Thanks.

Hassan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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. Watson:

GS> Somebody else out there who had this problem? What's the best way to debug
GS> something like that? Any pointers are appreciated.

Yes, I have had this problem also, but with 4.3.2 on a WinXP Pro box.
It took me ages to isolate the error and in the end it turned out to
be something like a combination of htmlspecialchars() and urldecode() on
a string. Removing the command, which was absolutely correct from a
syntax point of view, stopped the problem happening.

On my live FreeBSD server it never happened, only on the test box.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 = ucfirst() and ucwords()

Download the PHP manual and keep a local copy of it, then search it
for "uppercase" and you'll find what you need.

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 idl. And if sometimes the user want to see where 
the calculations are in progress, the user make a tcp query. Is it possible 
and how?
Or another exemple, a php-gtk 3D isometric game, with a PHP server to put 
several users in the same persistant world. So is it possible (and of course 
how :p) to make a TCP/udp server in PHP ?
It is.

Are there (and of course what are their name/url :p) server or deamon writen 
in PHP yet?

http://nanoweb.si.kz/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 appeals to people and not computers 
if they're dynamic?"

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 manually, I
tried 4 sites in my own town and none had pictures, but said "Coming soon"
where the pic was to be.

roughridershockey.com
wolf-smart.com <---my site
techwiz.net <--friends site
collinscu.org <--my friends bank

So hope that helps in your pursuit of the unknown! Good Luck!


-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:58 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] picturing webpage


Hey,
if they are paying for this service of getting thumbnails.maybe I can
write a script that keeps on hitting their site with different random
URLs
Would be a good way to make them pay for spamming me anyway.

Whos with me?


Cheers,
-Ryan

*
Getting closer.. Did a little digging.. The script goes to alexa.com,
from what I see, alexa is doing the work then sending the pics out.

http://pages.alexa.com/prod_serv/xml_feed.html

Does this help with anyone explaining how this works?

Thanks,

Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
*

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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 manually, I
> tried 4 sites in my own town and none had pictures, but said
> "Coming soon"
> where the pic was to be.
>
> roughridershockey.com
> wolf-smart.com <---my site
> techwiz.net <--friends site
> collinscu.org <--my friends bank
>
> So hope that helps in your pursuit of the unknown! Good Luck!
>
>
> -Original Message-
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 09, 2004 2:58 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] picturing webpage
>
>
> Hey,
> if they are paying for this service of getting thumbnails.maybe I can
> write a script that keeps on hitting their site with different random
> URLs
> Would be a good way to make them pay for spamming me anyway.
>
> Whos with me?
>
>
> Cheers,
> -Ryan
>
> *
> Getting closer.. Did a little digging.. The script goes to ale

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 added in the block comment.

Shouldn't be a difficult script to write, but maybe there is a good solution
out there.

TIA
-Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 site's pictures manually, I
tried 4 sites in my own town and none had pictures, but said "Coming soon"
where the pic was to be.
I highly doubt they do it manually. I would say it's more likely that 
the first request for a site gets it added to a queue to be grabbed at 
some later date and is then periodically updated unless no requests are 
made for it after a certain period. But I'm just making a slightly 
educated guess.

--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 PHP as an apache module. I
downloaded the apche source and compiled it. I didn't install it because
appache is running fine and I'm not sure if all modules in the new apche
will work.
When I compile the PHP source to libphp4.so it says "[warn] Loaded DSO
/usr/lib/apache/libphp4.so
uses plain Apache 1.3 API, this module might crash under EAPI! (please
recompile it with -DEAPI)"
So, before I called the configure script the CFLAGS is set to -DEAPI

export CFLAGS="-DEAPI"
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php'
'--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include'
'--with-_lib=lib' '--with-config-file-path=/etc'
'--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath'
'--enable-calendar' '--enable-ctype' '--enable-discard-path' 
'--enable-exif'
'--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp'
'--enable-gd-imgstrttf' '--enable-gd-native-ttf'
'--enable-inline-optimization' '--enable-magic-quotes'
'--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-mbregex'
'--enable-memory-limit' '--enable-safe-mode' '--enable-shmop'
'--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-trans-sid' '--enable-versioning'
'--enable-wddx' '--enable-yp' '--with-bz2' '--with-ftp' '--with-gettext'
'--with-gmp' '--with-mcal=/usr' '--with-mcrypt' '--with-mysql=/usr'
'--with-snmp' '--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf'
'--with-freetype-dir=yes' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes'
'--with-xslt-sablot' '--with-iconv' '--with-mm' '--with-apxs=/www/bin/apxs'
'--with-openssl' --enable-sockets 'i586-suse-linux'

When compiling it looks like

/bin/sh
/home/jonker/php-4.3.4/libtool --silent --preserve-dup-deps --mode=compile
gcc -DLINUX=22 -DUSE_HSREGEX -I/www/include -Isapi/apache/ -I/home/jonker/p
hp-4.3.4/sapi/apache/ -DPHP_ATOM_INC -I/home/jonker/php-4.3.4/include 
-I/hom
e/jonker/php-4.3.4/main -I/home/jonker/php-4.3.4 
-I/home/jonker/php-4.3.4/Ze
nd -I/home/jonker/php-4.3.4/ext/mbstring/mbregex 
-I/home/jonker/php-4.3.4/ex
t/mbstring/libmbfl -I/home/jonker/php-4.3.4/ext/mbstring/libmbfl/mbfl 
-I/usr
/include/mcal -I/usr/include/mysql -I/usr/include/ucd-snmp 
-I/home/jonker/ph
p-4.3.4/ext/xml/expat -I/home/jonker/php-4.3.4/TSRM -DEAPI -prefer-pic -c
/home/jonker/php-4.3.4/sapi/apache/mod_php4.c -o sapi/apache/mod_php4.lo

As you can see the -DEAPI is set.

But when I install the new libphp4.so the warning comes back. And worse,
apache crached when retrieving a php page.
Does someone know how to solve this ? Or has a working libphp4.so for me
with the above options ?
Many thanks in advance.

Richard Jonker

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 documentation to 
a function/class. It shouldn't be difficult to extend it to parse a 
complete script I guess...

--

regards,


 Nelson Rodríguez-Peña A.
 Diseño y Desarrollo
 Web & Multimedia

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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.
PhpEdit, because of this.

-Shawn

 wrote in message
news:[EMAIL PROTECTED]
> 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 documentation to
> a function/class. It shouldn't be difficult to extend it to parse a
> complete script I guess...
>
> -- 
>
>
> regards,
>
> 
>   Nelson Rodríguez-Peña A.
>   Diseño y Desarrollo
>   Web & Multimedia
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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
return true maybe???

Just curious!
-Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 the url http://localhost/index.html
>
> This index.html look's like this:
>
> 
> 
> This is a line
> 
> 
>
>  echo "this is the second 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?
>
> Nico

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 suggest that this will be a problem

thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 hope to have 3 backreferences that return the
"function name", "function args" and "return value (if present)" of all
functions.

Thanks!
-Shawn


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 logic in doing so... If you have a
function named something like output_fmt($str), which is only meant to
format a string and output it, there might not need a return value... Maybe
the output itself, but you get the idea.. Some things just doesn't make
sense to return... And some things might return to a parameter... Right now
I can't think of an example though..
-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Shawn McKenzie" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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
> return true maybe???
>
> Just curious!
> -Shawn

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 (along
with XML support), but that's only my impression..

To view the history.. Check cvs, and read the NEWS file...

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Peter" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
>
> 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 suggest that this will be a problem
>
> thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 something
in my system32 folder...

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Gunter Sammet" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have 4.3.5-dev (Build Dec-22-2003) installed on a W2K Dell Inspiron 7500
> and I am getting an error which I don't get with 4.1.1 and 4.3.4. Would
like
> to learn how to debug things like that. Here is a dump of Dr. Watson:
>
> Application exception occurred:
> App:  (pid=2228)
> When: 1/10/2004 @ 14:51:33.711
> Exception number: c005 (access violation)
>
> *> System Information <*
> Computer Name: DELL
> User Name: Administrator
> Number of Processors: 1
> Processor Type: x86 Family 6 Model 8 Stepping 3
> Windows 2000 Version: 5.0
> Current Build: 2195
> Service Pack: 4
> Current Type: Uniprocessor Free
> Registered Organization: SammySolutions.com ltd.
> Registered Owner: Gunter Sammet
>
> *> Task List <*
>0 Idle.exe
>8 System.exe
>  148 smss.exe
>  172 csrss.exe
>  168 winlogon.exe
>  220 services.exe
>  232 lsass.exe
>  384 svchost.exe
>  436 svchost.exe
>  488 spoolsv.exe
>  512 ati2plab.exe
>  536 ibserver.exe
>  580 APACHE.exe
>  708 regsvc.exe
>  728 MSTask.exe
>  732 APACHE.exe
>  968 snmp.exe
> 1028 stisvc.exe
> 1060 vsmon.exe
> 1112 WinMgmt.exe
> 1136 svchost.exe
> 1164 svchost.exe
>  120 Explorer.exe
> 1460 jusched.exe
> 1448 interserver.exe
> 1440 Atiptaxx.exe
> 1420 EM_EXEC.exe
> 1392 zapro.exe
>  640 internat.exe
> 1512 AirPlus.exe
> 1520 trillian.exe
> 1760 mysqld-nt.exe
> 1796 PostCastServer..exe
> 1820 gcdnssrv.exe
> 1860 OUTLOOK.exe
>  996 IEXPLORE.exe
> 1916 IEXPLORE.exe
> 1980 IEXPLORE.exe
> 2020 IEXPLORE.exe
> 2060 IEXPLORE.exe
> 2100 IEXPLORE.exe
> 2184 PHPEdit.exe
> 2200 DBGLIS~1.exe
> 2168 IEXPLORE.exe
> 2280 IEXPLORE.exe
> 2192 IEXPLORE.exe
> 1084 APACHE.exe
> 1020 APACHE.exe
> 2228 php.exe
> 1532 drwtsn32.exe
>0 _Total.exe
>
> (0040 - 0040D000)
> (77F8 - 77FFB000)
> (1000 - 1015)
> (7C4E - 7C599000)
> (77E1 - 77E75000)
> (77F4 - 77F7C000)
> (7505 - 75058000)
> (7503 - 75044000)
> (7800 - 78045000)
> (7C2D - 7C332000)
> (77D3 - 77D9E000)
> (7502 - 75028000)
> (77A5 - 77B3C000)
> (779B - 77A4B000)
> (1F7C - 1F7F4000)
> (76B3 - 76B6E000)
> (6318 - 631E5000)
> (7171 - 71794000)
> (782F - 78538000)
> (00CC - 00CD6000)
> (6E42 - 6E426000)
> (75E6 - 75E7A000)
> (782C - 782CC000)
> (7798 - 779A4000)
> (7734 - 77353000)
> (7752 - 77525000)
> (7732 - 77337000)
> (7515 - 7515F000)
> (7517 - 751BF000)
> (7C34 - 7C34F000)
> (751C - 751C6000)
> (7795 - 7797A000)
> (773B - 773DF000)
> (7738 - 773A3000)
> (7783 - 7783E000)
> (7788 - 7790E000)
> (7C0F - 7C152000)
> (774E - 77513000)
> (774C - 774D1000)
> (7753 - 77552000)
> (7736 - 77379000)
> (777E - 777E8000)
> (777F - 777F5000)
> (74FD - 74FEE000)
> (7501 - 75017000)
>
> State Dump for Thread Id 0x738
>
> eax=0001 ebx=0005 ecx=0098 edx=00794010 esi=0012fd18
> edi=00ce
> eip=77fcc2e2 esp=0012fb0c ebp=0012fca4 iopl=0 nv up ei pl zr na po
> nc
> cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
> efl=0246
>
>
> function: RtlAllocateHeap
> 77fcc2ca 51   pushecx
> 77fcc2cb 51   pushecx
> 77fcc2cc 81ec7401 sub esp,0x174
> 77fcc2d2 53   pushebx
> 77fcc2d3 56   pushesi
> 77fcc2d4 57   pushedi
> 77fcc2d5 8b7d08   mov edi,[ebp+0x8]
> ss:00bd9b8a=
> 77fcc2d8 897da4   mov [ebp+0xa4],edi
> ss:00bd9b8a=
> 77fcc2db 8065b800 and byte ptr [ebp+0xb8],0x0
> ss:00bd9b8a=??
> 77fcc2df 8b450c   mov eax,[ebp+0xc]
> ss:00bd9b8a=
> FAULT ->77fcc2e2 0b4710   or  eax,[edi+0x10]
> ds:01789ee6=
> 77fcc2e5 89450c   mov [ebp+0xc],eax
> ss:00bd9b8a=
> 77fcc2e8 a9600f037d   testeax,0x7d030f60
> 77fcc2ed 0f856aee jne _eFSQRT+0xe93 (77fcb15d)
> 77fcc2f3 817d100080
> ss:00bd9b8a=
>   cmp dword ptr [ebp+0x10],0x8000
> 77fcc2fa 0f835dee jnb _eFSQRT+0xe93 (77fcb15d)
> 77fcc300 837d1000 cmp   dword ptr [ebp+0x10],0x0
> ss:00bd9b8a=
> 77fcc304 0f8424f8 je  RtlSizeHeap+0x228 (77fcbb2e)
> 77fcc30a 8b4510   mov 

[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.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 this task can be easily fooled; i.e: there's no
regexp for all cases; PHP's language cannot be described properly using just
a regular expression.

Manu.


"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 hope to have 3 backreferences that return the
> "function name", "function args" and "return value (if present)" of all
> functions.
>
> Thanks!
> -Shawn
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 installed Apache and was trying to get it to work.)

I'm now back up and running and would like to give it another shot. I'd 
like to ask a few questions. Some may be a bit redundant, but I want to 
make sure I'm starting out right.

My operating system is Windows XP Pro, and I've already begun using the 
.php extension on my webpages in preparation for using PHP. (See 
http://www.geobop.org/test/index.php )

Which PHP do you recommend I download - 3.0, 4.0 or 5.0? Your PHP 
tutorial at http://www.php.net/tut.php offers a link to preconfigured 
packages (Apache, PHP and MySQL). I noticed that the package that got 
the most votes by far is FoxServ (over 4,000 votes) - 
http://www.hotscripts.com/Detailed/9942.html  Therefore, I'm tentatively 
choosing it, due to its popularity.

According to their website, at http://www.foxserv.net/portal.php, 
"FoxServ is an Apache / mySQL / PHP installer package for Windows. 
Unlike NuShpere or PHPTriad, FoxServ features the latest version of all 
included pacakges, user defined configuration during installation, PHP 
as a module, PEAR, and the Zend Optimizer" Thus, I assume this downloads 
PHP 5.0.

I'm also browsing an article about PHP4 Installation at 
http://hotwired.lycos.com/webmonkey/00/44/index4a_page7.html, which 
says, "Usually Windows users use the CGI version of PHP . . ."

So I'll probably be downloading a preconfigured package from FoxServ and 
setting up a CGI version of PHP. Does that sound OK?

Another question: I think I have a Microsoft IIS server (included with 
Windows XP Pro). If so, will I have to disable or uninstall it before I 
install an Apache server?

Also, I hope to eventually get an Apple/Mac computer and a Linux hard 
drive (on either my PC or Apple). If I install Apache/PHP/MySQL on an 
Apple, will I be in familiar territory, or is it quite different from 
using PHP with Windows? Would I be able to work on my website with 
FrontPage on a PC and publish some PHP pages to the web, then add some 
functions with Dreamweaver on a Mac and republish them to the web, or 
would the two PHP programs (Windows and Apple) have a conflict?

Here's one last question that's a bit of an aside: When I work on a 
webpage with a .php extension in FrontPage, it only opens the page in 
Notepad, and I can't preview it in Internet Explorer (though I can view 
it in IE once it's online). Do you have any idea how to fix it?

Thanks!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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).

If you are trying to make an important point, please rephrase your
comment. Otherwise, please refrain from making off-topic comments.

Thanks.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 time I
installed it. 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

By default it installs a pretty decient and recient version of php, mysql
and apache.

HTH.

Cheers,
-Ryan

On 1/12/2004 1:40:05 AM, Freedomware ([EMAIL PROTECTED]) wrote:
> 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 installed Apache and was trying to get it to work.)
>
> I'm
> now back up and running and would like to give it another shot.
> I'd
> like to ask a few questions. Some may be a bit redundant, but I want to
> make sure I'm
> starting out right.
>
> My operating system is Windows XP Pro, and
> I've already begun using the
> .php extension on my webpages in preparation for using PHP. (See
> http://www.geobop.org/test/index.php )
>
> Which PHP do you recommend I download - 3.0, 4.0 or 5.0? Your PHP
> tutorial at http://www.php.net/tut.php offers a link to preconfigured
> packages (Apache, PHP and MySQL). I noticed that the package that got
> the most votes by far is FoxServ (over 4,000 votes) -
> http://www.hotscripts.com/Detailed/9942.html  Therefore, I'm
> tentatively
> choosing it, due to its popularity.
>
> According to their website, at http://www.foxserv.net/portal.php,
> "FoxServ is an Apache / mySQL / PHP installer package fo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 
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 mastered PHP still use PERL for doing certain advanced 
functions that PHP can't handle?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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 at all... If you want
help, I can guide you through it... If you wanna use PHP/Apache, it's better
to setup them yourself.. That way you'll understand just about everything
better.. :)

Ryan: just wondering, does the acronym 'FH' mean anything to you (it was a
host)?
-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com

"Ryan A" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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 time
I
> installed it. 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
>
> By default it installs a pretty decient and recient version of php, mysql
> and apache.
>
> HTH.
>
> Cheers,
> -Ryan
>
> On 1/12/2004 1:40:05 AM, Freedomware ([EMAIL PROTECTED]) wrote:
> > 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 installed Apache and was trying to get it to work.)
> >
> > I'm
> > now back up and running and would like to give it another shot.
> > I'd
> > like to ask a few questions. Some may be a bit redundant, but I want to
> > make sure I'm
> > starting out right.
> >
> > My operating system is Windows XP Pro, and
> > I've already begun using the
> > .php extension on my webpages in preparation for using PHP. (See
> > http://www.geobop.org/test/index.php )
> >
> > Which PHP do you recommend I download - 3.0, 4.0 or 5.0? Your PHP
> > tutorial at http://www.php.net/tut.php offers a link to preconfigured
> > packages (Apache, PHP and MySQL). I noticed that the package that got
> > the most votes by far is FoxServ (over 4,000 votes) -
> > http://www.hotscripts.com/Detailed/9942.html  Therefore, I'm
> > tentatively
> > choosing it, due to its popularity.
> >
> > According to their website, at http://www.foxserv.net/portal.php,
> > "FoxServ is an Apache / mySQL / PHP installer package fo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 mastered PHP still use PERL for doing certain advanced
> functions that PHP can't handle?

Sorry, cant answer that question either :-p coz I dont use PERL, but have
been
told to learn as its not that much different from PHP, I just feel its nice
to have
that option..."just in case".

/***DvDman*
Ryan: just wondering, does the acronym 'FH' mean anything to you (it was a
host)?
***/
Nope, no idea what the acronym 'FH' means...why?

Cheers,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 read but
it's more.. well, you don't need to type as much in perl as in php.. Char
effiency or whatever.. Some ppl like perl, some php...

activestate.com, cpan.org

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Freedomware" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> 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
> 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 mastered PHP still use PERL for doing certain advanced
> functions that PHP can't handle?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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]
> 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 mastered PHP still use PERL for doing certain advanced
> > functions that PHP can't handle?
>
> Sorry, cant answer that question either :-p coz I dont use PERL, but have
> been
> told to learn as its not that much different from PHP, I just feel its
nice
> to have
> that option..."just in case".
>
> /***DvDman*
> Ryan: just wondering, does the acronym 'FH' mean anything to you (it was a
> host)?
> ***/
> Nope, no idea what the acronym 'FH' means...why?
>
> Cheers,
> -Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 on
me.  I dunno if this is a bug or if I am just bad luck. Never had a problem
before.  It seems that on a different computer it returns a different number
than 45 but always the same number over and over.

- Original Message - 
From: "Richard Davey" <[EMAIL PROTECTED]>
To: "nefar" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 10, 2004 5:26 AM
Subject: Re: [PHP] Rand() problem


> Hello nefar,
>
> Friday, January 9, 2004, 6:05:34 AM, you wrote:
>
> n> After moving my PHP files to a new hard drive and a new windows
> n> installation, my rand function gets stuck and only gives you one number
over
> n> and over.  It worked a few times then got stuck.  I tried using IIS 5.1
(I
> n> was using Xitami) and it gave me the same results.  It even gets stuck
on
> n> the same number as the other webserver. I tried installing on a
different
> n> machine.  Same result.  Can anyone help?
>
> Which version of PHP are you using? If it's earlier than 4.2.0 you
> need to see the rand() function first, or it will return the same
> numbers each time. Use srand() to do this.
>
> Also, are you passing in values to the rand() function? (your min and
> max values) - on Windows there is a limit on the max value of 32,768.
>
> -- 
> Best regards,
>  Richardmailto:[EMAIL PROTECTED]
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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_sql_command);
 }else{$the_sql_command="none";}

I tested it out by entering this sql into the database:
insert into testing_table values('bill o'reilly')

Opening phpmyadmin I looked in the able and there are no slashes being
applied.!!
just this: insert into testing_table values('bill o'reilly')


(and yes, I did try this too:
$the_sql_command=addslashes($_POST['the_sql_command']);   )


What am I missing?

Cheers,
-Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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:52 PM
Subject: Re: [PHP] writing Excel files through PHP


> Use full uri. But the user needs to be online while viewing the xls file.
>
> Other option is to create web archive. It's a mime encoded file, save an
> excel file with an embeded image and you will see what it is.
+
How to create web archvie which will be mime encoded file and then saving as
excel file .. plz direct me to the resources where i can find more
information about it  .. or tell me how can i proceed to it.
Thanks
+


>
> Binay wrote:
> > Hi all,
> >
> > I m generating an Excel file though PHP by sending the appropriate
header and then using HTML  tags to write data in different cells. Below
is my code snippet.
> >
> > It has got 1 problems:
> >
> > 1. Image doesn't come/showup in Excel sheet.
> >
> >  >
> > header("Content-type: application/vnd.ms-excel");
> > header("Content-disposition: attachment; filename=pareto_combined.xls");
> > ?>
> >
> > 
> >  
> > 
> > 
> >
> >  > $dateF=$_REQUEST['dateF'];
> >
> > $dateT=$_REQUEST['dateT'];
> >
> > $agentID=$_REQUEST['agentID'];
> > 
> > 
> > 
> > 
> > 
> >
> > ?>
> >
> > now after saving the Excel file it displays all alphanumeric data
correctly but images do not show up. i think Img tag is not supported by
Excel application.
> >
> > So my question is how can i display the images in Excel using PHP? plz
help me out
> >
> > Thanks in advance
> >
> > Binay
> >
> >
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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 on
> me.  I dunno if this is a bug or if I am just bad luck. Never had a problem
> before.  It seems that on a different computer it returns a different
> number than 45 but always the same number over and over.

If you are using a relatively new version of PHP then there is no need to seed 
the random number generator. And it is better to use mt_rand() rather than 
rand() because:

- it is supposed to produce better random numbers
- is faster than rand()


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
No evil can happen to a good man.
-- Plato
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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 websites with two ISP's.
>
> I am getting a lot of warnings throughout a .php script on one server -
such
> as:
>
> php_hostconnect()
>
> I have used the _same_ .php script exactly on my other ISP's server and I
> don't get any warnings.
>
> In addition, I have tested this script locally on Apache server without
any
> errors.
>
> The site where I do not get warnnings has php 4.1.1 installed - wheras the
> other site where I get php_hostcoonect() warnings is php 4.2.3
>
> Any help will be greatly appreciated.
>
> Thank you.
> Tony Ritter

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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=$_POST['the_sql_command'];
>  $the_sql_command=addslashes($the_sql_command);
>  }else{$the_sql_command="none";}
>
> I tested it out by entering this sql into the database:
> insert into testing_table values('bill o'reilly')
>
> Opening phpmyadmin I looked in the able and there are no slashes being
> applied.!!
> just this: insert into testing_table values('bill o'reilly')
>
>
> (and yes, I did try this too:
> $the_sql_command=addslashes($_POST['the_sql_command']);   )
>
>
> What am I missing?

Nothing (much). 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.

To do want you want to do, you can try addslashes() on the data bit (ie: bill 
o'reilly), then addslashes() again on the entire $the_sql_command.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The IBM 2250 is impressive ...
if you compare it with a system selling for a tenth its price.
-- D. Cohen
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 later use into the db

*
>To do want you want to do, you can try addslashes() on the data bit (ie:
bill
>o'reilly), then addslashes() again on the entire $the_sql_command.
*
How do I do this?

Thanks,
-Ryan


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=$_POST['the_sql_command'];
>  $the_sql_command=addslashes($the_sql_command);
>  }else{$the_sql_command="none";}
>
> I tested it out by entering this sql into the database:
> insert into testing_table values('bill o'reilly')
>
> Opening phpmyadmin I looked in the able and there are no slashes being
> applied.!!
> just this: insert into testing_table values('bill o'reilly')
>
>
> (and yes, I did try this too:
> $the_sql_command=addslashes($_POST['the_sql_command']);   )
>
>
> What am I missing?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 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 suggest that this will be a problem

thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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 79

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


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
> the whole
> sql statement for later use into the db

In this case, yes, the whole sql statement is the data that is to be entered 
into the DB. But when you come to use the sql statement the data bit is "bill 
o'reilly" and that needs to have another addslashes() on it.

Effectively, you want it looking like this when you first insert it:

  insert into testing_table values(\'bill o\\\'reilly\')


> >To do want you want to do, you can try addslashes() on the data bit (ie:
>
> bill
>
> >o'reilly), then addslashes() again on the entire $the_sql_command.
>
> *
> How do I do this?

I have no idea how to separate the data bit easily. Furthermore it all depends 
on what kind of sql statements you will be accepting.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
In defeat, unbeatable; in victory, unbearable.
-- W. Churchill, on General Montgomery
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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 to undefined function:  headers_list() in
> /usr/local/psa/home/vhosts/a.com/httpdocs/my/page.php on line
> 79

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
"It is better to have tried and failed than to have failed to try, but
the result's the same."
- Mike Dennison
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php