Re: [PHP] Form variable can't transfer to web page

2004-04-12 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 13 Apr 2004 06:11, Morris Law wrote: > Dear all PHP users, > > I have installed a new web server for PHP scripting. > I wrote a PHP form page to submit some variables to > another PHP pages. After submission, I found that the > variables ca

[PHP] class design

2004-04-12 Thread Andy B
hi... i was reading something on phppatterns website about class design. the reading said that its best to take say a db extraction class that you might want to write and instead of making one super huge class out of it called "db" or whatever it would be called but to turn that "db" class into a

[PHP] Form variable can't transfer to web page

2004-04-12 Thread Morris Law
Dear all PHP users, I have installed a new web server for PHP scripting. I wrote a PHP form page to submit some variables to another PHP pages. After submission, I found that the variables cannot be echoed out. The scripts are as simple like these, \n"; print "Name: \n"; print "\n\n"

Re: [PHP] varible

2004-04-12 Thread edwardspl
"Chris W. Parker" wrote: > [EMAIL PROTECTED] > ??on Monday, April 12, 2004 8:32 AM said: > > > Is there a solution ( without open global ) , then send the value of > > the varible of list.php to view.php ? > > you can put the variables in $_SESSION or pass them via the q

RE: [PHP] how do I make a script wait ?

2004-04-12 Thread Jason Sheets
Take a look at the set_time_limit function, it will allow you to set the maximum execution time to a greater value, note that when you call the function it sets the max time and resets the timer so if you set it to 100 seconds 20 seconds into the script the script will run for a maximum of 120 seco

Re: [PHP] how do I make a script wait ?

2004-04-12 Thread David Risner
There is a default maximum run time for scripts of 30 seconds (it is max_execution_time in the php.ini file), so unless you have changed this, you might be running into the maximum run time. -- David Risner On Tue, 13 Apr 2004 04:06:51 +0100, "Damian Brown" <[EMAIL PROTECTED]> said: > The code is

[PHP] Re: Problems with mail and php

2004-04-12 Thread Manuel Lemos
Hello, On 04/12/2004 12:48 PM, Luis Lebron wrote: I have a development box that uses our company's Exchange server as an smtp host. All of a sudden, the php mail function has stopped working. I can, however, send a message using mutt. Here's the output of the maillog: Apr 12 10:38:51 localhost

Re: [PHP] how do I make a script wait ?

2004-04-12 Thread Damian Brown
The code is shown below there is now a delay before the page is displayed of 50 secs it must be hitting the sleep command as it searches, and so stops searching the database table is there any workaround ? echo "Your Search Results are as follows"; ?> Title URL Description for

[PHP] I need some help And the people at the Bug section pointed me to you

2004-04-12 Thread Jbard888
Im a collage student And im trying to set up snort as a class project I downloaded all needed files according to the instructions Everything was going fine untill I got to the PHP installation. I typed ./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-file-path=/www/php --ena

Re: [PHP] how do I make a script wait ?

2004-04-12 Thread Ryan A
Hey, Use the sleep() function. Cheers, -Ryan On 4/13/2004 4:42:56 AM, Damian Brown ([EMAIL PROTECTED]) wrote: > I am writing a script that searches through a database table, and then > there > is an array function below the searching, but the array function gets > executed before > the database t

RE: [PHP] Win2003 Slow

2004-04-12 Thread Jason Sheets
Also take a look at http://forum.rackshack.net/printthread.php?threadid=30312, it sounds like they had similar performance problems. Jason > > -Original Message- > From: Hotmail [mailto:[EMAIL PROTECTED] > Sent: Monday, April 12, 2004 8:27 PM > To: Jason Sheets > Subject: Re: [PHP] Win20

[PHP] how do I make a script wait ?

2004-04-12 Thread Damian Brown
I am writing a script that searches through a database table, and then there is an array function below the searching, but the array function gets executed before the database table searching finishes and I want it to wait until the database has been searched before executing the array code Thanks

RE: [PHP] looking for remote execution command

