[PHP] newbie installation help needed - LinuxPPC

2001-08-16 Thread George Pitcher
Hi all, I've been playing around a little with php/mysql/apache on my NT box but I have just set up one of my Macs as a LinuxPPC machine. I have downloaded PHP-4.0.6 but now I want to install it to work with the apache server software already installed. I'm a complete newbie as far as linux is

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Rasmus Lerdorf
If you just want to set this for a single file, just use a Location /path/filename ForceType application/x-httpd-php /Location in your httpd.conf file. .htaccess files are generally evil and should be avoided if you have control over your httpd.conf file. Note that the mime-type. There is no

[PHP] to richard lynch

2001-08-16 Thread lolodev news php
on response to a question about variable $PATH_INFO , you said me: Is Apache configured to pass that variable on? Did you compile as CGI -- IE, are you using Action in your httpd.conf or LoadModule/AddModule? but how to configure to pass that variable ? what is action ? i'm using

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Jack
In response to Rasmus, I need to make this for all html files under a domain, not just one file. Is there anyway to do this? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Jack [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Rasmus Lerdorf
In response to Rasmus, I need to make this for all html files under a domain, not just one file. Is there anyway to do this? Sure, in your httpd.conf file look for your VirtualHost block for the dmain and add: AddType application/x-httpd-php .html -Rasmus -- PHP General Mailing List

RE: [PHP] Ldap package.

2001-08-16 Thread Johan Vikerskog (ECS)
Another problem. when i try to run the configure for ldap i get the following error message: checking configure arguments... configure: error: bad value yes for --with-ldbm_module What is the appropriate configure settings for the ldbm? If i try ti disable it i get the message: backend needed

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Jack
In response to Rasmus again, please bare with me a sec, where can I find the file https.conf? I am only able to log in to server viw ftp at this stage, so I am not sure if I will have access to that file yet. Alternatively, can I do the same to .htaccess? Jack [EMAIL PROTECTED] Love your enemies,

[PHP] ISO-8859-2 to Windows-1250

2001-08-16 Thread Tom Kubi
Hi, is there any function which can converts strings from ISO-8859-2 to Windows-1250? Thanks for your answers. Tomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] Need open source community help!

2001-08-16 Thread Maxim Maletsky
Show them some facts, Jay. Go to check some articles on the net from reliable websites such as ZDnet or (if damn lucky) MSN. That could work. Also, get a real evaluation of their needs and say: This is exactly what I've done and intend to extend the functionality of. The MS software apart from

Re: [PHP] need real expert (geting outer files) *english/german*

2001-08-16 Thread Tribun
OK... here are more details... my trying was to get the content from this url : http://www29.gmx.net/v4/register?FILE_POS_OLD=0ADDR_CHECK=t=COMPANY=TITL E=HerrFIRSTNAME=AaaaMIDINITIAL=ALASTNAME=AaaaSTREET=Strandener Str. 1ZIPCODE=51079CITY=koelnCOUNTRYISO=DESTATE=Nordrhein-WestfalenLANGUAGES

Re: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Jack
In response to Maxim and Rasmus, I got it work out now. Many thanks for this open source code community :-) Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: 'Jack' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

Re: [PHP] Eval error

2001-08-16 Thread Pavel Jartsev
Felipe Coury wrote: Hi, I am a beginner in PHP and I am trying to do the following: I have a form in a page that has 3 fields: email_1, email_2 and email_3. I am trying to send e-mail to those people, if the fields are filled. Relevant part of code: ?php for ($i = 1; $i = 6; $i++) {

Re: [PHP] could i get a clue?

2001-08-16 Thread Renze Munnik
Robert V. Zwink wrote: This particular application is designed to assist someone working on data entry, and is currently in production. She inputs 100's of mail-in reply cards into a database using a php webpage. The first field of the form is for the email address listed on the reply card.

[PHP] .htaccess username

2001-08-16 Thread Tribun
...hmmm, I would guess there is a way, but I dont know why... Can I read out the active username, which has just logged in through a .htaccess authentication??? Like the access data.. user: patrick pass: linux can PHP reads out the usersname patrick ?? (and if ,... how? ;) 10x 4 U'r time.

Re: [PHP] .htaccess username

2001-08-16 Thread Pavel Jartsev
Tribun wrote: ...hmmm, I would guess there is a way, but I dont know why... Can I read out the active username, which has just logged in through a .htaccess authentication??? Like the access data.. user: patrick pass: linux can PHP reads out the usersname patrick ?? (and if ,...

Re: [PHP] Addtype command in htaccess

2001-08-16 Thread Pavel Jartsev
Jack wrote: Hi people this may be off this list a bit, But I want to make the apache webserver believe that a html file is my server is actually a php4 file, Is this syntax correct to add in the .htaccess file? AddType application/x-httpd-php4 .html Just remove the '4' from this line

[PHP] Fussy logic...

2001-08-16 Thread Tribun
Moin! Has anybody already thought about the problematic conditional on adding an automatic BACK Link? It seems to be very easy... just Link to basename($HTTP_REFERER); BUT if you CLICK on this Link, and come to a prior site, the BACK-Link THERE appears NOT to the PAGE, witch was prior this,

Re: [PHP] .htaccess username

2001-08-16 Thread Stig-Ørjan Smelror
Pavel Jartsev wrote: Tribun wrote: ...hmmm, I would guess there is a way, but I dont know why... Can I read out the active username, which has just logged in through a .htaccess authentication??? Like the access data.. user: patrick pass: linux can PHP reads out the usersname patrick ??

RE: [PHP] Creating a javascript array from database data

2001-08-16 Thread Tim Ward
I'm not sure if this is the problem but it is an important point. print \$text\; does not output anything to screen, as with all prints and echos it outputs it to html (in this case within a js function definition). Try viewing the source produced. Tim -- From: Neil

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-16 Thread Neil Freeman
Thanks for the clarification Sheridan - I think it must have been end of day madness on my part :) I see what's going on now with the 'print' line. Cheers, Neil Sheridan Saint-Michel wrote: *** This message was virus checked with:

Re: [PHP] session security issue

2001-08-16 Thread Renze Munnik
On Wed, Aug 15, 2001 at 10:52:33PM -0300, Christian Dechery wrote: $HTTP_SERVER_VARS{SSL_SESSION_ID} Another thing I found with phpinfo() is $HTTP_SERVER_VARS{UNIQUE_ID}. I don't know (yet) was it is, but it sounds usable, doesn't it? sure it does... but first we need to know exactly

Re: [PHP] Fussy logic...

2001-08-16 Thread Renze Munnik
On Thu, Aug 16, 2001 at 10:01:36AM +0200, Tribun wrote: Moin! Has anybody already thought about the problematic conditional on adding an automatic BACK Link? It seems to be very easy... just Link to basename($HTTP_REFERER); BUT if you CLICK on this Link, and come to a prior site, the

Re: [PHP] Creating a javascript array from database data

2001-08-16 Thread Neil Freeman
Yeah thanks Tim. 5:30 in the afternoon does bad things to my logical thinking. Not the best time to try and learn PHP :) Neil Tim Ward wrote: I'm not sure if this is the problem but it is an important point. print \$text\; does not output anything to screen, as with all prints and echos it

Re: [PHP] Fussy logic...

2001-08-16 Thread Tribun
yapp. I know the JS-function, but I was curious if someone knows an beautifuller solution. something neater ;) Renze Munnik [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, Aug 16, 2001 at 10:01:36AM +0200, Tribun wrote: Moin! Has anybody

Re: [PHP] Fussy logic...

2001-08-16 Thread Renze Munnik
On Thu, Aug 16, 2001 at 10:38:56AM +0200, Tribun wrote: yapp. I know the JS-function, but I was curious if someone knows an beautifuller solution. something neater ;) Okay... Well... then you should store the history yourself (eg. in a session or db). But then again... the $HTTP_REFERER

[PHP] DOM XML module

2001-08-16 Thread Anders Östling
Hi I need to use the DOMXML functions on a PHP 4.0.4 (Mandrake 8.0) page, but the module is not there by default. Having downloaded the sources and tried to rebuild from scratch, I get a bunch of new dependency problems. Looks like building a full featured PHP is not that easy,,, So my

RE: [PHP] to set file tye at apache module using htaccess

2001-08-16 Thread Maxim Maletsky
Yes, you can. Maxim Maletsky -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 3:33 AM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] to set file tye at apache module using htaccess In response to Rasmus again, please bare with me a sec, where can I

[PHP] How to Read a URL dynamically generated by a server with POST method ?

2001-08-16 Thread chris
The PHP function fopen() can read a URL generated by a server with the GET method. In that case, the arguments of this server's script are part of the the URL. Unfortunately, I have to read parse the result of a form using POST method. Is there another function than fopen() that can be used ?

