Re: [PHP] php vs asp

2002-01-29 Thread Mike Frazer
If ASP is as slow with MySQL as it is with native Microsoft DBs (Access, SQL Server), then you may be in trouble. I did some work for a friend who owns a hosting company on a site done in ASP and the worst part of the whole thing was testing because the database was so slow. He's got some

[PHP] [ANNOUNCEMENT] Phpauction 2.1 released

2002-01-29 Thread Gianluca Baldo
PHPAUCTION 2.1 has been released and is available in the downloads section at http://phpauction.org .- This release includes an installation script, edit live auctions, post a question to the seller. We have fixed bugs to make this a stable version. Regards, Gianluca -- ALBASOFTWARE

[PHP] Re: How do I use a confirm box to confirm before deletion from a database

2002-01-29 Thread Mike Frazer
Use Javascript on the links. I've done this for all delete links I've done with database-driven sites. Place the following code in the head section of the pages: script language=Javascript var goTo; function verifyClick(goTo) { var choice; choice = confirm(Are you sure you want to

[PHP] broken imap client?

2002-01-29 Thread Cary Mathews
I've been trying to compile php_4.1.1 with imap support for the last couple of days (seems like weeks!). I have the OpenBSD 2.9 ports version of the c-client2000 libraries, along with the source of pine4.44, which uses the same libraries, I think. I can ./configure --with-imap={lib dir} and it

Re: [PHP] mailing to 19000 users

2002-01-29 Thread Kancha .
How about creating a mailing list will 19000 users and then using the mail() function to send mail to that list. so that you will not have to loop through. --- John Meyer [EMAIL PROTECTED] wrote: How about croning the job and splitting up the load as you go. - Original Message -

[PHP] Re: Mysql Connection

2002-01-29 Thread David Robley
In article Pine.LNX.4.21.0201291202160.2265- [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello, I have installed php3 in my system.I want to connect with mysql.I have given this code $link=mysql_connect(localhost,username,password) or die(could not connect); but it is giving

[PHP] --enable-transid and slash URI's

2002-01-29 Thread Tomek Golembiewski
I've got a problem. I want to propagate sessionid using this greate php feature --enable-transid but I want pretty slash url too (I mean www.eee.com/w/12/2344556b44455). I don't want transid to add sessionid at the end of each link with ? or , I want only slah (/session_id_here). Is the any

[PHP] RE: Initializing Array

2002-01-29 Thread Tim Ward
As far as using them is concerned they are already zero (as indeed are undefined elements). If you want force the type you'll have to step through the array. $pos[17][7][3] = 0; // will only set the value of that element, in PHP or C Tim www.chessish.com http://www.chessish.com

[PHP] HOWTO: detect browser's script enabled?

2002-01-29 Thread Ivo Stoykov
Hi I've fillowing (dull perhaps) question: Could I chanck somehow whether the browser has script enabled. I'd like to use it for my statistics. I saw such into http://www.extreme-dm.com/tracking/ free tracking service. Thank you. Ivo -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: --enable-transid and slash URI's

2002-01-29 Thread Yasuo Ohgaki
Tomek Golembiewski wrote: I've got a problem. I want to propagate sessionid using this greate php feature --enable-transid but I want pretty slash url too (I mean www.eee.com/w/12/2344556b44455). I don't want transid to add sessionid at the end of each link with ? or , I want only slah

[PHP] how to specify custom http header in fopen(http://...,...)

2002-01-29 Thread g.p.ciceri
Hello all, I've a bunch of PHP program that heavily depends on remote services via fopen(http://...;,...) costruct. Now I've installed mod_gzip on the remote server and so if I can specify Accept-Encoding: gzip,deflate in my http header request, I can have a (much) smaller network traffic.

Re: [PHP] mailing to 19000 users

2002-01-29 Thread val petruchek
How about creating a mailing list will 19000 users and then using the mail() function to send mail to that list. so that you will not have to loop through. The main disadvantage (not sure of such long $to) is that EVERY user will receive e-mail's of others. Valentin Petruchek (aki Zliy Pes)

[PHP] FOUND SOLUTION

2002-01-29 Thread phantom
Doing some research I found that session cache paramemters may be set in PHP.INI or overridden by inserting the following header() lines into the php for the page you want to cache on the clients browser. Allow Cache Expire time is set in php.ini in minutes. Search php.ini for key word cache

Re: [PHP] browser back button - Page has Expired.. problem

2002-01-29 Thread phantom
Also consider: header(Cache-Control: public); header(Cache-Control: max-age= . $this-allowcache_expire * 60); This will allow to set the expiration of the cached file on the on the clients browser. The Cache Expire time is in minutes and can be found (and changed) in the php.ini file. Search

[PHP] Error executing PHP-Scripts

2002-01-29 Thread Heiko Schneebeck
Hi, everytime I request a phpscript form my Apache I got an segmentation fault 11 in apaches errorlog. System is: Apache 1.3.22, PHP 4.1.1, SuSE Linux 7.2 (2.2.19) The backtrace: (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X Program received signal SIGSEGV, Segmentation

Re: [PHP] how to specify custom http header in fopen(http://...,...)

2002-01-29 Thread Joffrey van Wageningen
I've a bunch of PHP program that heavily depends on remote services via fopen(http://...;,...) costruct. Now I've installed mod_gzip on the remote server and so if I can specify Accept-Encoding: gzip,deflate in my http header request, I can have a (much) smaller network traffic. My

[PHP] Re: HOWTO: detect browser's script enabled?

2002-01-29 Thread Martin Thoma
Hm, the easiest way would be, try SCRIPT LANGUAGE=Javascript SRC=myfile.js/SCRIPT where myfile.js contains simply nothing. Everytime the file is downloaded, someone uses Javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] configuring php and apache

2002-01-29 Thread liz lynch
hi all, i have installed php and apache on my home computer..i am running xp home edition. the problem is that the php and apache are not working together. what i have done so far: 1. configured the httpd.conf file by adding the following lines: ScriptAlias /php/ c:/php/ AddType

Re: [PHP] configuring php and apache

2002-01-29 Thread Neil Freeman
What problems/errors are you getting? Place the following code into a .php file under htdocs: ?php phpinfo(); ? and then enter something like http://localhost/xxx.php into your browser. Neil liz lynch wrote: hi all, i have installed php and apache on my home computer..i am running xp

Re: [PHP] configuring php and apache

2002-01-29 Thread Neil Freeman
Oh yeah... extension_dir should also have a trailing '\' I believe. Neil liz lynch wrote: hi all, i have installed php and apache on my home computer..i am running xp home edition. the problem is that the php and apache are not working together. what i have done so far: 1. configured the

Re: [PHP] mailing to 19000 users

2002-01-29 Thread Stefan Rusterholz
Read through the according rfc's. http://www.ietf.org/rfc/rfc0821.txt could match (else do a google search on rfc +mail without parenthesis) I didn't find anything about length limitation (but I didn't read it _very_ seriously) so I think it's theoretically not limited. But I could imagine that

Re: [PHP] configuring php and apache

2002-01-29 Thread Mike Maltese
Problems I see: First, use forward slashes! extension_dir = c:\windows\system32//points to where i located the php4ts.dll file This should be the folder that contains extension dll's. If you used the installer it will be C:/php/extensions (no quotes) or wherever you installed PHP.

[PHP] Opening an URL on an new window

2002-01-29 Thread Eduardo Melo
There is a way to open an URL in a new window using JAVASCRIP commands as such as window.open where is the documentation for JAVASCRIP commands ? thanks Eduardo Melo copmuter programmer _ Send and receive Hotmail on your mobile

Re: re: [PHP] Paypal Instant Payment Notification

2002-01-29 Thread David
simply change the fsocketopen's socket from 80 to 443 (SSL port) I'm thinkin' the problem is that I'm not posting to https://www.paypal.com/blah, but to http://www.paypal.com/. How do I use the posttohost function (or some other function) to post securely? -- PHP General Mailing List

Re: [PHP] PHP and Webmin...

2002-01-29 Thread Prakash
PLEASE, can someone tell me how may I reach someone that can help me in this problem ?!? I've already asked in the PHP-DEV mailing list, but I've seen no answers at all also there...! IMHO, it can be very useful to use php as a remote administration language!!! thanks, prakash -

[PHP] include redirects

2002-01-29 Thread Calin Uioreanu
Hi all, I have a problem with a redirect. I have a file that includes a content from another PHP script, parses the content as string with output buffering and displays it. The problem is that the include function doesn't seem to handle redirects. When that other PHP script makes a Header

[PHP] HOW TO: How can I retrieve the HTTP Response Headers

2002-01-29 Thread Alexandre Ferreira Novello
Hello guys, I asked that before, but I will explain my problem with more details. How can I retrieve the HTTP Response Headers using iPlanet or an independent SAPI function? Does these variables could come in any $HTTP_*_VARS or $_*? In Apache we have a function called getallheaders(), but

RE: [PHP] Need a little help

2002-01-29 Thread Brian V Bonini
What browser are you using? I just read in the annotated manual there may be issues wiht this using ie5.x. Do you have the script running on a public webserver where I can try it from here just to see if I get the same results? -Brian -Original Message- From: Girish Nath

Re: [PHP] Opening an URL on an new window

2002-01-29 Thread David Otton
On Tue, 29 Jan 2002 09:46:39 -0200, you wrote: There is a way to open an URL in a new window a href=blah target=_blank/a using JAVASCRIP commands as such as window.open [windowVar = ][window].open(URL, windowName, [windowFeatures]) Where windowFeatures is a comma-separated list of any of the

[PHP] is create_function slow?

2002-01-29 Thread Emile Bosch
Hi, is create function slow? Or has it a very significant slowdown compared to an include? i might want to create functions on the fly if it isn't tooo slow.. warm regards, Emile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] is create_function slow?

2002-01-29 Thread Edward van Bilderbeek - Bean IT
including a file is nothing more then placing the text of the include file at the place you called include() so I think there's no reason why it should be quicker or slower... Edward Hi, is create function slow? Or has it a very significant slowdown compared to an include? i might want

Re: [PHP] include redirects

2002-01-29 Thread David Otton
On Tue, 29 Jan 2002 12:51:15 +0100, you wrote: Do you know a solution to insert remote content handling eventual redirects in the remote? Something like a browser. fopen() the file you're trying to include, and handle the response from the server yourself. If it returns 301 or 302, you have to

[PHP] One form - Two emails, I need some help please

2002-01-29 Thread Edward R. Bailey
Hi, I am trying to submit the contents of a form via email to a set address and then send a confirmation email based on the entered email address from the form. Sending the confirmation email works fine but the second email confirming delievery of the email is not working. Right now the script

Re: [PHP] broken imap client?

2002-01-29 Thread Cary Mathews
I've been trying to compile php_4.1.1 with imap support for the last couple of days (seems like weeks!). I have the OpenBSD 2.9 ports version of the c-client2000 libraries, along with the source of pine4.44, which uses the same libraries, I think. I can ./configure --with-imap={lib dir}

[PHP] create xml document with PHP

2002-01-29 Thread Rodrigo Peres
Hi list, I'm new to the xml world, and I need to create a page with data retrieved from my database using PHP. The process is the same of create an html page?? I mean I can use echo to output the xml tags and values?? Since this page will be dinamically generated what kind of headers I need to

[PHP] Re: HOWTO: detect browser's script enabled?

2002-01-29 Thread Todor Stoyanov
use the noscript/noscript tag Ivo Stoykov [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I've fillowing (dull perhaps) question: Could I chanck somehow whether the browser has script enabled. I'd like to use it for my statistics. I saw such into

[PHP] preg_match won't match elements

2002-01-29 Thread Larry Brown
I have two arrays and need to perform the array_diff function. However, since it is broken in 4.x, I'm trying to get the same outcome. Due to the nature of my call to this function the selected is always going to be a number of items selected from the connections. For some reason the outcome

[PHP] Feature requests for PHP development - where to post them?

2002-01-29 Thread Stefan Rusterholz
Is there a place especially meant to make feature-requests to the php-development team? TIA stefan rusterholz -- 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,

[PHP] Custom email after form submission

2002-01-29 Thread Edward R. Bailey
Can anyone point me in the right direction about how to send a custom email to a user after a form submission. The user would provide their email address in the form. Thanks Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

re: [PHP] Custom email after form submission

2002-01-29 Thread Jason Cox
Sorry. I forgot to reply to the list. - Original Message - From: Jason Cox [EMAIL PROTECTED] To: Edward R. Bailey [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 8:27 AM Subject: Re: [PHP] Custom email after form submission Ed, Check the manual for the mail() function. Here's a

[PHP] Re: One form - Two emails, I need some help please

2002-01-29 Thread Michael Kimsal
Edward R. Bailey wrote: if ($PHP_MAIL_FORM=true){ should probably be if ($PHP_MAIL_FORM==true){ Try that. Michael Kimsal http://www.tapinternet.com/php PHP Training Courses 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

php-general Digest 29 Jan 2002 16:25:18 -0000 Issue 1140

2002-01-29 Thread php-general-digest-help
php-general Digest 29 Jan 2002 16:25:18 - Issue 1140 Topics (messages 82513 through 82571): Re: upload permission denied! 82513 by: Jason Wong 82515 by: Girish Nath 82527 by: sundogcurt 82530 by: Mike Frazer Re: Session updates ok first time only.

RE: [PHP] Re: One form - Two emails, I need some help please

2002-01-29 Thread Matt Schroebel
And I write those as (true == $PHP_MAIL_FORM) so the parser will catch the missing second equal sign. This won't parse: (true = $PHP_MAIL_FORM) Edward R. Bailey wrote: if ($PHP_MAIL_FORM=true){ should probably be if ($PHP_MAIL_FORM==true){ -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: create xml document with PHP

2002-01-29 Thread J Smith
The only real difference between HTML and XML (besides the obvious standards and formats and such) is the MIME type, I believe. HTML has a text/html MIME type, while XML can have a whole bunch, depending on what the XML is supposed to do. (I.e. text/xml, application/xml, application/xml-dtd,

[PHP] --enable-ftp in RedHat 7.0

2002-01-29 Thread Ing. Gustavo Edelstein
Hi members, How can I install the PHP4 rpm with ftp support in RedHat 7.0 ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus Argentina S.A. __ Visit us On Line at www.equiplus.com Email addresses: Operations: [EMAIL PROTECTED] Consulting: [EMAIL

[PHP] Write an array to a file

2002-01-29 Thread Scott Saraniero
Hi, How do I write an array to a file? For example, I need to write just this in a file: ?php $Company = array(Item 1, Item 2, Item 3, Item 4, Item 5,); ? I've been hung up for 2 days on this. Any help would be appreciated. Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Write an array to a file

2002-01-29 Thread Chris Boget
How do I write an array to a file? For example, I need to write just this in a file: ?php $Company = array(Item 1, Item 2, Item 3, Item 4, Item 5,); ? I've been hung up for 2 days on this. Any help would be appreciated. Use serialize prior to writing the data to the file and unserialize

[PHP] Win32 : php_gd.dll (GIF, PNG, WBMP et JPEG)

2002-01-29 Thread php-general
I found a dll to generate gif under windows. It work with php 4.0.6, 4,0.4 but it dosen't work with php 4.1.1 link ? tips ? thanks franck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Re: broken imap client?

2002-01-29 Thread Mike Frazer
I also think there are a few bugs with IMAP. I have 4.0.1 (time to update, I know...see below) and have experienced a few problems with the imap_*() functions: 1 - Enabled pop3d on system; set protocol to pop3; unable to retrieve mailbox listings. Pop3d working properly under manual

[PHP] sessions bw http and https hosts in same domain

2002-01-29 Thread razorfish
Problem: hosts http://www.; and https://secure.; of the same domain need to work with the same browser session_id. This is a login/authenticate/redirect scenario. In this case the session data store is a common MySQL database, so the issues of /tmp sharing, NFS, etc. are set aside. My

[PHP] Cobalt RAQ4 apache config index.php

2002-01-29 Thread Beeman
I am using a Cobalt RAQ4 server and need to edit my config file to allow index.php as the directory index. the config file appears non standard, ad it has the pearl for the web based server administration.. What and where do I need to add the DirectoryIndex? also how do I disable the directory

[PHP] Re: Cobalt RAQ4 apache config index.php

2002-01-29 Thread Mike Frazer
RaQ4 systems still use what is *basically* a standard config (the only real difference is some really stupid Perl code for SSL that can screw the whole system up). I don't recall where in the Web-based admin area you change these values, but the httpd.conf still has the DirectoryIndex line.

[PHP] Re: Cobalt RAQ4 apache config index.php

2002-01-29 Thread Beeman
The config file currently doesn't have any occurance of DirectoryIndex, can I just add it within the virtual host for the site that I want to modify. it currently will default to index.html or index.htm and then the directory listing if neither index is found. Is the DIrectoryIndex param similiar

[PHP] HOWTO Q: detect browser's script enabled? - II

2002-01-29 Thread Ivo Stoykov
Hello again earlier today I asked about detecting whether javascript is enabled on the visitor's browser (bellow are the question and answeres received). I'd like to clear - I do not want to take any following actions - I'd just like to detect this for statistial purposes (as is released into

Re: [PHP] Session updates ok first time only.

2002-01-29 Thread Floyd Baker
On Tue, 29 Jan 2002 12:11:02 +0800, you wrote: On Tuesday 29 January 2002 06:36, Floyd Baker wrote: Yes I have a c:\tmp directory and I see the session being created in it. And the page_view value of 1 after the first increment. The editor wants to reload each time I hit the submit button

[PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jeff Lewis
Is it possible to measure the amount of RAM or CPU power used to process a particular file written in PHP? Can the values be grabbed and displayed with PHP? Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Session updates ok first time only.

2002-01-29 Thread Floyd Baker
Jason put a little snip from the man that he found that works just fine on my pages. It looks like you increment or change the variable directly in the session register instead of doing it on the page. That sounds suspiciously like what you were trying to tell me. :-) What do you think...

[PHP] Array() Limit

2002-01-29 Thread Zach Curtis
Is there a limit to the number of key=value pairs that can be stored in an array? Or is this more a function of RAM limits? Thanks. Zach Curtis POPULUS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] Write an array to a file

2002-01-29 Thread Greg Schnippel
Scott - You can just write it as a pipe-delimited file, write it to the file, and then read it back in. Use implode and explode: $company = array(Item 1, Item 2, Item 3, Item 4); #- # # Output array # $output_string = implode(|, $company); write

[PHP] Re: Cobalt RAQ4 apache config index.php

2002-01-29 Thread Mike Frazer
I don't remember if the DirectoryIndex directive is usable inside VHosts, it might just be global. But yes, to use it add the following line: DirectoryIndex filename1 filename2 filename3 Add as many as you want, and use any names you want. Recommended order would be something along the lines

[PHP] Re: Array() Limit

2002-01-29 Thread Ivo Stoykov
RAM is less then max 32 bit number anyway. Ivo Zach Curtis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a limit to the number of key=value pairs that can be stored in an array? Or is this more a function of RAM limits? Thanks. Zach Curtis

[PHP] sockets

2002-01-29 Thread Kunal Jhunjhunwala
hey.. does anyone know of any good resources for using sockets? which will also explain using sockets to connect to various protocols? like ftp, httpd, mysql etc? Also, somewhere one can read on writing a connection deamon... Thanks! Regards, Kunal Jhunjhunwala -- PHP General Mailing List

[PHP] Re: Array() Limit

2002-01-29 Thread Mike Frazer
Obviously RAM will come into play in this but there is a system-dependent limit. I forget which type it uses (int, double, long, etc) to determine this limit, but math in computers is always finite, as there will always be a maximum limit, depending on how many bits your system is capable of

Re: [PHP] Array() Limit

2002-01-29 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Zach Curtis blurted Is there a limit to the number of key=value pairs that can be stored in an array? Or is this more a function of RAM limits? AFAIK it would just be a resources issue. Are you just curious, or.? - -- Nick

Re: [PHP] Write an array to a file

2002-01-29 Thread Mike Frazer
More than one way to skin a cat :) The question obviously is whether or not you need to read this data back or if it will be static, unread data. You can use several forms here, including the one below. However, you can use for, while and foreach loops to handle it: /* for (...) method */

[PHP] Re: sockets

2002-01-29 Thread Mike Frazer
Are you referring to PHP sockets or C sockets? PHP sockets are an implementation of C sockets (which is why most of the actiones needed are the same in PHP but are somewhat simplified). If you mean PHP sockets, you can try taking a look at WhoisPro, a Whois/NICNAME script I wrote to understand

[PHP] Sending an e-mail to 1,000 people

2002-01-29 Thread Ben Clumeck
I would like to send an e-mail (the same e-mail) to 1,000 different people. I want each persons name to be in the To: field. Is there a way to customize it to where it can say Dear (having a different persons name corresponding to an e-mail address) so that it looks customized. Thanks, Ben

Re: [PHP] Re: sockets

2002-01-29 Thread Kunal Jhunjhunwala
Hey Mike, I am looking for PHP sockets.. hence the php mailing list :P I hvent found any decent resource on it.. orielly article is good for complete beginers.. but i was looking for something more detailed... any books anyone can recommend would do too.. but i would prefer source to study :)

RE: [PHP] Sending an e-mail to 1,000 people

2002-01-29 Thread Rick Emery
yes you can by using MYSQL to store the names, PHP to generate the letters (or you can store letter template in database as well), and PHP's mail() function will take you home. -Original Message- From: Ben Clumeck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 1:43 PM To:

[PHP] Combining my code

2002-01-29 Thread Scott Saraniero
Hi, I've got two bits of code below that work fine, but I would like to combine them if possible. The $check variable that is there is there now would normally be passed from a form. Since the items in the '$Company = array()' part would be passed into that section - how can this be done?

[PHP] Re: HOW TO: How can I retrieve the HTTP Response Headers

2002-01-29 Thread Manuel Lemos
Hello, Alexandre Ferreira Novello wrote: Hello guys, I asked that before, but I will explain my problem with more details. How can I retrieve the HTTP Response Headers using iPlanet or an independent SAPI function? Does these variables could come in any $HTTP_*_VARS or $_*? AFAIK

[PHP] Re: create xml document with PHP

2002-01-29 Thread Manuel Lemos
Hello, Rodrigo Peres wrote: Hi list, I'm new to the xml world, and I need to create a page with data retrieved from my database using PHP. The process is the same of create an html page?? I mean I can use echo to output the xml tags and values?? Since this page will be dinamically

[PHP] Re: create xml document with PHP

2002-01-29 Thread Manuel Lemos
Hello, Rodrigo Peres wrote: Hi list, I'm new to the xml world, and I need to create a page with data retrieved from my database using PHP. The process is the same of create an html page?? I mean I can use echo to output the xml tags and values?? Since this page will be dinamically

Re: [PHP] Re: HOW TO: How can I retrieve the HTTP Response Headers

2002-01-29 Thread razorfish
check into libcurl and the php/curl integration. You are certainly able to process the response headers in curl. Hello, Alexandre Ferreira Novello wrote: Hello guys, I asked that before, but I will explain my problem with more details. How can I retrieve the HTTP Response

[PHP] Re: HOWTO Q: detect browser's script enabled? - II

2002-01-29 Thread Arve Bersvendsen
Ivo Stoykov wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Hello again earlier today I asked about detecting whether javascript is enabled on the visitor's browser (bellow are the question and answeres received). html head /head body script type=text/javascript jsImg = new Image()

Re: [PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jason Wong
On Wednesday 30 January 2002 03:10, Jeff Lewis wrote: Is it possible to measure the amount of RAM or CPU power used to process a particular file written in PHP? Can the values be grabbed and displayed with PHP? There's a function getrusage(). Not sure whether that'll do what you want. --

[PHP] passing textarea content from one page to another

2002-01-29 Thread Simos Varelakis
Hi to everyone I try to pass a varaible ($text) which contains text from texarea (with Headerlocation:foo2.php?text=$text) from one page foo1.php to foo2.php and display it to another textarea object in foo2.php the problem is that i lose all the contents since the first tab or CR prsseed in

Re: [PHP] passing textarea content from one page to another

2002-01-29 Thread Ing. Gustavo Edelstein
Try using this: location:foo2.php?text=urlencode($text) Regards, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus Argentina S.A. __ Visit us On Line at www.equiplus.com Email addresses: Operations: [EMAIL PROTECTED] Consulting: [EMAIL PROTECTED] Technical:

[PHP] Book database (slightly OT)

2002-01-29 Thread Reuben D Budiardja
Hi, I am working on a projects for book cataloging. What I want to do is to input all the books isbn to a mysql table, either by hand or by scanning it, and then let php go through those data and add more info such as tittle, author, publisher, etc. Now, the real question is, does anyone

RE: [PHP] Sending an e-mail to 1,000 people

2002-01-29 Thread Rick Emery
1. Create a mysql database with the names. You would have to enter all the names and addresses into the database. 2. Create a PHP program which would read the names from the database. The names would go into a variable. 3. Using a template letter in the PHP program, insert the names (from

[PHP] setting/reading session_id before session_start

2002-01-29 Thread razorfish
Maybe I'm having a brain fart, please set me straight: I want to use session_id($myval) to use a roll-my-own MD5 session id (SID). I don't obviously want to assign the session_id() if the session is already established. Given that session_id() must come before session_start() how do

[PHP] Encoding/Decoding

2002-01-29 Thread Devin Atencio
Dear PHP Users, I was wanting some input on your ideas. I want to be able to encrypt data and then store it into a database and then decrypt the information and display it when I need the data. I have played around with a few things from the PHP website but have problems with a few things.

[PHP] PHP/Courier-IMAP and c-client library

2002-01-29 Thread Tony Bibbs
Ok, I have PHP 4.1.1 on RH7.2 and I'm running courier-mta and courier-imap. I downloaded the UW c-client library and did the make lrh. I then do the following configure: ./configure --disable-debug -enable-pic -disable-rpath --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-bz2

RE: [PHP] Need a little help

2002-01-29 Thread Brian V Bonini
Hmmm, I'm using exactly this: ? $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { $requestImage = http://www.domain.com/images/image1.gif;; } else { $requestImage = http://www.domain2.com/image2.gif;; } header (Content-Type: image/gif); header (Content-Length: .

[PHP] URL Parsing Help

2002-01-29 Thread Shane Lambert
I am trying to write software that will allow me to pass variables to a php script like: index.php/option=contact/step=view When I do this, I get the varibal PATH_INFO which contains /option=contact/step=view. Now, what I want is to have the following: $option = contact $step = view I tried

[PHP] Re: PHP/Courier-IMAP and c-client library

2002-01-29 Thread Tony Bibbs
For the archives: I found a fix for my problem. I want to be perfectly clear what my configuration is so that if anyone has this god-foresaken problem they can fix it. OS: Red Hat Linux 7.2 MTA: courier-mta IMAP: courier-imap I installed the UW c-client library and compiled it with make lrh

[PHP] Session Help

2002-01-29 Thread Michael: Dave II, Electric Boogaloo
I'm having a little problem with my sessions on a website I'm programming for. After a user logs in, if that user follows a link, the variable information is being passed correctly, but when they hit Back, Internet Explorer gives a Warning This Page Has Expired error. Hitting refresh does fix

Re: [PHP] URL Parsing Help

2002-01-29 Thread Christopher William Wesley
$myPairs = explode( /, $PATH_INFO ); while( list( $key, $val ) = each( $myPairs ) ){ if( !empty( $val ) ){ $myVar = explode( =, $val ); ${$myVar[0]} = $myVar[1]; } } For you example URI, index.php/option=contact/step=view you would then have

[PHP] Submit/View images using PHP/MySQL

2002-01-29 Thread Mike C
Hi, Can anyone point me to some good examples of how to add images using PHP 4 (from within a browser) to a MySQL database running on MacOSX, which is already configured working, then display the images by selecting their name or category etc, again within the browser. I also need to

Re: [PHP] Feature requests for PHP development - where to post them?

2002-01-29 Thread Lars Torben Wilson
On Tue, 2002-01-29 at 06:53, Stefan Rusterholz wrote: Is there a place especially meant to make feature-requests to the php-development team? TIA stefan rusterholz http://bugs.php.net Select 'Feature/Change Request' as the bug type. Cheers, Torben -- Torben Wilson [EMAIL PROTECTED]

[PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-29 Thread Kevin Stone
I'm using templates to create an interface for a new ePostcard script. The templates are HTML with embedded PHP tags in the likely positions (ie. font, text, bgcolor, etc..). The script include()'s the chosen template file and evaluates the variables stored in the active session for display in

Re: [PHP] URL Parsing Help

2002-01-29 Thread Shane Lambert
Actually, I found a simpler way: $vars = str_replace(/,,$PATH_INFO); parse_str($vars); But thanks for your help... Christopher William Wesley wrote: $myPairs = explode( /, $PATH_INFO ); while( list( $key, $val ) = each( $myPairs ) ){ if( !empty( $val ) ){ $myVar =

[PHP] Date time

2002-01-29 Thread Torkil Johnsen
Hello... I have a field in my mysql database containing datetime on the format -MM-DD HH:MM:SS (24-hour format) Now. I want to output this as follows: DD.MM.YY at HH:MM:SS Currently I do this by this function: function convert_datetime($in){ $return = substr($in,8,2) . . .

Re: [PHP] Date time

2002-01-29 Thread Dennis Moore
It is much easier to use the mysql DATE_FORMAT() function to format your dates when retrieving directly from the data base. You do not have to convert to a UNIX time stamp and all that other stuff. Your select statement should look something like: $date_format_long=%d:%m:%y at %T;

Re: [PHP] Re: sockets

2002-01-29 Thread Michael Sims
At 01:22 AM 1/30/2002 +0530, Kunal Jhunjhunwala wrote: Hey Mike, I am looking for PHP sockets.. hence the php mailing list :P I hvent found any decent resource on it.. orielly article is good for complete beginers.. but i was looking for something more detailed... any books anyone can recommend

Re: [PHP] Date time

2002-01-29 Thread Richard Baskett
Ok first I will answer you last question.. use gmdate (http://www.php.net/manual/en/function.gmdate.php) instead of date (http://www.php.net/manual/en/function.date.php) And then for your MySQL output use SELECT DATE_FORMAT(fieldName, '%d.%m.%y at %H:%i:%s') AS newDate You can view

RE: [PHP] Fwd: PhpSmsSend remote execute commands bug

2002-01-29 Thread Jason Murray
I'm think I'm going to start forwarding all the bugtraq alerts for PHP scripts to this list. Any objections? Yes, if the author of the script isn't on the list it's useless unless someone wants to patch their script themselves. And if they're the kind of person who's inclined to do that,

[PHP] setting up a members Login section on a webpage.

2002-01-29 Thread Matthew Darcy
Hi, I am looking at getting users to input their details to be stored in mysql, I would then like them to have to login to get access to certain functions when they come back. Does anyone have a good idea on how to do this, is the best / only way to do this sessions ? This must be quite

Re: [PHP] setting up a members Login section on a webpage.

2002-01-29 Thread Richard Baskett
Definitely use session! :) My two bits worth Rick If you're going to be able to look back on something and laugh about it, you might as well laugh about it now. - Marie Osmond From: Matthew Darcy [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 30 Jan 2002 01:27:42 - To: PHP

RE: [PHP] Fwd: PhpSmsSend remote execute commands bug

2002-01-29 Thread bvr
I agree, but it may be usefull to tell those newbies that when you execute a command from PHP that will get some parameters from an external source (like a form or a get variable) ALWAYS use the escapeshellcmd() function to prevent users from executing arbitrary commands. bvr. There's such a

  1   2   >