Re: [PHP] Continue processing after redirect?

2002-08-16 Thread Rasmus Lerdorf
It has absolutely nothing to do with the browser. PHP is a server-side language. See http://www.php.net/manual/en/features.connection-handling.php -Rasmus On Sat, 17 Aug 2002, lallous wrote: > Hello Rasmus, > > Now that the topic has been brought, > > How much long will the script keep ru

Re: [PHP] Continue processing after redirect?

2002-08-16 Thread lallous
Hello Rasmus, Now that the topic has been brought, How much long will the script keep running after the redirection request has been made? Doesn't that behaviour depend from browser to browser ? Thanks, Elias "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EM

Re: [PHP] Re: Bulk Email [solution found!]

2002-08-16 Thread Paul Roberts
i tried it using the 5th parameter with -odd and the mail got qued but i also need to set [EMAIL PROTECTED] (so i get those bounces) but i got <[EMAIL PROTECTED] -odd> for the return path in the email. i then tried it with the -odd first and it qued the mail but didn't set the return path, i

Re: [PHP] session lost when back button hit?

2002-08-16 Thread Justin French
on 17/08/02 4:01 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: >> One (hackish) solution to this is to cause the entrance page to >> immediately redirect to itself using either PHP's header function, or a >> meta refresh. Your goal here is to make it so that hitting back from a >> secon

[PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jean-Christian Imbeault
Jerry wrote: > > I kind of hate it when sites do this, but you could have the first page > reload itself if it doesn't have an SID, and add an SID to itself. This > way, if they use the back button, the first "first page" they come to > has the SID. But if they it the back button again they w

Re: [PHP] session lost when back button hit?

2002-08-16 Thread Jean-Christian Imbeault
Alok K. Dhir wrote: > > By any chance, is page one the "entrance" page to your application? Yes. > I.e. is there a session id in either the query string of the page URL or > was there one passed to it via a POST? Nope. Is the is the entrance so there is no nothing passed to it. Users just ente

Re: [PHP] Sessions...

2002-08-16 Thread Tom Rogers
Hi, Friday, August 16, 2002, 4:13:39 AM, you wrote: KSM> Am I mistaken to assume that a Session is automatically KSM> destroyed if a Window Browser is closed? The session as such is not destroyed only the cookie used to id it if you are using cookies. If The SID is being passed in the url and th

[PHP] Re: Protocol on handling empty checkbox values

2002-08-16 Thread Jean-Christian Imbeault
Dear David you haev just hijacked my thread. When you want to post a message please do not just hit the reply button and just change the Subject line. If you do that you message will appear in someone else's message thread. It really ruins it for people who use mail/news readers with threads

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread Justin French
on 17/08/02 3:19 PM, David Yee ([EMAIL PROTECTED]) wrote: > Great idea! Actually after I posted the question I thought of the same > thing :-). This is probably the most elegant way. I am curious though why > PHP doesn't just create the variable anyways and just assign it a null value > if the

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread David Yee
> I'd use an array on some way, but the other option is to see if the var is > set, else set it to N > > if(isset($_POST['my_checkbox_var'])) { > $_POST['my_checkbox_var'] = 'N'; > } > > > Probably what I'd do is create an array for the possible checkbox values, > then USE THAT ARRAY to build

Re: [PHP] Continue processing after redirect?