2004-04-12 Thread Vail, Warren
Depends on the machine you are connecting to, but there are a whole raft of them. rexec, rpc, rsh, ssh (I've even invoked perl under php to gain access to perls telnet command, could never get one to work in PHP, seems there is some handshaking missing (will/wont, can/cant, etc)). Secure Shell (ss

Re: [PHP] looking for remote execution command

2004-04-12 Thread Curt Zirzow
* Thus wrote Zhang, Yanning ([EMAIL PROTECTED]): > is there another command similar to > ftp_exec(), but outside ftp? I tried ftp_exec() and it doesn't work ftp_exec($conn, > 'ls -al'): ERROR: SITE ls -al is not understood. > iirc, that means that 'SITE' isn't supported by the server your connec

Re: [PHP] SQLite /how can I install on an Apache virtual host?

2004-04-12 Thread Curt Zirzow
* Thus wrote Al ([EMAIL PROTECTED]): > I've got a website on an Apache virtual host and would like to install > the SQLite library. > > Can someone give me a brief outline of what I need to do or point me to > a good writeup? some info on sqlite: http://php.net/sqlite You can compile and ins

RE: [PHP] Win2003 Slow

2004-04-12 Thread Jason Sheets
Did you install PHP as a module or as CGI? What web serve are you using? Jason -Original Message- From: Ataxia [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 10:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Win2003 Slow Just installed PHP on a brand new W2k3 Server, and it works

Re: [PHP] Wanted: login and CMS system with a twist

2004-04-12 Thread David T-G
Justin, et al -- ...and then Justin French said... % % On 13/04/2004, at 1:10 AM, David T-G wrote: % % >A client of mine wishes to create a web site which does more than just % >the typical CMS functions in that what you can see not only depends on % >whether or not you have an account but also

Re: [PHP] Including a dynamic variable/file

2004-04-12 Thread Ryan A
Hi again, Disregard the last post, i found the problemthe variable was being overwritten by another one below Cheers, -Ryan On 4/13/2004 1:50:07 AM, Ryan A ([EMAIL PROTECTED]) wrote: > Hi, > I created a "control panel" for a client, he wanted the option of > changing > the template as when

[PHP] Including a dynamic variable/file

2004-04-12 Thread Ryan A
Hi, I created a "control panel" for a client, he wanted the option of changing the template as whenever he pleases. Since he knows HTML I made it very simple by adding a header and a footer. He simple fills in 2 variables in Config.php: $client_header $client_footer In my scripts I am calling it

Re: AW: [PHP] After calling a Function the Script aborts without anyerror :-\

2004-04-12 Thread William Lovaton
Mmmm... very strange... can you print_r() the array returned by get_defined_functions(), get_included_files() and get_declared_classes() and see if every thing is going on right?? Use the last one if your included file define classes too. Can we review the code in the mailing list?? is it big?

AW: [PHP] After calling a Function the Script aborts without anyerror :-\

2004-04-12 Thread Ben
But what if the function you are callign doesn't need any passed variable like $bar = foo(); ??? the more strange thing is, on a lamp environment (SUSE 9.0, PHP 4.3.5), the scripts worked, on a wamp (win2k, same PHP) and on a LAMP RH9 same PHP it didn't work. -Ursprüngliche Nachricht-

[PHP] looking for remote execution command

2004-04-12 Thread Zhang, Yanning
is there another command similar to ftp_exec(), but outside ftp? I tried ftp_exec() and it doesn't work ftp_exec($conn, 'ls -al'): ERROR: SITE ls -al is not understood. Thanks. Yanning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread William Lovaton
El lun, 12-04-2004 a las 14:12, Don Read escribió: > > Sometimes I have this problems too, no matter if that setting is on. > > > > If the error occurs within a table element on a web page, Mozilla won't > display because it's waiting for the '' to begin figuring > out the display properties. I

AW: [PHP] After calling a Function the Script aborts without anyerror :-\

2004-04-12 Thread Ben
Its the same in my case. That's the point why i was wondering because if the function that i want to call wouldn't exist it would normally print an error... And to this comment >Or you can echo out something in the function you're trying to call... > >function whatever() { > echo ( "" ); >

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread Don Read
On 12-Apr-2004 William Lovaton wrote: > Hi, > > El lun, 12-04-2004 a las 09:27, John W. Holmes escribió: >> From: "Ben" <[EMAIL PROTECTED]> >> >> > i got a big problem. I have a script which includes some other >> > script i >> > tried include, require and require once. The problem is, if i do a

[PHP] SQLite /how can I install on an Apache virtual host?

2004-04-12 Thread Al
I've got a website on an Apache virtual host and would like to install the SQLite library. Can someone give me a brief outline of what I need to do or point me to a good writeup? My host makes it tough to run command line code to make files, etc. I've found a a Linux binary [sqlite.so]. And,

Re: [PHP] XML Parser Functions - problem interpreting an xml file

2004-04-12 Thread Kai Hackemesser
This didn't help, since the problem is in an file which doesn't pass the PHP interpreter. Next idea? Regards, Kai "Chris Boget" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > > I send you a part of the XML file (- content), maybe you can tell me why > > it cant be interpreted

RE: [PHP] Problems with mail and php

2004-04-12 Thread jon roig
Take a look at the email address in the log... Seems to be missing a .com. Might that be your problem? -- jon -Original Message- From: Luis Lebron [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 8:48 AM To: Php-General (E-mail) Subject: [PHP] Problems with mail and php

Re: [PHP] requests per s with php and mysql queries

2004-04-12 Thread William Lovaton
Hi Merlin, I use some tools made by my self. So, I have done some PHP scripts to gather this info. The information I gave to you regarding concurrency (requests per sec) are obtained simply by analyzing the apache logs. Look at the left, you will see the date and time of the request, just group

[PHP] help!! Double-byte character problem

2004-04-12 Thread Kelvin
Hi all, Is there any function/method in PHP to convert a double-byte character into its ascii code? for example, the traditional Chinese charater "§A" is equal to 20320. In ASP there is a function AscW() to do so. Don't know if we have similar function in PHP. thanks, Kelvin -- PHP General Mail

Re: [PHP] Re: commercial autoresponses

2004-04-12 Thread David T-G
Jason, et al -- ...and then Jason Barnett said... % % David T-G wrote: % > % >and wondered for a moment if I'd really sent it to the right place! Have % >I really missed so much in a month of being too busy to post on the list? % % No David, I receive those messages also when I post. Just bloc

[PHP] Win2003 Slow

2004-04-12 Thread Ataxia
Just installed PHP on a brand new W2k3 Server, and it works flawlessly, but all the scripts are EXTREMELY slow. Migrating the site from a Win2000 box, and everything was perfect, so I don't believe it's the code. Anyone else run into this? -- AtaxiA -- PHP General Mailing List (http://www.php

[PHP] Re: Problems with mail and php

2004-04-12 Thread Justin Patrin
Luis Lebron wrote: I have a development box that uses our company's Exchange server as an smtp host. All of a sudden, the php mail function has stopped working. I can, however, send a message using mutt. Here's the output of the maillog: Apr 12 10:38:51 localhost sendmail[11879]: i3CFckaV01187

[PHP] Re: The Smarty Aftermath

2004-04-12 Thread Justin Patrin
Justin French wrote: In the aftermath of the Smarty debate (which turned from intelligent to stupid very quickly), I decided to look closely at templating again (though not smarty), and I've found one are where these excel in comparison to PHP. Textpattern [1] is a gamma release CMS/blog tool

Re: [PHP] Preg_match_all problem

2004-04-12 Thread John Nichel
John W. Holmes wrote: damn... i left out the ending delimiter, too.. :) Chalk one up to Monday. ;) -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ _

Re: [PHP] Preg_match_all problem

2004-04-12 Thread John W. Holmes
From: "John W. Holmes" <[EMAIL PROTECTED]> > From: "Jeff McKeon" <[EMAIL PROTECTED]> > > > Can anyone see why I'm getting this error message: > > > > "Warning: No ending delimiter '^' found in > > C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126" > > > > From this line: > > > > if(preg_match_al

[PHP] Re: How do you handle device detection?

2004-04-12 Thread Jason Barnett
Yep, I'd agree with the above comments. If you're interested in one solution, check out HAWHAW, it has a proxy server for detecting/serving web pages via regular browsers and mobile devices. I haven't tried it in a long time though, so it might need updating but can still show you an example

RE: [PHP] varible

2004-04-12 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, April 12, 2004 8:32 AM said: > Is there a solution ( without open global ) , then send the value of > the varible of list.php to view.php ? you can put the variables in $_SESSION or pass them via the querystring. hth, chris. -- PHP G

Re: [PHP] Preg_match_all problem

2004-04-12 Thread John W. Holmes
From: "Jeff McKeon" <[EMAIL PROTECTED]> > Can anyone see why I'm getting this error message: > > "Warning: No ending delimiter '^' found in > C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126" > > From this line: > > if(preg_match_all("^([00])?.*$",$called,$found)) Because you do not have an e

php-general Digest 12 Apr 2004 16:03:02 -0000 Issue 2701

2004-04-12 Thread php-general-digest-help
php-general Digest 12 Apr 2004 16:03:02 - Issue 2701 Topics (messages 183140 through 183166): [Newbie Guide] For the benefit of new members 183140 by: Ma Siva Kumar Re: How do you handle device detection? 183141 by: DvDmanDT Re: using $_SESSION inside of user functions

[PHP] Re: commercial autoresponses (was "Re: [PHP] Wanted: ...")

2004-04-12 Thread Jason Barnett
David T-G wrote: Hi again, all -- ...and then David T-G said... % ... % Any recommendations? I was amazed to receive from this - an entirely-in-German post apparently wishing me a happy Easter - a note from Credit Suisse letting me know they'd process my request - a promise from Astral Se

[PHP] htmlentities, links, javascript

2004-04-12 Thread Beau Hartshorne
hi all, i have a script that calls a popup like this: Choices the & is there to make sure the page validates. the problem is that some browsers seem to be incorrectly translating this to: [REQUEST_URI] => /popup.php?name=Choices&product_id=15 instead of: [REQUEST_URI] => /popup.php?name=Choic

Re: [PHP] Preg_match_all problem

2004-04-12 Thread John Nichel
Jeff McKeon wrote: Can anyone see why I'm getting this error message: "Warning: No ending delimiter '^' found in C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126" From this line: if(preg_match_all("^([00])?.*$",$called,$found)) { substring($called,2,9); } I basi

[PHP] Preg_match_all problem

2004-04-12 Thread Jeff McKeon
Can anyone see why I'm getting this error message: "Warning: No ending delimiter '^' found in C:\Inetpub\wwwMIS_DEV\import_mvs.inc.php on line 126" >From this line: if(preg_match_all("^([00])?.*$",$called,$found)) { substring($called,2,9); } I basically have a ph

[PHP] Re: php 5 install

2004-04-12 Thread Jason Barnett
Andy B wrote: if i install php5 will it affect any of the php4.3.3 code that i have running at all...?? i want to install 5 and see what they have new going on and stuff but i dont want to crash my 4.3.3 running code any and where would i be able to read a list of stuff that is new in 5?? You _

[PHP] Problems with mail and php

2004-04-12 Thread Luis Lebron
I have a development box that uses our company's Exchange server as an smtp host. All of a sudden, the php mail function has stopped working. I can, however, send a message using mutt. Here's the output of the maillog: Apr 12 10:38:51 localhost sendmail[11879]: i3CFckaV011877: to=<[EMAIL PROTEC

[PHP] Re: commercial autoresponses (was "Re: [PHP] Wanted: ...")

2004-04-12 Thread David T-G
Hi again, all -- ...and then David T-G said... % ... % Any recommendations? I was amazed to receive from this - an entirely-in-German post apparently wishing me a happy Easter - a note from Credit Suisse letting me know they'd process my request - a promise from Astral Security and Financ

Re: [PHP] XML Parser Functions - problem interpreting an xml file

2004-04-12 Thread Chris Boget
> I send you a part of the XML file (- content), maybe you can tell me why it > cant be interpreted. It looks like it doesn't like the http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] varible

2004-04-12 Thread edwardspl
Dear You, Is there a solution ( without open global ) , then send the value of the varible of list.php to view.php ? list.php : $headers[$idx]"; ? } ?> view.php : "); ? echo(imap_fetchheader($link,$num)); ? echo(""); ? echo(imap_body($link,$num)); ? echo(""); ?> Thank for your help so much

[PHP] Wanted: login and CMS system with a twist

2004-04-12 Thread David T-G
Hi, all -- A client of mine wishes to create a web site which does more than just the typical CMS functions in that what you can see not only depends on whether or not you have an account but also how old your account is?). Of course, I'd prefer that it is written in PHP :-) Any recommendations?

Re: [PHP] requests per s with php and mysql queries

2004-04-12 Thread Merlin
Hello William, how do you messure your statistics? I would be interested in comparing those numbers. Do you use a special tool? Thanx Merlin William Lovaton wrote: I have never used any kind of stress tool in my web app. Right now it is in production under heavy load and some statistics are: A

[PHP] XML Parser Functions - problem interpreting an xml file

2004-04-12 Thread Kai Hackemesser
Hello, I have created my own handler following the examples in the manual. It works fine for XML files I created for myself. Now I tried one file given by someone else, but I get as result always following error: "junk after document element" in line 1, column 0. I send you a part of the XML file

[PHP] Re: PHP/MySQL difficulties on WindowsXP

2004-04-12 Thread Gabe
I don't know if this is the root of your problem or not, but I tried running PHP 4.3.5 on my Win2K box and it crashed a lot. I found out that if you have PHP configured to run as a SAPI module there are stability issues with that version (this bug has been reported). I think the CGI install shoul

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread William Lovaton
Hi, El lun, 12-04-2004 a las 09:27, John W. Holmes escribió: > From: "Ben" <[EMAIL PROTECTED]> > > > i got a big problem. I have a script which includes some other script i > > tried include, require and require once. The problem is, if i do a > > function call to a function in one of these inclu

Re: [PHP] ADOdb Operator question

2004-04-12 Thread Gabe
That helps, thanks! "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Gabe ([EMAIL PROTECTED]): > > If you're using ADOdb, what is the name, purpose, and function of this > > operator? > > > > -> > > > > e.g. $conn->Connect(false, 'scott', 'tiger', $oraname)

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread John W. Holmes
From: "Ben" <[EMAIL PROTECTED]> > i got a big problem. I have a script which includes some other script i > tried include, require and require once. The problem is, if i do a > function call to a function in one of these included files, the script > aborts but without any error. The strange thing

Re: [PHP] requests per s with php and mysql queries

2004-04-12 Thread William Lovaton
I have never used any kind of stress tool in my web app. Right now it is in production under heavy load and some statistics are: Authenticated users: 520 (this are the active sessions) Dynamic requests per second: 25 Average Max. Dynamic requests per second: 60 to 80 (these are peak values) When

Re: [PHP] requests per s with php and mysql queries

2004-04-12 Thread John W. Holmes
From: "Merlin" <[EMAIL PROTECTED]> > I am trying to stress my LAMP app with MS stress tool for web applications. > It simulates about 100 threads. > > It looks like the LAMP app is only able to handel about 6 requests per second :-( > Is this normal für php with database queries? Every applicatio

Re: [PHP] Using only PHP is it possible (multiple re-directs)?

2004-04-12 Thread John Nichel
Jay Blanchard wrote: I'd like to do something like this... a. click submit button in window A b. open window B with stuff c. have window A go to another location It was just a thought I had this morning while working with some of our intranet forms. THANKS! I don't think this is possible with jus

Re: [PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread John Nichel
Ben wrote: Hi Folks, i got a big problem. I have a script which includes some other script i tried include, require and require once. The problem is, if i do a function call to a function in one of these included files, the script aborts but without any error. The strange thing is, normally requir

[PHP] requests per s with php and mysql queries

2004-04-12 Thread Merlin
Hi there, I am trying to stress my LAMP app with MS stress tool for web applications. It simulates about 100 threads. It looks like the LAMP app is only able to handel about 6 requests per second :-( Is this normal für php with database queries? Thanx for any info, Merlin -- PHP General Mailing

[PHP] Using only PHP is it possible (multiple re-directs)?

2004-04-12 Thread Jay Blanchard
I'd like to do something like this... a. click submit button in window A b. open window B with stuff c. have window A go to another location It was just a thought I had this morning while working with some of our intranet forms. THANKS! -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] After calling a Function the Script aborts without any error :-\

2004-04-12 Thread Ben
Hi Folks, i got a big problem. I have a script which includes some other script i tried include, require and require once. The problem is, if i do a function call to a function in one of these included files, the script aborts but without any error. The strange thing is, normally require should gi

Re: [PHP] using $_SESSION inside of user functions

2004-04-12 Thread Jason Wong
On Monday 12 April 2004 08:23, Andy B wrote: > didnt know if it was possible to use $_SESSION vars in that function or any > user defined functions for that matter... Why didn't you waste one minute of your time to try it out? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source

[PHP] Re: How do you handle device detection?

2004-04-12 Thread DvDmanDT
But afaik that function is broken, and PHP isn't allowed to use that browscap.ini so.. Better make a list of user_agents that are devices.. -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Lukasz Karapuda" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Richard,

[PHP] [Newbie Guide] For the benefit of new members

2004-04-12 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP.  Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs