[PHP] remote desktop control

2002-10-01 Thread Rahul
Hello all, Is it possible to implement Web Based Remote Desktop Control using PHP or anyother webbased language? Aim is to share the remote(visitor's) system(desktop). If possible, plz let me know how to proceed. Advance thanks, -sadha

RE: [PHP] remote desktop control

2002-10-01 Thread Smith, Benjamin
Not really, no. It goes well beyond the capabilities of a server-side scripting language. There is a java implementation in VNC that allows this capability, though. -Original Message- From: Rahul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 4:53 PM To: [EMAIL PROTECTED]

[PHP] Re: PHP Include Help

2002-10-01 Thread Erwin
On line 6, I have the list of musicians in the song. Example (ignore the quotes): Doyle Lawson -- lead vocal; Dale Perry - - bass vocal Is there a way to make it so that, when I include line 6 in my PHP template, the ; will be replaced with a line break so I get one musician per line in the

[PHP] conditional statement problems

2002-10-01 Thread Pablo Oliva
$title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0; Can anyone tell me why this is not evaluating correctly (returning a value of 1) when $adTitle is an empty string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] conditional statement problems

2002-10-01 Thread Tom Rogers
Hi, Tuesday, October 1, 2002, 5:11:08 PM, you wrote: PO $title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0; PO Can anyone tell me why this is not evaluating correctly (returning a PO value of 1) when $adTitle is an empty string? It is right according to your expression, try

Re: [PHP] conditional statement problems

2002-10-01 Thread René Moonen
Pablo Oliva wrote: $title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0; Can anyone tell me why this is not evaluating correctly (returning a value of 1) when $adTitle is an empty string? I have no idea... but if you change your code to this, it works: $title_err = ($adTitle ==

Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Chris Hewitt
James Mackie wrote: On most of my servers that are running 4.2.2 (and before) I used 'killall -USR1 httpd' to reload my apache config. Now all servers that I install with 4.2.3 instead of 4.2.2 this shuts down apache instead of reloading the config files. (-HUP still works as it should). Base

Re: [PHP] conditional statement problems

2002-10-01 Thread René Moonen
René Moonen wrote: Pablo Oliva wrote: $title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0; Can anyone tell me why this is not evaluating correctly (returning a value of 1) when $adTitle is an empty string? I have no idea... but if you change your code to this, it works:

[PHP] imap problems

2002-10-01 Thread Chris Woollard
I am getting the following when i try to connect to an imap server with PHP 4.1.2 whatever i run gives this message when i try to connect to the imap server( i.e. i try connecting with IMP and a completely different webmail program) - server=localhost user=cmw

[PHP] Thanks!

2002-10-01 Thread Rick Beckman
Thanks, Erwin! -- Kyrie Eleison, Rick www.spiritsword.com/phpBB2/ Erwin wrote: On line 6, I have the list of musicians in the song. Example (ignore the quotes): Doyle Lawson -- lead vocal; Dale Perry - - bass vocal Is there a way to make it so that, when I include line 6 in my PHP

[PHP] IMAP Failing to connect

2002-10-01 Thread Chris Woollard
I am getting the following when i try to connect to an imap server with PHP 4.1.2 whatever i run gives this message when i try to connect to the imap server( i.e. i try connecting with IMP and a completely different webmail program) - server=localhost user=cmw

Re: [PHP] mail headers mail filtering

2002-10-01 Thread debbie_dyer
Hi Tom I did finally get my mails on this account (my personal mailbox) hours later but my main problem is with mails sent by scripts on my site (using the mailserver of my web provider) and other people complaining to me that they dont get mails sent from their websites to their ISP mailboxes

Re: [PHP] Multiple Tables Select

2002-10-01 Thread Chris Hewitt
Bob Irwin wrote: What I am getting is not accurated, it just seems to grab the one entry, which is correct, but there are 3 entries that fall within the range I am trying to select on. What are the other two records you think ought to be returned? I feel the sql statement probably gets the

Re: [PHP] remote desktop control

2002-10-01 Thread Rahul
Hello Smith, Thanks for your reply. Do you have any idea in implementing same with any other language? But VNC and all needs download process to use (control remote desktop). I'm asking abt web based(anywhere control- no need to download and install). if you have any idea in doing this, plz

[PHP] Install php under some other drive

2002-10-01 Thread Uma Shankari T.
Hello, I am trying to install php under some other drive like d: or e: ..it was installed properly without telling any error...but i couldn't run even the testing program ( ? phpinfo(); ? ) I have mentioned in the php.ini and apache conf file with d: where ever i have mentioned c: ..but

Re: [PHP] Re: mail headers filtering

2002-10-01 Thread Debbie Dyer
Hi Chris They are having the problem receiving the mail sent by the script not sending. They go to my site and generate a form mailer using their email ad They upload it to their webserver Then they email me saying that they are testing the mailer out on their site and it seems to work but they

Re: [PHP] GZip

2002-10-01 Thread Marek Kilimajer
Depends on your connection and CPU speed, slow connection - higher compression, slow CPU - lower compression, and vice versa Jay wrote: I have the output_handler = ob_gzhandler turned on in the php.ini file so it will automatically compress all my pages. I was just wondering what is a good

[PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
John W. Holmes propably said: Do you have a session_start() on the page? It looks like you have a trans_sid enabled. PHP will add that to all of your URLs automatically. Can you disable it in php.ini? Yes trans_sid is enabled and i have a session_start on the page. What is trans_sid doing

Re: [PHP] Reading a PHP-as-CGI script into another PHP script

2002-10-01 Thread Marek Kilimajer
Have you tried include( http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php ); Phil Powell wrote: I have the following URL: http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php This is a PHP script that is evaluated and compiled by a

SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
To reply to myself .) I disabled trans_sid on the actual site by using: ini_set('session.use_trans_sid',false); session_start(); But i still want to know what trans_sid does for me. What am i missing out on when not using it? - D, loves google -- PHP General Mailing List

Re: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Justin French
on 01/10/02 7:45 PM, Daniel Alsén ([EMAIL PROTECTED]) wrote: John W. Holmes propably said: Do you have a session_start() on the page? It looks like you have a trans_sid enabled. PHP will add that to all of your URLs automatically. Can you disable it in php.ini? Yes trans_sid is enabled

Re: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Chris Marschall
On Tue, 1 Oct 2002 12:06:04 +0200, Daniel Als‚n wrote: To reply to myself .) I disabled trans_sid on the actual site by using: ini_set('session.use_trans_sid',false); session_start(); But i still want to know what trans_sid does for me. What am i missing out on when not using it? - D, loves