2002-08-16 Thread Rasmus Lerdorf
Sure, in fact, that happens by default unless you explicitly exit or try to output something. On Sat, 17 Aug 2002, Jason Morehouse wrote: > Any ideas if it's possible to keep a script running for a short time after a > client has been redireced? > > i.e: > header("Location: http://php.net";); >

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Manuel Lemos
Hello, On 08/16/2002 11:22 PM, Jason Wong wrote: > I run a qmail server. When I send out newsletters, I run a query and extract > the mailing addresses I need. Then I build a .qmail file (similar to > sendmail's alias file), and finally I send mail to that .qmail (alias). The > mail is queued

[PHP] Re: Continue processing after redirect?

2002-08-16 Thread Jason Morehouse
Sorry... that seems to work by default... what-dadda ya know! "Jason Morehouse" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Any ideas if it's possible to keep a script running for a short time after a > client has been redireced? > > i.e: > header("Locatio

Re: [PHP] Newbie: Update Multiple Records

2002-08-16 Thread Justin French
Hi, Print out your data onto a master page, with checkboxes. The checkboxes should be an array, with the ID (or some other unique identifier) of each row. The array would look something like: $approve['1'] => 'Y'; $approve['2'] => 'Y'; $approve['3'] => 'Y'; ... $approve['10'] => 'Y'; The arr

[PHP] Continue processing after redirect?

2002-08-16 Thread Jason Morehouse
Any ideas if it's possible to keep a script running for a short time after a client has been redireced? i.e: http://php.net";); # contunue running... mail("[EMAIL PROTECTED]", "Hey", "Hi!"); ?> Using Redhat Linux, Apache & PHP 4.2.2. Much thanks! -Jason -- PHP General Mailing List (http://w

[PHP] Newbie: Update Multiple Records

2002-08-16 Thread Lists
Hi everyone, I'm a newbie. I've been searching google and php.net trying to find information on how to set up a Master Page to do multiple records updating, but have found very little. I have a table with 10 rows of data from MySQL and I'd like the user to check the "Approve" checkbox and for a

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Justin French
on 17/08/02 12:22 PM, Jason Wong ([EMAIL PROTECTED]) wrote: > It's a bit harsh to say it's not a real solution just because it relies on > some specifics. There's no harm in taking advantage of your situation and use > whatever resources you can to complete your job. True. Point taken :) > I

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Justin French
on 17/08/02 12:08 PM, Daren Cotter ([EMAIL PROTECTED]) wrote: > I highly doubt there are very many websites that need > to send 50,000+ emails daily that are still existing > on shared servers. The problem would still likely be there for mailing lists of 2000 people. I just don't want people to

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Jason Wong
On Saturday 17 August 2002 09:45, Justin French wrote: > I wouldn't call this a real solution, since it relies heavily on specific > server requirements and config changes. It's a bit harsh to say it's not a real solution just because it relies on some specifics. There's no harm in taking advan

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Manuel Lemos
Hello, On 08/16/2002 10:45 PM, Justin French wrote: > I wouldn't call this a real solution, since it relies heavily on specific > server requirements and config changes. Simple fact is that a LOT of PHP > programmers are on shared servers, and their hosts would NOT want 50,000 > emails queued up

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Justin French
I wouldn't call this a real solution, since it relies heavily on specific server requirements and config changes. Simple fact is that a LOT of PHP programmers are on shared servers, and their hosts would NOT want 50,000 emails queued up on disk. No way!! I'd expect doing this frequently on a sh

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Jason Wong
On Saturday 17 August 2002 04:35, Kelly Meeks wrote: > Hi folks, > > I'm learning shell scripting via linux, and have written a script that > creates the core files necessary for a users website from a master set of > files. > > Works from the shell just fine (bash makethesite.sh username pathtopu

[PHP] Re: Bulk Email [solution found!]

2002-08-16 Thread Manuel Lemos
Hello, On 08/16/2002 05:37 PM, Daren Cotter wrote: > First, a recap of my problem: > > I need to send personalized emails to my member list > on a daily basis. I use PHP to query the MySQL > database, and loop through the results using the > mail() function. Problem: very slow, browser/php times

Re: [PHP] secure files acess

2002-08-16 Thread Justin French
Pass the file through a PHP script, using header() to set the mime-type, then passing the file through. Pretty sure there's examples (and documentation of the problems with IE)in the manual: php.net/header Justin French on 17/08/02 6:36 AM, David Buerer ([EMAIL PROTECTED]) wrote: > I have a

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread Justin French
I'd use an array on some way, but the other option is to see if the var is set, else set it to N if(isset($_POST['my_checkbox_var'])) { $_POST['my_checkbox_var'] = 'N'; } Probably what I'd do is create an array for the possible checkbox values, then USE THAT ARRAY to build the form. Then I

Re: [PHP] Moving Files - Stupid Error

2002-08-16 Thread Justin French
The function move_uploaded_file() is what you want, not copy(). http://php.net/move_uploaded_file Of course, there are full working examples in the manual, found doing a simple whole-site search on "file upload". http://www.php.net/manual/en/features.file-upload.php Justin French on 17/08

[PHP] Re: HTML-based mail with PHP

2002-08-16 Thread Manuel Lemos
Hello, On 08/16/2002 12:54 PM, Liam Gibbs wrote: > I'm having trouble with some HTML-based mail with PHP. > It's not the regular thing where I can't get it to use > the tags instead of just printing them. That part's > fine; it comes out HTML-based. > > My problem is the way it's not accessing a

[PHP] Re: array and a class

2002-08-16 Thread Pafo
solved it thx anyway "Pafo" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i got my nice looking class like this: > > class Relic { > var $RelicName; > var $RelicType; > var $RelicRealm; > var $RelicOwner; > > function PrintInfo() { >print "$t

[PHP] silly arrays

2002-08-16 Thread Pafo
i got a php-script like this, just to make sure that it works before i try to implement it: debug '***' OUTPUT '**' i = 0; $this->i < count($this->RelicName); $this->i++) { print "$this->RelicName[$this->i] : $this->R

Re: [PHP] Replace

2002-08-16 Thread Jason Reid
str_replace is your friend in this situation Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "Alexander Lindstedt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 6:05 PM Subject: [PHP] Replace > If i want to find just

[PHP] Re: Replace

2002-08-16 Thread Bogdan Stancescu
Have you tried searching string functions on http://www.php.net ? Bogdan Alexander Lindstedt wrote: > If i want to find just a word in a variable, and then replace just that > specific word... is there any simple way to do this? > > -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Replace

2002-08-16 Thread Alexander Lindstedt
If i want to find just a word in a variable, and then replace just that specific word... is there any simple way to do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] Trying to input a webpage - need help

2002-08-16 Thread Markus Fischer
On Fri, Aug 16, 2002 at 08:02:17PM -0400, Ken Meyer wrote : > I am trying to write a script that will read a page from > another website. So long at the page is accessed via a "GET", > this is no problem; I just need to open the page using fopen, > readfile or file_get_contents. The problem is th

[PHP] Re: ###PLEASE HELP### - delete a line from a text file

2002-08-16 Thread Bogdan Stancescu
Hi Nick! First off, *please* read a netiquette guide before posting -- I hate seeing a conational of mine posting a message like yours ("###PLEASE HELP###" and "I am waiting for an answer" are extremely rude - you're not paying for support on this mailing list, so you can't demand anything).

[PHP] Re: Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-16 Thread Justin Garrett
http://www.php.net/ChangeLog-4.php As of version 4.2 register_globals defaults to off. You can turn it on in your php.ini file, but it is recommended to use the new super global arrays instead. Justin "James Daily" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED].

Re: [PHP] Upgraded to PHP 4.2.2 and completely lost all GET and POSTvariables

2002-08-16 Thread Rasmus Lerdorf
Did you bother reading the documentation and release notes before upgrading? Edit your php.ini file and turn register_globals on. -Rasmus On Fri, 16 Aug 2002, james daily wrote: > > RE: phpsecurityadmin-2002-07-24.zip and PHP 4.2.2 > > PLATFORM: win 98 > > BACKGROUND: in order to use the above

[PHP] Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-16 Thread james daily
RE: phpsecurityadmin-2002-07-24.zip and PHP 4.2.2 PLATFORM: win 98 BACKGROUND: in order to use the above classes i had to upgrade to PHP 4.2.2 PROBLEM: when i upgraded to 4.2.2, all my old scripts lost the GET or POST info being passed. COMMENTS: everything except the phpsecurityadmin classes

[PHP] odbc sql php

2002-08-16 Thread Saci
This question is more on odbc sql than on php, since I'm sure everthing is working on php side I have a php form who fills on ODBC database ( Visual Foxpro) , everthing is working except with one detail, I have a text area field on my form and when the user fill this area with to many characters

[PHP] ###PLEASE HELP### - delete a line from a text file

2002-08-16 Thread radio x
i have a text file with some of this elements: name:adress:telephone:email:password i want to delete this line using for identifier the 'name' only. // $sterge_user="name"; this is the value sent by form witch will be the identifier // $path="some_of_my_files"; the file used here allready set

[PHP] HELP! php.ini file not read (was Php.ini on Solaris?)

2002-08-16 Thread Randall Perry
Ok, to answer my own question... Apparently php.ini doesn't get read until Apache is restarted. Restarting apache did the trick. -- Randy Perry sysTame Mac Consulting/Sales phn 772.589.6449 mobile email[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.n

[PHP] Re: progress bar for uploading files

2002-08-16 Thread Peter J. Schoenster
On 16 Aug 2002 at 12:38, Philip Hallstrom wrote: > This wouldn't work for uploading files however since the long part of > the process is the act of uploading the file and until that completes > your "save.php" (or whatever) isn't called. > > So in regards to file uploading it has to be done wit

Re: [PHP] select distinct mysql

2002-08-16 Thread Analysis & Solutions
On Thu, Aug 15, 2002 at 01:12:59PM +0300, kale wrote: > > SELECT *, DISTINCT name FROM history ORDER date DESC, time DESC LIMIT 10 > > but this not work. how can I do this? I use a mysql server. That's because your query string syntax is all messed up. Put a mysql_error() call in your script a

RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Daniel Masson
I ... Had to do something like that recently .. Sending files through ftp_put(); i just send the file .. And when user clicks 'Send' button ... A pop-up appears and gets the file size of the remote file and comparing with de local size you can build a progress bar This pop-up uses the tag th

Re: [PHP] problem with mail()

2002-08-16 Thread Analysis & Solutions
On Wed, Aug 14, 2002 at 10:04:46AM -0700, Gui Guy wrote: > > ...: SYSERR(nobody): Can't create transcript file ./xfg7E9Jlr03988: > Permission denied > : SYSERR(nobody): Cannot create ./dfg7E9Jlr03988: Permission denied > > Does it mean that php is trying to send mail from user nobody? Good

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
David Buerer wrote: > > Thankyou Robert, THat is a great and easy way to do it. > > What if I need to initiate a download to the user? If you set the mime type properly the browser will automatically make it a download versus displaying it. Cheers, Rob. -- .-. | Robert Cumming

RE: [PHP] secure files acess

2002-08-16 Thread David Buerer
Thankyou Robert, THat is a great and easy way to do it. What if I need to initiate a download to the user? -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:06 PM To: David Buerer Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] secure files ac

RE: [PHP] secure files acess

2002-08-16 Thread Daniel Masson
Hi there !!! I had the same problem once ... This will save you !! http://www.zend.com/zend/trick/tricks-august-2001.php I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, i

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
Robert Cummings wrote: > > David Buerer wrote: > > > > I have a bunch of files which need to be kept secure. I need to allow a user > > access to them them based on a criteria which I can programmatically > > determine. > > > > My question, is how can I allow the user to download or view only one

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
David Buerer wrote: > > I have a bunch of files which need to be kept secure. I need to allow a user > access to them them based on a criteria which I can programmatically > determine. > > My question, is how can I allow the user to download or view only one file > on my computer without allowth

[PHP] secure files acess

2002-08-16 Thread David Buerer
I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my computer without allowthem to just enter the URL into their

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
Kelly Meeks wrote: > > Hi Robert, > > Thanks so much for the prompt reply. > > Actually, I'm not trying to execute a php script, I'm trying to execute a > shell (bash) script. > > This works at the command line: > bash makethesite.sh param1 param2 param3 > > This doesn't work via php > $bashr

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
Hi Robert, Thanks so much for the prompt reply. Actually, I'm not trying to execute a php script, I'm trying to execute a shell (bash) script. This works at the command line: bash makethesite.sh param1 param2 param3 This doesn't work via php $bashresult=shell_exec('bash makethesite.sh param1 p

RE: [PHP] question about executing a bash shell script...

2002-08-16 Thread James E Hicks III
try something like: $bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles pathtogetfiles'); if that doesn't work can you use the system() function instead? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
Kelly Meeks wrote: > > Hi folks, > > I'm learning shell scripting via linux, and have written a script that creates the >core files necessary for a users website from a master set of files. > > Works from the shell just fine (bash makethesite.sh username pathtoputfiles >pathtogetfiles) > > T

[PHP] Bulk Email [solution found!]

2002-08-16 Thread Daren Cotter
I have found a solution to my bulk email problem. I'm posting my solution simply because I spent nearly a year finding it, and I KNOW there's many other people in my same situation. First, a recap of my problem: I need to send personalized emails to my member list on a daily basis. I use PHP to

[PHP] question about executing a bash shell script...

2002-08-16 Thread Kelly Meeks
Hi folks, I'm learning shell scripting via linux, and have written a script that creates the core files necessary for a users website from a master set of files. Works from the shell just fine (bash makethesite.sh username pathtoputfiles pathtogetfiles) Trying to execute this via php, and i

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Edwin @
Oops! Sorry! I meant to say "apostrophe" and not "single quotes"... And sorry 'bout this additional post... Regards, - E >Actually, I DID read the articles before I replied. > >If you read it again, the basic problem is not about any "extended >SQLServer functionality"--it's about how ASP wor

[PHP] Re: progress bar for uploading files

2002-08-16 Thread Philip Hallstrom
This wouldn't work for uploading files however since the long part of the process is the act of uploading the file and until that completes your "save.php" (or whatever) isn't called. So in regards to file uploading it has to be done with Javascript. What you do below is great for scripts that j

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Edwin @
Actually, I DID read the articles before I replied. If you read it again, the basic problem is not about any "extended SQLServer functionality"--it's about how ASP works AND how the database server was configured AND how Window$ works. Sorry, but the attacks mentioned CANNOT be done on any of

[PHP] AllTheWeb.com design contest

2002-08-16 Thread Andrei Zmievski
I wanted to pass along the details of a contest that I thought you might find interesting. AlltheWeb is the public search engine of Fast Search & Transfer and currently it is one of the largest search engines in the industry with over 2.1 billion pages in the web index. Recently, AlltheWeb.com a

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Randy Johnson
I didn't see that, what a waste of paper Randy - Original Message - From: "Edwin @" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 1:14 PM Subject: Re: [PHP] SQL Injection/Data Balidation > Yeah, I'm scared... > > Please excuse me b

[PHP] Extending PHP 4.0

2002-08-16 Thread MET
Does anyone know how to build the first_module example shown at Zend (http://www.zend.com/apidoc/) ? I'd like to start coding extensions (preferably not directly into the PHP binary because of my hosting situation) but I just don't understand the explanation of compiling them. Any one know how?

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread James Green
On Fri, 2002-08-16 at 19:24, David Yee wrote: > Hi all. For a universal form script I'm writing I want to store a 'Y' in a > table field if a checkbox is checked and an 'N' if it's not. The problem is > that when the form is posted if the checkbox is not checked the checkbox > variable is not pa

[PHP] Re: tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread B.C. Lance
hm... this should work, notice the double quotes echo preg_replace('/(.+?)(\..+?)/e', '"\1"."1"."\2"', $fn); Lallous wrote: > Oh well, > > I could have solved it w/ too many other methods, but how can I escape the > \{occurence} as in my case? > -- PHP General Mailing List (http://www.php.

[PHP] Protocol on handling empty checkbox values

2002-08-16 Thread David Yee
Hi all. For a universal form script I'm writing I want to store a 'Y' in a table field if a checkbox is checked and an 'N' if it's not. The problem is that when the form is posted if the checkbox is not checked the checkbox variable is not passed. E.g. If the checkbox is checked, I get $_P

[PHP] test

2002-08-16 Thread Dan McCullough
test = "Theres no such thing as a problem unless the servers are on fire!" __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (

Re: [PHP] Apache2

2002-08-16 Thread Bob Lockie
>Upgraded to Apache2, and now most of my php scripts won't work. No error msg >att all, just that nothing happens. > >Guess I missed some standard security setting, got any clues to this newbie? What does phpinfo() say? What does "httpd -l" say? -- PHP General Mailing List (http://www.php.

Re: [PHP] Apache2

2002-08-16 Thread Rasmus Lerdorf
It will be a while before Apache 2 is properly supported. Switch back to Apache 1.3.x for now. We are working on it and PHP 4.3 should be significantly better with Apache 2. -Rasmus On Fri, 16 Aug 2002, Björn Hilliges wrote: > Upgraded to Apache2, and now most of my php scripts won't work. No

[PHP] array and a class

2002-08-16 Thread Pafo
i got my nice looking class like this: RelicName : $this->RelicType : $this->RelicRealm : $this->RelicOwner"; } function CheckForPrint() { if ($this->RelicName == "" || $this->RelicType == "" || $this->RelicRealm == "" || $this->RelicOwner == "") { return false; } else { return

Re: [PHP] Re: php and classes

2002-08-16 Thread Pafo
the problem is that i dont have access to php.ini :/ on a shared webhotel :( regards patrick "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Friday 16 August 2002 11:40, Pafo wrote: > > nm, now it works,, forgot the silly () > > Always set

[PHP] Apache2

2002-08-16 Thread Björn Hilliges
Upgraded to Apache2, and now most of my php scripts won't work. No error msg att all, just that nothing happens. Guess I missed some standard security setting, got any clues to this newbie? Thanks Björn Hilliges, Sweden. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Keyword & exact phrase search

2002-08-16 Thread Jason Wong
On Thursday 15 August 2002 23:50, David Buerer wrote: > Because to my knowledge the limitation of a TEXT field is 64K. I need to > store entire documents in the database which far exceed the 64K limitation. > Given that criteria, the only option is to use blob fields which have an > upper limit of

[PHP] Re: Invoking sendmail with PHP

2002-08-16 Thread Gui Guy
On a unix box, you can supply the arguments to the sendmail command in php.ini file, when you specify the sendmail path. "Daren Cotter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > To recap, my problem is: > > I need some mailings sent immediately (confirmat

Re: [PHP] SQL Injection/Data Balidation

2002-08-16 Thread Edwin @
Yeah, I'm scared... Please excuse me but may I say that it seems like you've sent some wrong info to the wrong mailing list? I use PHP NOT ASP, I use MySQL or PostgreSQL or Oracle but NOT M$ SQL Server. And IIS? Of course, some people use it (perhaps) because of some unavoidable circumstances

RE: [PHP] session lost when back button hit?

2002-08-16 Thread Alok K. Dhir
By any chance, is page one the "entrance" page to your application? I.e. is there a session id in either the query string of the page URL or was there one passed to it via a POST? Without cookies enabled, there is no way to allow users to use the back button to go back to the entrance page while

RE: [PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Good idea but remember some people turn off javascript and cookies :) Make your site as accessible as you can, using Jerry's suggestion is a good idea and then accept some people will be bent on not being able to use your site by disabling as much functionality in their browsers as they can or th

Re: [PHP] progress bar for uploading files

2002-08-16 Thread Peter J. Schoenster
On 16 Aug 2002 at 23:40, electroteque wrote: > hi guys i was wondering if there was anyway to have a progress bar for > uploading images ? TMTOWDI, but here is a way I did something similar. I was spidering remote sites and to get user's data and store in a database and the user could not conti

[PHP] Moving Files - Stupid Error

2002-08-16 Thread Steve Keller
Hey all, I need a little help with moving a file on the server after an upload. Our company site is hosted, so I don't have full access to the configuration files, but I can do a PHP_info dump if you need more clarification. Using 4.0.1pl2. What I'm doing is uploading a file from a form, and

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 22:12, lallous wrote: > Actually the interpreter will evaluate the '\1'. '1' . '\2' into one string > before passing it to preg_replace > So it will yield up as I originally wrote it, and it won't work. Hmm, you're right. The interpreter is smarter than I thought :-/ --

RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Jay Blanchard
I had a rather weird thought, but it is Friday after all :^] How about setting a small IFRAME in the upload diaog box? Then you could do a couple of things; a.) Place a small animated GIF in the IFRAME that moves left to right or from side to side until the upload completes. 2.) Use the GD libr

Re: [PHP] Credit Card Transactions and Micropayment

2002-08-16 Thread Analysis & Solutions
Sascha: On Wed, Aug 14, 2002 at 04:06:39PM +0200, Sascha Braun wrote: > > Are there some ways of using a micropayment system together with PHP? What do you mean by "micropayment?" Paying for small fees? How small are you talking about? > Maybe something where Customers can see the Amount o

RE: [PHP] Re: progress bar for uploading files

2002-08-16 Thread Brian V Bonini
Bet this would be perfect for combining Flash and PHP. > -Original Message- > From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] > Sent: Friday, August 16, 2002 11:57 AM > To: electroteque > Cc: [EMAIL PROTECTED] > Subject: [PHP] Re: progress bar for uploading files > > > You're best bet w

[PHP] Re: sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jerry
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jean-Christian Imbeault) wrote: > How can I get around the problem of not having the SID in the URL of the > first page to my site the user comes to? It kind of a chicken-or-the-egg > problem ... I kind of hate it when sites do this, but you c

