[PHP] Re: php script can't self reference

2012-06-20 Thread Maciek Sokolewicz
On 20-06-2012 15:55, Tim Dunphy wrote: Hello list, I just wanted to bounce a slight issue that I'm having off you regarding self referencing a php script. Moving from the 'sendemail.htm' page where a form is used to the 'sendemail.php' page that is in the form action works fine! But if you rel

Re: [PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-06 Thread 9el
On Fri, Mar 6, 2009 at 4:18 PM, Jsbeginner wrote: > Thankyou for the help, > > I will contact the script maintainer to ask him to work on this problem for > future updates, and for the moment I've commented out the line that > specifies the length. > I suppose that it won't cause any problems with

Re: [PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-06 Thread Jsbeginner
Thankyou for the help, I will contact the script maintainer to ask him to work on this problem for future updates, and for the moment I've commented out the line that specifies the length. I suppose that it won't cause any problems with files that are sent through this script that are not gzip

[PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-05 Thread Nisse Engström
On Thu, 5 Mar 2009 19:14:20 +0100, Nisse Engström wrote: > On Thu, 05 Mar 2009 15:45:35 +0100, Jsbeginner wrote: > >> > header('Content-Type: application/x-javascript'); >> header('Content-Length: '.filesize('test.js')); >> readfile('test.js'); >> ?> >> >> test.js is only a few lines long, and i

[PHP] Re: PHP script lag (5 secs) when declaring mime type.

2009-03-05 Thread Nisse Engström
On Thu, 05 Mar 2009 15:45:35 +0100, Jsbeginner wrote: > header('Content-Type: application/x-javascript'); > header('Content-Length: '.filesize('test.js')); > readfile('test.js'); > ?> > > test.js is only a few lines long, and if I remove the header content > type the file loads instantaniously

[PHP] Re: Php Script Stumped!

2006-04-06 Thread M. Sokolewicz
marvin hunkin wrote: Hi. doing this script for an assignment, and got it basically working. the only problems are: 1. wen i load the user form, the focus goes to the login button, and not the first form field. did try putting one it, did not like it. so how do i do this? is there a basic dom

[PHP] Re: Php Script Stumped!

2006-04-06 Thread David Robley
marvin hunkin wrote: > Hi. > doing this script for an assignment, and got it basically working. > the only problems are: > > > 1. wen i load the user form, the focus goes to the login button, and not > the first form field. > did try putting one it, did not like it. > so how do i do this? That'

[PHP] Re: Php Script Stumped!

2006-04-06 Thread David Robley
marvin hunkin wrote: > Hi. > doing this script for an assignment, and got it basically working. > the only problems are: > > > 1. wen i load the user form, the focus goes to the login button, and not > the first form field. > did try putting one it, did not like it. > so how do i do this? That'

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Thanks for the help John...That's more information than I had before.. I will keep working at it.. Zed "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zedleon wrote: > > Thank you -- brain freeze.. > > > > I am getting emply results from print_r > > > > Array > > ( >

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: Thank you -- brain freeze.. I am getting emply results from print_r Array ( ) Don't know what to tell you then. I tried you script on a cgi box here, and the post variables came thru fine. Only difference I noticed is that in your path to the script, you're running thru a

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Thank you -- brain freeze.. I am getting emply results from print_r Array ( ) "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zedleon wrote: > > I am getting a parse error, unexpected T_VARIABLE > > > > you would think this would be easy. > > Did you put the sem

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: I am getting a parse error, unexpected T_VARIABLE you would think this would be easy. Did you put the semi-colon at the end of the line? zed "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] zedleon wrote: here is the php code i am using as a c

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
I am getting a parse error, unexpected T_VARIABLE you would think this would be easy. zed "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zedleon wrote: > > here is the php code i am using as a cgi in the cgi-bin > > This form executes fine, just doesn't get the v

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: here is the php code i am using as a cgi in the cgi-bin This form executes fine, just doesn't get the variables for the form. simple test form at: http://www.passeycorp.com/gnupg.php thanks for the feedback. zed ---

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
here is the php code i am using as a cgi in the cgi-bin This form executes fine, just doesn't get the variables for the form. simple test form at: http://www.passeycorp.com/gnupg.php thanks for the feedback. zed --- #!/usr/lo

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread Adi
check to make sure you are allowing globals to be accessed in your php.ini.make sure you are accessing the post/get vars correctly On 1/16/06, John Nichel <[EMAIL PROTECTED]> wrote: > > zedleon wrote: > > Let me ask this... > > What is the proper way to configure a php script to run as a cgi?

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread John Nichel
zedleon wrote: Let me ask this... What is the proper way to configure a php script to run as a cgi? What items need to be included (i.e. header info, content type, etc ) for the cgi to find the variables sent from the html form? anybody? POST/GET variables will work without any added 'tweaking

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Let me ask this... What is the proper way to configure a php script to run as a cgi? What items need to be included (i.e. header info, content type, etc ) for the cgi to find the variables sent from the html form? anybody? zed ""zedleon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECT

[PHP] Re: PHP script problem (with MySQL)

2005-04-19 Thread Satyam
May I sugest that you assemble the SQL statement in a different way? With such a big conditional, it will slow down the Sql server. if ($tit != '') $condition .= "and tit1 like '%$tit%'"; and so on for each search field ... $sql = "Select *, substring(loc1, 1, 3) as loc1 from openart_tabl

[PHP] Re: PHP script that fills forms ?

2003-11-26 Thread Bogdan Stancescu
Check out curl, I think it does this. If it doesn't, you have one last shot to keep it simple by sending the data via GET instead of POST. If that fails too, you're practically going to have to emulate a browser. That wouldn't be SO tricky, sending a few POST variables is not *such* a big deal.

[PHP] Re: PHP script for mysql queries

2003-11-04 Thread pete M
web client http://www.phpmyadmin.net/home_page/ ;-) Joffrey L Leevy wrote: Hi: Going thru some teething problems. Does anyone have a simple PHP program that will enable mysql queries to be executed and displayed using internet explorer or another medium? thanks -- PHP General Mailing List (http

[PHP] Re: PHP Script Output as HTML Mail

2003-10-29 Thread Manuel Lemos
Hello, On 10/29/2003 11:05 PM, Ebestel wrote: I want to send HTML output from a php script as HTML E-Mail "ONLINE" Like Send this page by email feature. You may just capture the HTML of the pages, maybe with ob_start() and ob_getcontents() functions and then send the HTML in an e-mail messages.

[PHP] Re: php script execution by linux automated task

2003-03-21 Thread Brian McGarvie
look up cron "Nenad Djordjevic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have some web application which is on some rented server. I have not > root privilege just FTP access to application web folder. OS is Linux, > web server Apache/1.3.27 and PHP ve

[PHP] Re: PHP Script Speed

2002-07-09 Thread Richard Lynch
>but I am wondering if it is at the cost of a slower page loading. The reason >I think this is whenever I would like to display a variable I have to put in >a script tag like . I might have as many as 20 of >these on a page. Every time doesn't PHP have to start again and parse out >this informatio

[PHP] Re: PHP Script Speed

2002-07-08 Thread Christopher J. Crane
I use to do it that way, but i like to be able to see it in Dreamweaver for more control, not so much Frontpage, I don't know how to use front page. I hope someone helps me figure this out. "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I understand w

[PHP] Re: PHP Script Speed

2002-07-08 Thread Peter
I understand what you're getting at, I'm not sure of the answer though. I know it would stop you using FrontPage or Dreamweaver but if for example you had Index page"; print "Current: $_Current"; print "Percent Change: $_ChangePercent"; print ""; ?> You'd eliminate that problem. "Christopher Cra

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-08 Thread Tim Luoma
olinux wrote: >A little off your request, but may be of interest: > >Top 21 PHP Programming Mistakes from Zend.com >http://www.zend.com/zend/art/mistake1.php >http://www.zend.com/zend/art/mistake2.php > Hrm... I wonder if someone @ Zend has messed up their template for s The titles are coming

Re: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-07 Thread olinux
A little off your request, but may be of interest: Top 21 PHP Programming Mistakes from Zend.com http://www.zend.com/zend/art/mistake1.php http://www.zend.com/zend/art/mistake2.php olinux > On 07/04/2002 02:24 AM, Jean-Christian Imbeault > wrote: > > I am trying to figure out what are some Bad

Re: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-04 Thread Jean-Christian Imbeault
Sp wrote: > I thought it was a good site. I was reading up on the security bugs found > and now I know what not to do. True. It's just too specific. In order for me to figure out what to do I need to read every advisory to see what it is about and how to prevent against that particular probl

RE: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-03 Thread SP
I thought it was a good site. I was reading up on the security bugs found and now I know what not to do. -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP: Script Security: Best coding

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-03 Thread Jean-Christian Imbeault
Manuel Lemos wrote: > > Check out http://www.phpadvisory.com/ . An ok site but only three articles, of which two are on security. One article is too general and the other too specific :) Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-03 Thread Manuel Lemos
Hello, On 07/04/2002 02:24 AM, Jean-Christian Imbeault wrote: > I am trying to figure out what are some Bad Things (tm) when it comes to > secure PHP programming and how to avoid them. > > I am looking for a kind of "best practices for security" list for PHP > programming. Do's and Don't, or a

[PHP] Re: PHP script

2002-05-25 Thread Alex Shi
For file uploading: http://www.php.net/manual/en/features.file-upload.php For chmod: http://www.php.net/manual/en/function.chmod.php For the third question: php has no restriction where php scripts have to be put in. so just put the script where you want to upload file. Hope these can help. Al