I've set up dev and prod webservers. Users can go into the dev webserver
content and edit it. The content is in a mysql database. I have a button
on the webpage that says push content live. When the button is pushed I
want it to run a php script that will copy the dev mysql table data into
the prod
The solution to using .shtml files from within
your PHP scripts is as simple as:
include ("somefile.shtml");
Very handy if you have header, sidebar, footer templates
setup using SSI.
-Jim
-Original Message-----
From: Gronquist, Jim M
Sent: Wednesday, August 27, 2003 11:13 AM
I have an open source php script to add items to a mysql database.
I want to wrap the page using a .shtml file
Currently, the .shtml file is:
http://bursar.indiana.edu/gotcha/index.shtml
The php script is:
http://bursar.indiana.edu/gotcha/g_add_gotcha.php
I believe that I should be
Ugh
I replace one double quotes with two single quotes and it works like a
charm.
Thanks very much!
-Original Message-
From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 4:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: funcky parse error message due to {
I added one term to a listing
-
if ( $follow_up == ") {
$error=true;
}
and now I'm getting a parse error
Ugh
I can't see anything that is causing this.
The script worked before.
Any idea where I might start to debug?
When
Ivo,
Thanks, but if I leave off this line then I get an error when I try and
view my pages.
Jim
-Original Message-
From: Ivo Fokkema [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: php path statement appears on my webpages
If yo
I include #!/usr/local/bin/php4 at the top of my
Php files so that it knows where to find php.
Unfortunately the path appears in my web pages.
Is there a way for me to turn this off?
Is it a setting in Apache or is it something that I change in
My php files.
#!/usr/local/bin/php4
--
Great!
I actually had 2 dates - using your suggestion as follows worked:
$mailed=3D$row["mailed"];
$payment=3D$row["payment"];
$ID=3D$row["ID"];
$Timestamp=3Dstrtotime($row[mailed]);
$mailedf=3Ddate("F d, Y",$Timestamp);
$Timestamp=3Dstrtotime($row[payment]);
$paymentf=3Ddate("F d, Y",
My script currently works; printing the date that it extracts from mysql
table.
It prints the date as:
2004-01-29
$mailed=$row["mailed"];
$payment=$row["payment"];
$ID=$row["ID"];
echo "$mailed$payment";
I'm trying to change the format so that the date appears as:
January 29, 20
9 matches
Mail list logo