Re: [PHP] need real expert (geting outer files) *english/german*

2001-08-16 Thread hassan el forkani
hi that url is 445 characters long; the maximum (i believe) is 255 characters, maybe that's why your file is truncated; just a guess; regards At 09:26 16/08/01, you wrote: http://www29.gmx.net/v4/register?FILE_POS_OLD=0ADDR_CHECK=t=COMPANY=TITL

[PHP] script execution stops after mail()

2001-08-16 Thread Vincent
Hi, I've been skipping a night over this strange error: after execution of a mail() command, de rest of the script just gets ignored and my browser displays a Cannot find server or DNS Error page instead. Ideas about how to make this baby work would be very welcome; thanks in advance. I'm

[PHP] Online Psychology Tests

2001-08-16 Thread MindHunter
Does anyone know of online psychology tests where the answers are interpreted by a php script? Does anyone use php for this purpose? Tx BK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Re: *THANKS* [PHP] need real expert (geting outer files) *english/german*

2001-08-16 Thread Tribun
THANKS! my best thanks to Richard Lynch ! He advised me to the solution. It was simply an URLencode missing ;) (I've guessed that I do that allready but the var-name has changed, and so the function has taken no effect...) regards, Tribun Tribun [EMAIL PROTECTED] schrieb im

Re: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal
Hi, Well the PHP script is timing out after it executes a no. of (or all the mail() commands). So what you got todo is either set the PHP's timeout limit to 0 or infinite. set_time_limit(0); Or you could invoke another program in the background disconnect PHP (terminal) from it, and voila. But

[PHP] FileSize -- fread($fd, 7000)

2001-08-16 Thread Augusto Cesar Castoldi
Hi. instead use 7000 in fread($fd, 7000), i'd like to use the size of the file opened. How can I know the size of the fopen? thanks. Augusto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] FileSize -- fread($fd, 7000)

2001-08-16 Thread Mukul Sabharwal
Hi, fread($fd, filesize(somefile.txt)); --- Augusto Cesar Castoldi [EMAIL PROTECTED] wrote: Hi. instead use 7000 in fread($fd, 7000), i'd like to use the size of the file opened. How can I know the size of the fopen? thanks. Augusto -- PHP General Mailing List

[PHP] PHP on client-side

2001-08-16 Thread Tom Malone
Wouldn't it be nice if there was a way develop client-side (browser-based) applications for PHP? I see so many posts about using PHP to interact with JavaScript - wouldn't it be cool if you could just tell your PHP code where to run - server or client (similar to what ASP does with VBScript)? I

[PHP] Try to get PHP to read the content from MS Word

2001-08-16 Thread Jack
Dear all I'm trying to get PHP to read the content which created by MS Word.But when php runs, and it just return Nothing (Blank ) to the browser!! Actually , i was thinking to make a HTML Page which can let user to type in the content, then the content will copy to a file and finally a php will

RE: [PHP] PHP on client-side

2001-08-16 Thread Bruin, Bolke de
Euhum what about PHPGTK? Bolke -Oorspronkelijk bericht- Van: Tom Malone [mailto:[EMAIL PROTECTED]] Verzonden: Thursday, August 16, 2001 2:13 PM Aan: PHP Users Onderwerp: [PHP] PHP on client-side Wouldn't it be nice if there was a way develop client-side (browser-based) applications

Re: [PHP] Try to get PHP to read the content from MS Word

2001-08-16 Thread Mukul Sabharwal
Hi, MS Word encodes it's contents, so you'll need to use the COM interface to access MS Word Files. A tutorial is available @ http://www.xeru.com on COM with PHP4. --- Jack [EMAIL PROTECTED] wrote: Dear all I'm trying to get PHP to read the content which created by MS Word.But when php

Re: [PHP] FileSize -- fread($fd, 7000)

2001-08-16 Thread Mukul Sabharwal
Hi, It doesnt' matter what you're doing, filesize will give you what it reads from the particular file. --- Augusto Cesar Castoldi [EMAIL PROTECTED] wrote: ops. I forgot to say. but I'm calling a script, so I get diferents filesizes $fd = fopen(http://localhost/script.php;, r); $aux

Re: [PHP] Ldap package.

2001-08-16 Thread Heiko Maiwald
Johan Vikerskog (ECS) wrote: Another problem. when i try to run the configure for ldap i get the following error message: checking configure arguments... configure: error: bad value yes for --with-ldbm_module What is the appropriate configure settings for the ldbm? If i try ti

RE: [PHP] script execution stops after mail()

2001-08-16 Thread Mukul Sabharwal
Hey, It can be issues that PHP doesn't have control over for example if your systems' sendmail is being used by 100's of users, maybe it's taking for your request to be processed. So it could be more than just PHP, but you should basically when sending mail just but the mail in background. ---

RE: [PHP] PHP on client-side

2001-08-16 Thread Tom Malone
I don't think PHP-GTK does that, does it? Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: Bruin, Bolke de [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 8:22 AM To: '[EMAIL PROTECTED]'; PHP Users Subject: RE: [PHP] PHP on client-side Euhum what

Re: [PHP] PHP on client-side

2001-08-16 Thread Pavel Jartsev
Tom Malone wrote: I don't think PHP-GTK does that, does it? From http://gtk.php.net Too often PHP is thought of as only an HTML-embedded web scripting language. However, it is also a very full-featured general purpose language that can be used for much more. One of the goals behind this

Re: [PHP] PHP on client-side

2001-08-16 Thread Justin Farnsworth
Re below, I am just curious if anybody on this list has already written a significant application using PHP/Gtk. I keep looking at Gtk, but it still seems to be too much shifting sand right now. I want to use these widgets et al for some applications that I would normally use Python for. The

[PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
I'm getting session id neither from cookie, nor from GET/POST vars, but by parsing url like: http://myserver.com/script.php/session_id/blah/blah How do i resume session by given session_id? Thanks in advance. -- Darius Ivanaukas -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] MYSQL_SOCKET

2001-08-16 Thread Rasmus Lerdorf
the variable MYSQL_SOCKET is set to /tmp/mysql.sock and i need it to be /var/lib/mysql/mysql.sock is there anyway i can set this variable in php? From http://php.net/mysql_connect : resource mysql_connect ([string hostname[:port][:/path/to/socket] [, string username [, string password]]])

[PHP] php 4.0.6(win32) + gd(freetype) = Could not find/open font

2001-08-16 Thread Konstantin Boshnyaga
Hello php-general! it worked with earlier PHP versions. but now dont. i tried all paths combinations ;( does anyone experience same problem ? -- Best regards, Konstantin mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] location bar

2001-08-16 Thread Kurth Bemis
At 06:14 PM 8/15/2001, Wolfgang Schneider wrote: oops - i forgot - I use functions similar tp the ones used on php.net. when i call the function i pass $title to it define $title and it should work. :-) ~kurth On Tue, 14 Aug 2001 11:39:55 -0400, Kurth Bemis wrote: just stick this in

RE: [PHP] PHP on client-side

2001-08-16 Thread Tom Malone
Do you think it's feasible to do that? Has anyone discussed it before? Are there any initiatives? Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pavel Jartsev Sent: Thursday, August 16, 2001 10:08 AM

RE: [PHP] Problem: Sybase, PHP and multiple result sets

2001-08-16 Thread Warren Vail
I appreciate the clearer, more detailed description. Unfortunately, I probably cannot help as much with this one. If it were my problem, I would try finding and downloading the source for the Sybase modules, then look for someone to contact in the notes. I would also exhaust any contacts I

RE: [PHP] PHP on client-side

2001-08-16 Thread Jan De Luyck
It is possible, but you'd need to define the x-application/php or so mimetag in each and every client that you would want to parse the code -- thus reducing the platforms it runs on. The fact that it is parsed on the server allows a great variaty of clients to read it - since they basically get

[PHP] cookie expire...

2001-08-16 Thread Romeo Manzur
Could I expire a cookie on a determinate date?? I mean tell the cookie that will expire on 17/08/2001... -- Romeo Manzur Web Developer Esgrima 208 Fracc. Deportiva Villahermosa, Tabasco, Mexico C.P.: 86180 Tel.: (52)(9)3-51-5647 -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] How to resume session by id?

