Try adding a trailing slash to the URL, and seeing if it works. If so,
then try adding the apache configuration directive:
UseCanonicalName off
In either httpd.conf or an .htaccess file, and try accessing without the
trailing slash. I had a similar issue and adding that fixed it.
Andy
Loll wrot
supports php, and I don't want to make it into a php file
because its a big html file and I just need this little script on it. Why
cannot I embed php in html files?
"Andy Ladouceur" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
It's already been mentioned,
It's already been mentioned, but you do need to ensure you are using a
.php extension on the file. Also, forgive me if this has already been
covered, but are you sure the server even supports PHP?
Try creating a new file with:
And save it as something.php, check and see if it returns a table fu
When in doubt, view source. :) As John has already mentioned, you need
text between the two tags to actually display in the browser. You
probably would've seen your mistake a lot sooner if you viewed the page
source when you first tried it out.
Also, you can save yourself some time using PHP's
And these are UNIX timestamps? Odd. I can't see date giving the wrong
output, could you post the timestamp you're using?
Thanks
Andy
Damian Brown wrote:
I have tried that, but it gives a date in the future
and all records have the same time
the code is
and it gives an output of
Monday 18th
The second parameter of PHP's date() function takes a timestamp as an
argument, this may be what you're looking for?
Andy
Damian Brown wrote:
I need to output a date and time that shows more clearly than just
outputting the timestamp
what is the correct way to go about it ?
I have looked at get
Verdon Vaillancourt wrote:
Hi, being somewhat of a noob, I hope I'm using the right language to phrase
this question...
In a project I am working with, I have a multi-dimensional array in session
when a user logs in. Visually, it looks something like this...
OBJ_user
username => value
isAdm
Ash.. wrote:
Hi,
I am looking for a comprehensive handholder tutorial, that introduces the
various aspects
of PHP, step by step and let's u see the big picture.
I have come across tons of PHP learnware which is like "how to do this" and
"how to do that".
But that still doesn't introduce the langu
Ash.. wrote:
Hello,
Thanks John (Holmes) for the clue on form-param-reading. Simple one, but
shows I got a lot of basics to learn yet.
Here I have another doubt I cant resist asking help for.
What are the various ways of forwarding to another page. I tried header()..
based on an example I found
Foo, and Bar, dont mean anything.
They are simply example $vars for php...
I was confused on this for a while, too...
-Andy
Seb Frost <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why is it that every example uses foo and bar. In my head I put these
> togethe
I'd like to use the disable_functions command from the php.ini file to
disable certain functions for certain directories. I know it has to do with
the httpd.conf file, but have no clue on how to go about doing it, can
someone please post an example for me?With the directory I want things
disabled
PHP is a processed before the output is sent to the browser, so a dynamic
change like what you want with it isn't possible. And unfortunately,I dont
know any JScript, or VBScript, so I can't help ya there..
=/
-Andy
Traci P Sumpter <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAI
gt; - Original Message -----
> From: Andy Ladouceur <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 27, 2001 8:35 PM
> Subject: [PHP] Re: Need help on putting variable into
>
>
> > Well,think about it like this:
> > If you did replace $comp
Well,think about it like this:
If you did replace $comp name with ABC Company, this is what you'd get:
Not quite right, eh? This will solve your problem:
print "";
=)
-Andy
Hugh Danaher <[EMAIL PROTECTED]> wrote in message
001201c12f71$75a45b40$c1fcb3d1@win95">news:001201c12f71$75a45b40$c1fcb
Thanks!
-Andy
Jason Murray <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am wondering if there is a command or function to get a
> > list of all the current '$HTTP_POST_VARS["variable"]' variables?
> > Or, a user-created way... Any helps appreciated, thank
Ah, its that simple?
-feels likea bit of an idiot-
Thanks for the help!
Tim <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> while (list($k,$v) = each($HTTP_POST_VARS)) {
> echo "$k = $v";
> }
>
> On Mon, 2001-08-27
Hello all,
I am wondering if there is a command or function to get a list of all the
current '$HTTP_POST_VARS["variable"]' variables? Or, a user-created way...
Any helps appreciated, thanks!
-Andy L.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Hi Jack,
The 'black box' you see is a newline, which can be removed by doing this:
$string=str_replace("\n","",$string);
$string=str_replace("\r","",$string);
That will replace \n (The newlines) and \r (The returns) with nothing,
getting rid of your problem. Hope this helps,
-Andy
Jack <[EMAIL PR
I love cookies.
I hate it when they dont work.
I was previously accessing cookies by just using their name (I had
global_vars turned on), I recently decided to turn it off(for security
reasons) and I can no longer even set cookies?
Yes,cookies are enabled and everything..in fact,I never even touch
dir basis.
> See the manual..
>
> -Rasmus
>
> On Sat, 25 Aug 2001, Andy Ladouceur wrote:
>
> > Does anyone know if its possible to use disable_functions on only
specified
> > directories, and not all?
> > Hopefully its possible..
> >
> >
> >
&
Does anyone know if its possible to use disable_functions on only specified
directories, and not all?
Hopefully its possible..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list adm
Thanks!
Helped a lot.
-Andy
Jeff Oien <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You can read the notes lower on the page here to get a good idea:
> http://www.php.net/manual/en/function.print.php
> Jeff Oien
>
> > I am fairly new to PHP Scripting, and I am
http://www.php.net/manual/en/function.addslashes.php
That should work fine.
-Andy
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have a form that submits data to a database, works great until
> someome
> > puts in an apostrophe in the comments area...how do
I am fairly new to PHP Scripting, and I am learning from a book.
Throughout the book, print is used as the basic command to output
text/variables.. yet I see almost everyone in here uses echo. Might I ask
what the differences of the two are, and if there are any benefits of using
one over the othe
Hello,
I am wondering if there is any way to limit the disable_feature command to
certain directories, and if so, could I please see an example?
Thanks,
Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
I recently realized users are able to access my base document root using
opendir() and readdir()... I find this to be a big security risk.. I am
wondering if anyone knows of any ways to limit it so that the user can only
usephp on his level,and not be able to access any server files. I hope that
26 matches
Mail list logo