[PHP] tricky gd question

2002-10-01 Thread electroteque
here is a tricky question, i have created a photo gallery script where i can edit the photo and gammacorrect the photos, at the moment i post the gamma value and refreshes the resized preview image , what i'd like to do is be able to have a before and after preview so half the image is the normal

SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
Justin French propably said: You'd loose session for those without cookies. The work around for this would be to hard-code the session ID to all URLs across your site for all pages you wish to carry a session through -- a real pain. Indeed. It HAS TO use a session ID from the first page

Re: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Justin French
In order to set and then check a cookie, you need to go through a page... so you'd have to set something in the URL like ?cookieset=1 anyway, in order to knwo you had set it, in order to check it. In other words, you'll need some guff in the URL, in order for it to all work, so why not let it be

SV: SV: [PHP] trans_sid? (was: SV: [PHP] Quickie)

2002-10-01 Thread Daniel Alsén
Justin French propably said: In order to set and then check a cookie, you need to go through a page... so you'd have to set something in the URL like ?cookieset=1 anyway, in order to knwo you had set it, in order to check it. In other words, you'll need some guff in the URL, in order for

[PHP] GET POST Problem

2002-10-01 Thread Francisco Vaucher
Hi (I'm sending this again becasue i didn't find a solution yet) I have a problem when i'm sending form data. The issue happens when I build a mysql query with some form input data. I send the info and I get 'n' results from mysql server. With this I build a list that has links to the records

Re: [PHP] Re: mail headers filtering

2002-10-01 Thread Debbie Dyer
Ah, so this is happening on another server. Both - mine and others. Does that server send emails OK other than by your script? Others - not known - the reason they use the generator (mostly) is because they dont know how to write the code themselves. But their webserver is running PHP and

RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie
Since I installed apache from source and not an RPM I do not have an rc file that the service command would use. I start apache in the rc.local file. -USR1 should be the 'NICE' way to reload the configuration files as per the apache documentation and has worked for many versions. Its just with

[PHP] PHP and JavaScript on a validation NIGHTMARE