2001-08-16 Thread Niklas Lampen
Link in HTML like a href=http://www.myserver.com/myfile.php??=SIDLink/a And on the myfile.php you have to do this in the beginning of file: session_start(); if (session_is_registered(Session)) { /* This code is run if Session called Session is registered */ }; Hopefully this helps you

[PHP] Unix vs PC test for server

2001-08-16 Thread Paul S.
I design a website on a PC, and upload it to UNIX. Of course, there are always one or two variables that I have to keep track of as to whetherteh server is UNIX or PC. There MUST be a simple way to test if (the OS is Windows) { $siteurl = http:// www.website.com/ ; $mysqlpasswordfilelocation =

[PHP] LDAP support in PHP compilation.

2001-08-16 Thread Johan Vikerskog (ECS)
I get the following error message: gcc -I. -I/export/scratch/apps3/php-4.0.6/ext/mysql/libmysql -I/export/scratch/apps3/php-4.0.6/main -I/export/scratch/apps3/php-4.0.6 -I/export/scratch/apps3/apache_1.3.20/src/include -I/export/scratch/apps3/apache_1.3.20/src/os/unix

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Alexander Wagner
Paul S. wrote: I design a website on a PC, and upload it to UNIX. Of course, there are always one or two variables that I have to keep track of as to whetherteh server is UNIX or PC. There MUST be a simple way to test Just do a phpinfo(). There should be an environment-variable you should be

Re: [PHP] PHP on client-side

2001-08-16 Thread Sheridan Saint-Michel
I think one major hurdle with this is that the browser would have to be programmed to parse the Client-Side PHP. While you might have a shot at convincing the nice folks at Mozilla to do this, IE is by far the most used browser and I don't see MS implementing PHP into their browser anytime soon.

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Renze Munnik
On Thu, Aug 16, 2001 at 09:57:20PM +0700, Paul S. wrote: I design a website on a PC, and upload it to UNIX. Of course, there are always one or two variables that I have to keep track of as to whetherteh server is UNIX or PC. There MUST be a simple way to test if (the OS is Windows) {

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and

Re: [PHP] PHP on client-side

2001-08-16 Thread Jay Paulson
the only problem with PHPGTK is that if you make an app with it and you pass it on to your friend they have to have php installed and running on their machine to run your app. I've heard of some people actually running a small installer that installs php on the client machine so that they can

RE: [PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
On Thu, 16 Aug 2001, Niklas Lampen wrote: Link in HTML like a href=http://www.myserver.com/myfile.php??=SIDLink/a And on the myfile.php you have to do this in the beginning of file: session_start(); In this place it starts a new session because it didn't gets session_id neither trough

[PHP] PHP Client Proofing System out there?

2001-08-16 Thread Michael O'Neal
Hi. I work at a design agency, and we're looking to find/build/create a system where we can post client comps, and the client can log in and check out the work we've done for them. Has anyone seen anything like this out there that's built already? Please respond directly to [EMAIL PROTECTED],

RE: [PHP] How to resume session by id?

2001-08-16 Thread Niklas Lampen
Did you start the session like this: $Session = array( /* values to array */ ); session_start(); session_register(Session); -Original Message- From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]] Sent: 16. elokuuta 2001 18:14 To: Niklas Lampen Cc: [EMAIL PROTECTED] Subject: RE:

[PHP] Zend Optimizer

2001-08-16 Thread Alfredeen, Johan
Ok, I've searched the archives and even contacted the Zend staff on this one, and I'm still confused. I also posted this question at the Zend Optimizer Forum but have not received an answer. I'm hoping one of you has some idea of how the Zend Optimizer works and can explain it. My webhost offers

[PHP] PHP within .html files

2001-08-16 Thread Paul S.
My UNIX apache server that I host from seems to be preset to execute PHP code within html docs. That is, a php require statement within a .html file is included, executed, and sent to the browser. Is this unusual? or standard? I ask because I would hope not to become dependent on including php

Re: [PHP] Zend Optimizer

2001-08-16 Thread Chris Lambert
It should perform the optimizations automatically. However, the bottleneck in your case will be your image manipulation library (GD, ImageMagic, etc..), and you most likely won't see much of a speed increase with the optimizer. /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More

[PHP] Sort a an array?

2001-08-16 Thread Allen May
I want to sort a result set from a mySQL query (see code below). I can't figure out how to properly sort the $result in the while loop. I just want to alphabatize the search result. Any suggestions how to do this? Thanks -Allen [EMAIL PROTECTED] (remove _nospam to reply)

RE: [PHP] How to resume session by id?

2001-08-16 Thread Darius Ivanauskas
On Thu, 16 Aug 2001, Niklas Lampen wrote: Did you start the session like this: $Session = array( /* values to array */ ); session_start(); session_register(Session); What we have here: registering variable $Session into current session. This code works perfectly if session id is

Re: [PHP] Unix vs PC test for server

2001-08-16 Thread Steve Edberg
Also - see: http://www.php.net/manual/en/function.php-uname.php - it's a PHP4 function. Alternatively, you could check the $SERVER_SOFTWARE (or $HTTP_SERVER_VARS['SERVER_SOFTWARE'], depending on your config) variable; you'd have to parse the OS out of the returned string, though.

RE: [PHP] Sort a an array?

2001-08-16 Thread Sam Masiello
Instead of trying to sort the result AFTER it returns from the query, you could use an ORDER BY clause in your query to sort the results prior to trying to output it? You could change your query to something like: SELECT * FROM tablename ORDER BY fieldname HTH Sam Masiello Software Quality

[PHP] global variables in functions

2001-08-16 Thread Tom Hodder
Hi, I have a function like so function updateForm() { global $link; $query = UPDATE badgers SET lname = '$lname', fname = '$fname' WHERE

RE: [PHP] Sort a an array?

2001-08-16 Thread Jon Haworth
The best way to do this, which is conveniently also the easiest, is to do it within your SQL query. $table = tablename; $field = fieldname; $query = select * from $table order by $field; or, for descending sort: $query = select * from $table order by $field desc; HTH Jon -Original

RE: [PHP] PHP within .html files

2001-08-16 Thread Jon Haworth
Apache can be set up to parse whatever files you like as .php (you could have .paul if you like...) - presumably your host has enabled this. If you have access to .htaccess files (or the main server config, httpd.conf), you can set this up on any Apache server with the line AddType

Re: [PHP] Sort a an array?

2001-08-16 Thread Sheridan Saint-Michel
Change $query = select * from $table; to $query = select * from $table order by Jobtitle; Assuming (from your code) you want them alphabatized by Jobtitle of course =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Allen

[PHP] Re: Zend Optimizer

2001-08-16 Thread Jonathan Hilgeman
Zend Optimizer will speed up the code, but I do not believe it crunches the size of files. If you need smaller files for a graph, use PNG or JPEG - not the GIF format. The GIF format is old and unoptimized in PHP/GD, so it gets really big in size unless you have something like ImageMagick to

[PHP] Re: Online Psychology Tests

2001-08-16 Thread Hugh Bothwell
Mindhunter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone know of online psychology tests where the answers are interpreted by a php script? Does anyone use php for this purpose? Don't know of any offhand, but so long as it's just multiple choice,

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and

[PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Hi list! I'm about to write an application that takes about 5000 mailadresses from a database, and then sends a mail to each one of them. I haven't done this kind of apps before, so I don't know if it's a good idea. Does anyone have any suggestions? /Jimmy

Re: [PHP] Sending alots of mail

2001-08-16 Thread Tyler Longren
This was just discussed last week. Here's how: $connection = mysql_connect(host,user,pass); $db = mysql_select_db(db_name, $connection); $sql = mysql_query(SELECT * FROM table_name ORDER BY email ASC); while ($row = mysql_fetch_array($sql)) { $email = $row[email]; $name =

Re: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
I did something like that once. Mine sent only about a few hundred at a time and it was still quite a strain on the system because you have a TON of sendmail processes started and running at the same time. Just be aware of the possible system load. - dan On Thu, 16 Aug 2001, Jimmy

Re: [PHP] Sending alots of mail

2001-08-16 Thread Jome
I have done this, and it's not a bad idea as long as you aren't sending spam. It's rather easy to do this, just do a mysql_query() from the database where you select the subscribers field and then do a while which sends out emails via the mail()-function. You may experience problem with max

SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Hmm I knew that =) I just wondered if it's such a good idea. 5000 mail is very much you know. /Jimmy - Original Message - From: Tyler Longren [EMAIL PROTECTED] To: Jimmy Bäckström [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 6:25 PM Subject: Re: [PHP] Sending

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tyler Longren
Yeah...probably too much. Sending 5000 individual e-mails would really bog the system down...no matter what it is. Personally, I wouldn't do it. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Thu, 16 Aug 2001 18:34:11 +0200 Jimmy Bäckström [EMAIL

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tim
I have a system where we send periodic batches of 60,000 messages at a time, so it's definitely doable. It helps to put some throttling in there (i.e. a sleep() periodically) to be kind to your e-mail server. - Tim On 16 Aug 2001 18:34:11 +0200, Jimmy Bäckström wrote: Hmm I knew that =) I

[PHP] Fw: http methods

2001-08-16 Thread Edney Marcel Imme
Hi. Can anyone send me examples from http methods? (PUT, HEAD, GET, POST, DELETE, TRACE). Tks Edney Marcel Imme [EMAIL PROTECTED] Fone: Celular: 91124616 == Voce quer REALMENTE que o e-commerce de certo no Brasil ? Então compre

SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Hmm that's what I thought about. But I think the system I'll be using uses qmail. I've heard that qmail does things better than sendmail? /Jimmy - Original Message - From: Daniel Adams [EMAIL PROTECTED] To: Jimmy Bäckström [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, August

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread PHP List
Thats interesting. I tried to do the same thing with 5000 emails using sendmail, and I found that only about 1/2 were actually sent, it seems like the multiple calls to mail caused some of them to be ignored. I had to sleep for a couple of seconds before each call to mail() in order to get them

RE: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tom Hodder
You could write all the emails to a database with columns toAddress,fromAddress,subject,body and any others you might want, and then write a cron job to check the database every 10 mins for records it might also be possible to read the process list into a variable and then only start new

SV: [PHP] Sending alots of mail

2001-08-16 Thread Jimmy Bäckström
Can't you queue mails somehow? So that all mails isn't sent at the same time? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php_value in htaccess, internal server error

2001-08-16 Thread Egan
On Thu, 16 Aug 2001 11:14:17 +0930, David Robley [EMAIL PROTECTED] wrote: On Thu, 16 Aug 2001 03:08, Egan wrote: I need to set some PHP values like: php_value session.save_path /a_more_secure_dir Yuo might try allowovveride options Yes, thanks. I was trying to avoid allowoverride

[PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
I'm trying to integrate a payment processing service for a client. The client would like to store the values passed from the payment processing service in a database on the clients server. I'm using a Meta Tag redirect from the payment processing service to my client to pass the variables.

[PHP] Reload a page when a user press the back button

2001-08-16 Thread Mauricio T?llez Jim?nez
Hi all, I don't know if this is a PHP related question, but here it is: I'm developing a PHP / MySQL site, and, in one page the admin of the site has the power to add categories to the database in a input type=text field. To check if the entry is already set, there is a select control with all

Re: [PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Data Driven Design
You're not sending CC numbers in the url as plain text are you? That's a REALLY BAD idea. You should store the information in your database before you go to processing the CC (name, address, etc.) and don't store CC numbers, the liability is much more than you're being paid. If you store it ahead

[PHP] mysql_db_name not working

2001-08-16 Thread Peter Ostry
The command mysql_db_name is not working in our installation. We get no error, but no database listing either if we use this command. - // This is the code which does NOT work: $dbs = mysql_list_dbs(); $num_dbs = mysql_numrows($dbs); for($i=0; $i$num_dbs; $i++) { $db = mysql_dbname($dbs, $i);

Re: [PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
No I'm not passing credit card numbers. I have to receive the variables from the payment processing company because my clients ISP is not using cURL and I can't do a secure post of the info to them. From: Data Driven Design [EMAIL PROTECTED] Date: Thu, 16 Aug 2001 13:21:53 -0400 To: Tom

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
I've heard that qmail is better for a lot of things and easier to configure, but I've never actual used it. Perhaps I'll give it a try next time i set one up. - Dan On Thu, 16 Aug 2001, Jimmy Bäckström wrote: Hmm that's what I thought about. But I think the system I'll be using uses

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Daniel Adams
Actually I remember that I did have the same problem. I had to use sleep() also even though I was only sending a few hundred rather than a few thousand. - Dan On Thu, 16 Aug 2001, PHP List wrote: Thats interesting. I tried to do the same thing with 5000 emails using sendmail, and I

RE: [PHP] Sending alots of mail

2001-08-16 Thread Tyrone Mills
I use qmail to handle all my PHP generated mail. It does a wonderful job. One small coding error sent almost 1000 e-mails to one address in about 30 seconds. It's fast! -Original Message- From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 9:46 AM To: Daniel

[PHP] Need to dynamically globalise variables

2001-08-16 Thread Tom Hodder
I have a function like this... function register_db_to_globals( $row ) { while( list( $key, $val) = each( $row ) ) { global $$key; // (I've tried this with $key as well print $key : $val Br; } } where the function prints this;

  1   2   >