Apache Server configuration support - Re: php_self-- works on the server, but not locally php/apache setup issue?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2007 > Re: php_self-- works on the server, but not locally php/apache setup issue?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: php_self-- works on the server, but not locally php/apache setup issue?
shimmyshack

2007-04-26, 7:21 am

On Apr 24, 8:31 pm, G...@steric.net wrote:
> On Apr 23, 9:28 pm, shimmyshack <matt.fa...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Actually, in the httpd.conf file, in
> <IfModule dir_module>, the directoryIndex exists, but had it in the
> order of
> index.html index.php index.htm </IfModule>
>
> I have changed the order of the index files to see if that makes a
> difference, though, if it does,
> I'd have a problem, if I was using index.htm/l, which I don't :o)
> I'm also not using index.php to do this process. It is called,
> cu.php. Just calls the code upon a submit button.
>
> Tested--- no difference. Also, localhost takes forever to process
> the page in Firefox while on the server, it doesn't take any time at
> all.
> It processes a portion, then sits, then finishes, without displaying
> the text i want it to. In fact, the isset($sub1) doesn't seem to
> register at the press of a button which I assigned a name of, 'sub1'.
>
> Works fine on the server.
> (I have an if statement If (isset($sub1)) { linked to the submit
> button push, and it fires on the server side, but not on the localhost
> side--
> Could it be a configuration setting or something different about my
> new combination of Apache mysql php that I don't know about ?????
>
>
>
>
> I do usually front with <?php...?> Has <?= gone away with a
> certain version?? If so, I might have to change some old code.
>
> thanks


apologies if this posts twice, my last post doesnt seem to have
appeared.

change all <?= to <?php echo
order of arguments for directoryindex doesnt matter, so youre fine
there.
globals is now defunct so use $_POST['var'] rather than $var when
using forms with <input name="var" type="text"/> .....
if you are on windows, check the apache website for specific
directives that might need to be enabled if your server appears to
hang sometimes: Win32DisableAcceptEx etc...
you appear to have moved from php4 to 5, i recommend checking the php
website for all changes and best practise, sessions etc... while you
are at it, review security on your scripts to avoid XSS, mail and sql
injection and other nasties.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com