2002-10-01 Thread Riccardo Sepe
Hi every1 I'm stucked with this page in which I would like to perform some check before submit and in the meantime I need to be able to change some content upon a choice at the top of the page. My first attempt was: The form has been submitted every time I change the option at the top of the

RE: [PHP] GET POST Problem

2002-10-01 Thread Francisco Vaucher
You mean using GET Method to retrieve the info ? I don't know. I'll have to check it. But is strange. I'm going to test it from a linux box with Konqueror, or Netscape to see if it's a browser problem or a server problem. Maybe the IIS send the info by it self. I'm going to try that, tks

RE: [PHP] conditional statement problems

2002-10-01 Thread Ford, Mike [LSS]
-Original Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 08:11 To: [EMAIL PROTECTED] Subject: [PHP] conditional statement problems $title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0; Can anyone tell me why this is not evaluating

RE: [PHP] Regular Expression

2002-10-01 Thread Ford, Mike [LSS]
-Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 02:21 To: 'Daren Cotter'; 'PHP General Mailing List' City: Just ' ?? I'd allow space and period, too, for Ft. Gordon for example. ^[-a-zA-Z0-9' .]+$ Well, there's an English west

Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Erwin
James Mackie wrote: Since I installed apache from source and not an RPM I do not have an rc file that the service command would use. I start apache in the rc.local file. -USR1 should be the 'NICE' way to reload the configuration files as per the apache documentation and has worked for many

Re: [PHP] PHP and JavaScript on a validation NIGHTMARE

2002-10-01 Thread skitum
Use globals variables instead hidden fields. Maybe it works. Peace Love skitum - Original Message - From: Riccardo Sepe [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 1:34 PM Subject: [PHP] PHP and JavaScript on a validation NIGHTMARE Hi every1

Re: [PHP] PHP and JavaScript on a validation NIGHTMARE

2002-10-01 Thread Riccardo Sepe
skitum wrote: Use globals variables instead hidden fields. Maybe it works. Peace Love skitum Cool mate I' ll let u know! bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] spell checker

2002-10-01 Thread Lowell Allen
I need to install a spell checker on a content management system that I wrote in PHP a few months ago. I've found a free, simple spell checker written in ASP that I can easily port to PHP, but the more daunting task for me is creating the JavaScript to implement the spell checker. I haven't been

Re: [PHP] spell checker

2002-10-01 Thread Justin French
Google it!! http://www.google.com/search?hl=enie=ISO-8859-1q=php+spell+checkerbtnG=Go ogle+Search Seems to be a few good starts on the first 10 results!! Justin French on 01/10/02 10:10 PM, Lowell Allen ([EMAIL PROTECTED]) wrote: I need to install a spell checker on a content management

RE: [PHP] PHP Include Help

2002-10-01 Thread Jay Blanchard
[snip] On line 6, I have the list of musicians in the song. Example (ignore the quotes): Doyle Lawson -- lead vocal; Dale Perry -- bass vocal Is there a way to make it so that, when I include line 6 in my PHP template, the ; will be replaced with a line break so I get one musician per line in the

Re: [PHP] How to get a total...

2002-10-01 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Try: http://www.php.net/manual/en/language.operators.arithmetic.php I think that'll get you started:) ~Paul On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote: Hi, I am really lost. I have spent an hour looking on the net and php.net for

Re: [PHP] How to get a total...

2002-10-01 Thread Justin French
lol or you could just try ? $value1 = 100; $value2 = 24; $total = $value1 + $value2; ? on 01/10/02 11:50 PM, Paul Nicholson ([EMAIL PROTECTED]) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Try: http://www.php.net/manual/en/language.operators.arithmetic.php I think

[PHP] $_SESSION only takes 1 character?

2002-10-01 Thread Tim Stoop
Hi there, I've got some strange behaviour here (at least, I can't explain it). I'm running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my little app and want to use the $_SESSION-variable to keep track of all my variabeles. Well, when I tell it $_SESSION[something-intelligent]

[PHP] apache2.x and php

2002-10-01 Thread Anil Garg
Hi, i came to know from someone that i can *not* make php a shared module in apache 2.x .It works only in 1.3x. If thats true can someone point me to some link saying the same. thanx and regards anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHPDoc?

2002-10-01 Thread Francis
Is their any comparable tool/util whatever to automaticly create documentation from your PHP Code (like java's JavaDoc)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_SESSION strange behaviour? (was: $_SESSION only takes 1 character?)

2002-10-01 Thread Tim Stoop
Hmm... subject wasn't what I wanted it to be :) Sorry about that. -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION only takes 1 character?

2002-10-01 Thread @ Edwin
Hello, On Tuesday, October 01, 2002 11:13 PM Subject: [PHP] $_SESSION only takes 1 character? Tim Stoop wrote: Hi there, I've got some strange behaviour here (at least, I can't explain it). I'm running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my little app and want to use

Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Rick Widmer
At 01:54 PM 10/1/02 +0200, Erwin wrote: James Mackie wrote: Since I installed apache from source and not an RPM I do not have an rc file that the service command would use. I start apache in the rc.local file. -USR1 should be the 'NICE' way to reload the configuration files as per the

Re: [PHP] PHPDoc?

2002-10-01 Thread Scott Houseman
www.phpdoc.de is one I know of. I'm not surewhat the current development activity is, but I think it's still in beta. The front page states 'Last update: 2000/12/03' - so I don't know what's happening there. Regards Scott On 10/1/2002 4:18 PM, Francis wrote: Is their any comparable tool/util

[PHP] Stopping apache from sending HTTP headers

2002-10-01 Thread Thiago Rafael Becker
Hi, I'm new to the news. How can I stop Apache from sending HTTP headers when I execute a script. Who handle the HTTP headers, is Apache or PHP engine? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 -

Re: [PHP] remote desktop control

2002-10-01 Thread Alex Moundalexis
Read the documentation for VNC, and read what Ben wrote. VNC - http://www.uk.research.att.com/vnc/ We have a Java viewer, which will run in any Java-capable browser. Read: no download required. Implementing in another language would be beyond the scope of this forum. - A On Tue, 1 Oct 2002,

Re: [PHP] apache2.x and php

2002-10-01 Thread Rasmus Lerdorf
You have it backwards. Apache 2.x can only have PHP as a shared module at this point, no static. -Rasmus On Tue, 1 Oct 2002, Anil Garg wrote: Hi, i came to know from someone that i can *not* make php a shared module in apache 2.x .It works only in 1.3x. If thats true can someone

Re: [PHP] remote desktop control

2002-10-01 Thread Bill Farrell
By the way, it works beautifully, either using the VNCViewer or through the java applet in a web browser. I do a lot of remote support and it's indispensible. Win2K seems to have some issues (frequent disconnects) but a refresh usually puts you right back. But on *nix systems, it's as stable

[PHP] Quick question.

2002-10-01 Thread Simon Angell
Hi everyone. I asked this a week or so ago but i am unsure if it got to the list, so here we go again. I am trying to get a remote file to be copied onto my own web server, I have looked at fopen() and fread() and fwrite() and get the general idea of each, but im wondering how to join the

Re: [PHP] Quick question.

2002-10-01 Thread Adam Voigt
Everything you need: http://www.php.net/ftp Adam Voigt [EMAIL PROTECTED] On Tue, 2002-10-01 at 11:50, Simon Angell wrote: Hi everyone. I asked this a week or so ago but i am unsure if it got to the list, so here we go again. I am trying to get a remote file to be copied onto my own web

[PHP] PHP with Oracle

2002-10-01 Thread Jadiel Flores
Hi guys, I'm having some problems here, I have to do an application using Oracle in Windows, I enabled the extension php_oci8.dll but I'm receiving this error: Warning: Unable to load dynamic library 'C:\PHP\extensions/php_oci8.dll' - Access is denied. in Unknown on line 0 The dll is in the

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
Simon Angell wrote: Hi everyone. I asked this a week or so ago but i am unsure if it got to the list, so here we go again. I am trying to get a remote file to be copied onto my own web server, I have looked at fopen() and fread() and fwrite() and get the general idea of each, but im

[PHP] PEAR DB problem

2002-10-01 Thread Peter Hall
Hi, I'm a bit new to mySQL. I got my program working fine locally, but it doesn't work when I upload it to my ISP. db.php and pear.php couldn't be found on my server when I first ran it. I uploaded them, but could that be part of my problem? The following code is returning DB Error: not found:

RE: [PHP] PHP with Oracle

2002-10-01 Thread Francisco Vaucher
Have you tried to check the access permissons ? Maybe the Oracle/PHP user/app doesn't have the right permissons in that directory. Regards, Francisco M. Vaucher Departamento IT Tyco / ADT Security Services Buenos Aires - Argentina mailto:[EMAIL PROTECTED] -Mensaje original- De:

[PHP] Works from the command line but NOT from PHP

2002-10-01 Thread DonPro
Does anyone have any experience with FULLTEXT indexed MySQL tables? I've created such a key. When I type the following from the MySQL command line, I get the desired records returned, i.e., a subset of my entire table: SELECT HSCode, UOM, EDescript FROM HSCodes WHERE MATCH(EDescript) AGAINST

Re: [PHP] Works from the command line but NOT from PHP

2002-10-01 Thread Chris Hewitt
DonPro wrote: $queryID = mysql_query(SELECT HSCode, UOM, EDescript FROM HSCodes WHERE MATCH(EDescript) AGAINST (' . $description . ') ORDER BY HSCode, UOM, EDescript); I don't see what is wrong but try echoing the text of the query itself and see if it contains what you think it does around

Re: [PHP] OOP class names

2002-10-01 Thread Debbie Dyer
From what you say you dont want get_class_name because this gives you the name of the class not the instance of it - which is really no different from asking how to get the name of any var. I dont really know why you would want to do this unless you are dynamically naming the objects. There is

[PHP] submitting a form to multiple places!!!

2002-10-01 Thread Henry
Hi All, I have a problem that I hope you can help me with. I'm using a third party shopping cart solution which is quite frankly naff. They bundle some autoresponders with it. Unfortunately the autoresponders do not work!. I want to find a temporary solution to this. The easiest way would be

[PHP] Re: tricky gd question

2002-10-01 Thread Mike Mannakee
Have a look at ImageCopy in the manual. HTH Mike Electroteque [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... here is a tricky question, i have created a photo gallery script where i can edit the photo and gammacorrect the photos, at the moment i post the

[PHP] reg exp and basename help?

2002-10-01 Thread Jennifer Swofford
I need help with some regular expression matching. Here is what I am doing. In one php file, I'm reading in the contents of an html file. Both reside on the same server. What I need to do is change all image tags that are like this: img src=directory1/directory2/directoryN/image.gif To

Re: [PHP] Quick question.

2002-10-01 Thread Simon Angell
i tried that ine and got this... Warning: fopen(/test/canberra.txt, w+) - No such file or directory in C:\Xitami\webpages\bomonster\test2.php on line 4 code.. ?php $rContents = implode( \n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); if( ($fp = fopen( '/test/canberra.txt', 'w+'

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
You're a Windows guy so probably you need the directory delimiters facing the other way :) Try this one (not tested AT ALL): $rContents = implode( \n, file( 'ftp://www.foo.bar/me/my/data.txt' ) ); if( ($fp = fopen( 'c:\path\to\directory\outfile.txt', 'wb+' )) !== false ) { fputs( $fp,

Re: [PHP] Quick question.

2002-10-01 Thread Simon Angell
i removed a / and it worked :) ?php $rContents = implode( \n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); if( ($fp = fopen( 'test/canberratest.txt', 'w+' )) !== false ) { fputs( $fp, $rContents ); fclose( $fp ); } ? Now the format of the content is no longer, can this be

[PHP] comparison of apache 1.3.x and 2.x

2002-10-01 Thread Anil Garg
Hi, Thanx for you mails. As per your suggestion i have decided to install apache 1.3.26(latest 1.3.x) with php-4.2.3. But, one thing still boggling me(and i couldnt find any documentaion about that) is that whats the major difference between apache1.3.x series and apache 2.x series...for what

[PHP] Re: comparison of apache 1.3.x and 2.x

2002-10-01 Thread Rasmus Lerdorf
Read the release notes and docs for each. Basically Apache 2 introduces an mpm architecture which allows you to plug in different protocol handlers that make use of different processing models for handling requests. Most notably all the mpms except for the pre-fork mpm are threaded, but since

Re: [PHP] Quick question.

2002-10-01 Thread Robert Cummings
Windows makes me cry... this will fix the problem... Change: $rContents = implode( \n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); To: $rContents = implode( \r\n, file( 'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) ); If that doesn't work: To: $rContents =

[PHP] Protecting files in PHP

2002-10-01 Thread stas
Hello, I have some files off of the web root which I'd like to be able to serve up to users (*.doc, *.xls). I know I can do this with header(), but how do I reference a file that's outside of the webroot? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SOAP slllloooowwwwww.

2002-10-01 Thread Seth Northrop
We've been playing around with SOAP from a J2EE framework with PHP as the client (via WSDL). Needless to say, it's SLOW. I think this has more to do with the Java/SOAP layer than anything to do with PHP but it's borderline unusable. That being said, would PHP+java integration be any faster -

[PHP] stuck n00b

2002-10-01 Thread Chris Nielsen
I have a simple form: form action=addUser.php method=post Enter Username: input type=text name=userNamebrbr input type=submit value=Submit /form Submits to addUser.php: ?php echo $HTTP_SERVER_VARS['userName']; ? Returns this error in my browser: Notice: Undefined index: userName in

[PHP] Re: Protecting files in PHP

2002-10-01 Thread J Smith
[EMAIL PROTECTED] wrote: Hello, I have some files off of the web root which I'd like to be able to serve up to users (*.doc, *.xls). I know I can do this with header(), but how do I reference a file that's outside of the webroot? Thanks! Try using filesystem links or the PHP function

[PHP] Confirm a Deletion

2002-10-01 Thread Roger Lewis
I know this should be very simple, but I just don't get it. I want to delete a record from a mysql table, but prior to deleting the record I want to receive an option to confirm the deletion. On page one (kb_areas_add.php) I have a form for inputting the field (area_todelete) for the record I

[PHP] Re: stuck n00b

2002-10-01 Thread Jome
?php echo $HTTP_SERVER_VARS['userName']; ? Make it $_POST['userName'] (or $HTTP_POST_VARS['userName'], but that's deprecated). Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] stuck n00b

2002-10-01 Thread Jay Blanchard
[snip] Submits to addUser.php: ?php echo $HTTP_SERVER_VARS['userName']; ? Returns this error in my browser: Notice: Undefined index: userName in E:\Inetpub\wwwroot\Test\addUser.php on line 11 Is there a setting in my php.ini file I need to change? register_globals is off, as that seems to be

RE: [PHP] Confirm a Deletion

2002-10-01 Thread Jay Blanchard
[snip] The way the code is written, the record gets deleted immediately upon clicking the submit button on page one. Is there some way I can keep the script on page two from executing until after I press the confirmation button? [/snip] One of two ways, an intermediary PHP page that asks Are

RE: [PHP] stuck n00b

2002-10-01 Thread Jay Blanchard
[snip] You mentioned everything but $_GET{'userName'] :^] [/snip] Ooops, typo! $_GET['userName'] HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stuck n00b

2002-10-01 Thread Chris Nielsen
My form is actually using method=post. And I did use $_POST. Can't remember if I tried $_GET, but if I'm using post would that even work? I'll give it a try later and let you know. Jay Blanchard [EMAIL PROTECTED] wrote in message

RE: [PHP] Confirm a Deletion

2002-10-01 Thread John W. Holmes
Just create a middle page that stores the value of $area_todelete in a hidden field. input type=hidden name=area_todelete value=?=htmlentities($_POST['area_todelete'])? You YES button would submit it to the delete code you already have, the NO confirmation button would send the user somewhere

RE: [PHP] stuck n00b

2002-10-01 Thread Jay Blanchard
[snip] My form is actually using method=post. And I did use $_POST. Can't remember if I tried $_GET, but if I'm using post would that even work? I'll give it a try later and let you know. [/snip] My bad! I looked at two e-mails from different folks and saw a GET in one, and a POST in another.

RE: [PHP] Protecting files in PHP

2002-10-01 Thread John W. Holmes
I have some files off of the web root which I'd like to be able to serve up to users (*.doc, *.xls). I know I can do this with header(), but how do I reference a file that's outside of the webroot? Thanks! You can use an absolute or relative path, just like any other reference. Send the

[PHP] session lifetime

2002-10-01 Thread Pablo Oliva
session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up Let's say it's set to 900. How is this counted, from the time of the session is initialized, or is this counter reset every time you go to a new page. Does this makes sense?

RE: [PHP] session lifetime

2002-10-01 Thread John W. Holmes
session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up Let's say it's set to 900. How is this counted, from the time of the session is initialized, or is this counter reset every time you go to a new page. Does this makes sense?

RE: [PHP] GET POST Problem

2002-10-01 Thread John W. Holmes
This question comes up a lot. It's a browser setting, if I remember right. IE decides it will not repost the data for you, so the page isn't rendered. You could use the GET method in your forms and this won't happen. ---John Holmes... -Original Message- From: Francisco Vaucher

[PHP] Call HTML from php

2002-10-01 Thread Anna Gyor
Hi, how can I call a html site from my php script? I want to redirect the user to different html site depends on the php script result. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Call HTML from php

2002-10-01 Thread Adam Williams
www.php.net/header Adam On Tue, 1 Oct 2002, Anna Gyor wrote: Hi, how can I call a html site from my php script? I want to redirect the user to different html site depends on the php script result. Thanks! -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Call HTML from php

2002-10-01 Thread John W. Holmes
how can I call a html site from my php script? I want to redirect the user to different html site depends on the php script result. Header(Location: http://www.domain.com/page.html;); ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Server Running Slow

2002-10-01 Thread Jay
Hello- I'm running Engarde Linux v1.2 (a secure version of Linux) and it has PHP 4.0.6 installed on it as default (if asked I will explain why it's such an old version). When I run Apache's ab command the results I am getting in return are not very good. Almost 10 seconds for a script to run.

Re: [PHP] Call HTML from php

2002-10-01 Thread John Wards
header(location:http://yourstuff;); Do this before any output to the user. eg echos or displaying html John - Original Message - From: Anna Gyor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 8:40 PM Subject: [PHP] Call HTML from php Hi, how can I call a

RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie
Yes.. Apachectl just calls the commands that I send manually.. Which is why I don't use it. Apachectl graceful just recalls 'kill -USR1 PID'. -Original Message- From: Rick Widmer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 7:35 AM To: Erwin; [EMAIL PROTECTED] Subject:

RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie
You are correct.. Installing from source would not delete the file.. But.. I install servers from scratch.. When installing RedHat I only install the base packages that are required for it to boot up and maintain the server. All server programs (Apache, MySQL, FTP, SSH, Etc), critial libraries

RE: [PHP] Confirm a Deletion

2002-10-01 Thread Roger Lewis
Jay Blanchard wrote: One of two ways, an intermediary PHP page that asks Are you sure? while carrying the information forward, or a JavaScript pop-up confirmation dialog box. HTH! Jay And John Holmes wrote: Just create a middle page that stores the value of $area_todelete in a hidden

[PHP] checkbox objects returning false for isset() when submitted via a form.

2002-10-01 Thread DonPro
Hi, I have a form that submits to itself via: form name=hsform method=POST action=?=$_SERVER['PHP_SELF'] ? Within my form, I have some checkbox objects. If I check them and submit my form, isset(variable) returns true. However, if I do not check them and submit my form, isset(variable)

[PHP] eregi_replace / preg_match_all

2002-10-01 Thread Jennifer Swofford
Why does this work: $contents = eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg), \blah.gif, $contents); But this does not: preg_match_all((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg), $contents, $matches); for ($i=0; $i count($matches[0]); $i++) { echo matched: .$matches[0][$i].\n } I get this error:

Re: [PHP] checkbox objects returning false for isset() when submittedvia a form.

2002-10-01 Thread Chris Wesley
On Tue, 1 Oct 2002, DonPro wrote: Within my form, I have some checkbox objects. If I check them and submit my form, isset(variable) returns true. However, if I do not check them and submit my form, isset(variable) returns false. I am confused as I though that isset() returns true if the

Re: [PHP] Call HTML from php

2002-10-01 Thread Anna Gyor
First thanks a lot, but I have the following code: ? $database=PH; mysql_connect(localhost,test,test); @mysql_select_db($database); $query = SELECT ph_user.FIRST_NAME, FROM ph_user WHERE (ph_user.FIRST_NAME = \test\ ); $result=mysql_query($query); $num=mysql_num_rows($result); mysql_close();

Re: [PHP] eregi_replace / preg_match_all

2002-10-01 Thread Kevin Stone
Unknown modifier definitely has to do with the regular expression. Don't regex's need a beginning and ending delimeter apart from the quote? /(\)(.(\/))*[A-Z0-9_\/-]+(.gif|.jpg)/ Maybe that's it? But if so I dunno why the other one would be working. -Kevin - Original Message - From:

[PHP] Re: submitting a form to multiple places!!!

2002-10-01 Thread Henry
No takers? Is this such a difficult problem? Please help. Henry Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, I have a problem that I hope you can help me with. I'm using a third party shopping cart solution which is quite frankly naff.

  1   2   3   >