Re: [PHP] Variable

2002-08-16 Thread Analysis & Solutions
On Wed, Aug 14, 2002 at 08:23:18AM +, Remon Redika wrote: > > > > > > $Namak = $namasa; > $Namak = $Namak.$namadu; > $Namak = $Namak.$namati; Is that REALLY what you want to do? There are no spaces between the names. Try: $Namak = "$namsa $namadu $namati"; But, t

Re: [PHP] Session variable in query

2002-08-16 Thread Justin French
not entirely sure what you mean, but perhaps this is what you're after??? $sql = "SELECT * FROM tablename WHERE username='{$_SESSION['userid']}'"; Justin French on 17/08/02 2:08 AM, Christian Ista ([EMAIL PROTECTED]) wrote: > Hello, > > Is it possible to use a session variable in a query (my

[PHP] PHP Java Extension

2002-08-16 Thread Girish Nath
Hi I wanted to learn some new stuff and experiment with the PHP Java extension, what are the possibilities, what's cool about it, what are you guys using it for and where can i find some tutorials for it ? Had a look at php.net but can't find much info suitable for a newbie to this particular ex

[PHP] Session variable in query

2002-08-16 Thread Christian Ista
Hello, Is it possible to use a session variable in a query (mysql_query) without passé by an temp variable ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: progress bar for uploading files

2002-08-16 Thread Philip Hallstrom
You're best bet would be to make an animated gif that looks like a progres bar (or twirling icon or whatever). Then when the users hits submit, "turn it on"... in the same way you do image rollovers, etc... Then it will spin until the form is submitted... On Fri, 16 Aug 2002, electroteque wrote

[PHP] HTML-based mail with PHP

2002-08-16 Thread Liam Gibbs
Now, this may be more of an e-mail question than a PHP question. For that, I apologize. I'm having trouble with some HTML-based mail with PHP. It's not the regular thing where I can't get it to use the tags instead of just printing them. That part's fine; it comes out HTML-based. My problem is t

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread Bogdan Stancescu
Bogdan Stancescu wrote: > Add a line reading > stocks: | /usr/bin/php /path/to/your/script.php Sorry, it should be stocks: "| /usr/bin/php /path/to/your/script.php" Also, first make sure php works from command line and check its location. Bogdan -- PHP General Mailing List (http://www.php.ne

[PHP] Re: using PHP on forms submitted to other sites - HELP

2002-08-16 Thread Kondwani Spike Mkandawire
"Dan McCullough" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > We have a client that has a form that submits to a payment processor to handle the cc processing. > The visitor gets what he wants and then comes to a verification page on our clients site. He >

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread Bogdan Stancescu
I'm not very proficient with e-mail configuration, so if someone finds I'm saying something wrong, don't think twice before correcting it. AFAIK, you can create an alias typically in /etc/aliases - or /etc/sendmail/aliases, as I've heard for newer versions of sendmail. In any case, the file ha

Re: [PHP] session lost when back button hit?

2002-08-16 Thread Jean-Christian Imbeault
Daniel Masson wrote: > > make ser youre using session_start() before performing any action on > sessions, also make sure you´re registering properly the variables. Did you see my PS at the end of my question? > PS I have session.auto_start ON and enabled trans-sid I don't need seesion_start()

[PHP] sessions: what to do when browser won't accept cookies?

2002-08-16 Thread Jean-Christian Imbeault
I'm finding myself in a strange situation. I am trying to build a a web site that will use sessions and work even if a user decides not to accept cookies. So far the site design is working fine by using the trans-sid functionality of PHP. But I have this on case where things break down. 1- us

RE: [PHP] session lost when back button hit?

2002-08-16 Thread Daniel Masson
HI make ser youre using session_start() before performing any action on sessions, also make sure you´re registering properly the variables. -Mensaje original- De: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Enviado el: viernes, 16 de agosto de 2002 9:43 Para: [EMAIL PROTECTED]

[PHP] SQL Injection/Data Balidation

2002-08-16 Thread Dennis Gearon
Please CC me as I'm on digest: -- Are there any libraries for data validation available? If one reads papers like these: http://www.nextgenss.com/papers/advanced_sql_injection.pdf http://www.nextgenss.com/papers/more_advanced_sql_injection.pdf It beco

RE: [PHP] OO code and private functions

2002-08-16 Thread Cal Evans
not yet (Zend engine 2.0 I believe has this) Currently the convention is to name private functions _* (variables the same) This denotes to other coders that you intended this to be a private function. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- F

[PHP] using PHP on forms submitted to other sites - HELP

2002-08-16 Thread Dan McCullough
We have a client that has a form that submits to a payment processor to handle the cc processing. The visitor gets what he wants and then comes to a verification page on our clients site. He wants to buy it so he clicks the submit button and hes gone, to the payment processors site. We want

[PHP] session lost when back button hit?

2002-08-16 Thread Jean-Christian Imbeault
I have two pages, page one links to page two via a form button. The browser does not accept cookies. On page two I create a session variable with: $_SESSION["id"] = 1; But if I hit the back button to go back to page one $_SESSION["id"] is not set. If I hit the reload button on page one it is

Re: [PHP] OO code and private functions

2002-08-16 Thread Joseph W. Goff
Not currently, but this will be added in the Zend2 engine. You can find out about this on the Zend website. - Original Message - From: "Richard Black" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 9:24 AM Subject: [PHP] OO code and private functio

  1   2   >