Xmg wrote:
"I know that use of PHP with Apache 2.x.x is discouraged."
Wow, thanks for the tip. I'm using Apache 2 and have had no problems,
but I've only done very basic things with MySQL and PHP so far. I hope I
don't have to switch to Apache 1.3 when I get in a little deeper!
--
PHP General
Jason Wong wrote:
On Wednesday 11 February 2004 16:42, John Taylor-Johnston wrote:
Helpful, isn't he. If you can't find it in your config file, post again and
I'll show you what i have in mine. John
It's hardly helpful asking your tailor about a problem with your leaky roof is
it?
It is if my
John Taylor-Johnston wrote:
Helpful, isn't he. If you can't find it in your config file, post again and I'll show
you what i have in mine.
John
Jason Wong wrote:
This has nothing to do with PHP. Please ask on the relevant list/forum.
Thanks. Actually, I have another question: Can someone recomme
I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL
tables and PHP. Things are generally going OK, but I'm still ironing out
a few kinks. I suspect some of my problems might be related to an error
message I get when I click on a Database in phpMyAdmin:
"Error: The additiona
John W. Holmes wrote:
Freedomware wrote:
EMS lists the following:
Short Date: M/d/
Long Date: , dd,
Day followed by month, followed by another day, then year???
That format means something like "Friday, May 5, 2004"
I thought it was supposed to be year first, f
John W. Holmes wrote:
Freedomware wrote:
When I view my data in phpMyAdmin, all I see in that column is NULL.
When I preview it in a webpage, nothing displays at all. If I change
it to NOT NULL, I see -00-00 in every cell.
Here's a row of text from the CSV file I imported into my
I'm using PHP to display a MySQL table. I've got everything working fine
except the date function.
I designated the first two fields VARCHAR. Those columns display just
fine when I preview my web page, as do all the other columns except the
third. I designated that one DATE. (The field name is
I posted three questions at
http://geowebworks.geobop.org/test/php/notes.php, if anyone is willing
to take a look.
You could reply on this list or via the e-mail address on the URL above.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
Hm... I haven't found Kumar's style sheet switcher post yet, but if
you say it can't be done, I'll take your word for it.
Thanks for the tip.
Raditha Dissanayake wrote:
Hi,
This is explained in Kumar's mail which was sent out a little while ago.
If you didn't see it an older version is arc
I have a JavaScript style sheet switcher that works quite nicely, but I
want to make a MULTI-style switcher; one that lets you switch various
items independently of one another.
It sounds like it can be done with either PHP or JavaScript, each with
its own advantages. The biggest disadvantage w
Alex King wrote:
(on MikeRoweSoft.com)...
In case you didn't know, Mike isn't an only child. He has a brother and a
sister, and his brother's name is Mac. Mac is 24, but when he was 19, he
started a media consulting company. Guess who he recieved a letter from.
Actually, Macromedia was very nice
Wow, thanks for the tips. That makes life a lot simpler!
Mike Ford wrote:
Another way you could go, as this is mostly HTML with some PHP values thrown
in, is to write it as such -- then all your newlines are present exactly as
they appear. This would look something like:
By the way, the test
I've been using JavaScript style switchers combined with "alternate
style sheets," allowing users to control the appearance of my web pages.
However, I recently read that you can make style switchers with PHP -
which are allegedly superior to JavaScript style sheets. Then I found a
PHP style sw
Got it. It took me a while to home in on the period.
Thanks for the tips!
Pavel Jartsev wrote:
"newline"-character should be inside double quotes ("\n").
For example:
instead of:
echo '\r\n';
use:
echo ''."\n";
Hope that helps. :)
--
PHP General Mailing List (http://www.php.net/)
To uns
ents are
enclosed in single quotes (' '), rather than double quotes (" ")?
I pasted my entire include page code below. Thanks!
$todayDate = date("m-d-Y");
echo 'Freedomware > ' . $myname . '';
echo '';
echo '';
echo '
*
HEAD SECTION (included page; ../../includes/ref/head.php)
$todayDate = date("m-d-Y");
echo 'Freedomware > ' . $myname . '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
e
I'm not sure if we're on the same wavelength, but this might help you.
I recently installed Apache, PHP and MySQL as part of a preconfigured
package from "Apache Friends" (XAMPP). The entire suite was installed at
C:/xampp, and the Apache folder is at C:/xampp/apache/
At first, I couldn't find
Stuart wrote:
As for the argument that he's only 17, what the hell does that matter?
His motivation was clearly to cash in on either the similarity or the
publicity from the action MS would take. The lucky fscker got the latter.
Gee, like Microsoft is such a tough sucker to hook. Frankly, I do
Jason Wong wrote:
> It makes even more sense to ask on the phpmyadmin list/forum?
I thought this was a general purpose PHP list and some people who
frequent this list had used phpMyAdmin. My mistake.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
I'm getting closer. I find that I can work around a lot of problems by
creating tables in EMS MySQL Manager, which also has a neat feature for
importing data from CSV files.
Has anyone done this with EMS MysQL Manager before? If so, would you
mind looking at http://geowebworks.geobop.org/mysql/
Aidan Lister wrote:
How about checking the phpmyadmin documentation, where this is all clearly
explained?
I thought it made more sense to see if anyone who's been through this
before knows of a quick fix - before I dive into SEVEN "documentation"
links, none of which strike me as particularly "c
Giz wrote:
I looked at your page. First off, you should add a primary key column that
has no information in it. Just make this a number(4) called state_id.
OK, I gave it another try, but I don't see where I type in "4."
When I clicked Save, I got an error message: "This is not a number!" but
i
I'm having some roblems creating a table with phpMyAdmin. I think
they're pretty minor problems, mostly relating to numerals.
Would someone be willing to look at my notes at
http://geowebworks.geobop.org/mysql/3.php - especially the last picture
- and suggest what I need to do to fix it?
It's
It looks like all the databases I view with phpMyAdmin feature the
following error message:
"The additional Features for working with linked Tables have been
deactivated. To find out why click here."
When I click the link, I get this:
Database mysql running on localhost
$cfg['Servers'][$i]['p
Ryan A wrote:
Hey all,
heres something really interesting about that lovely company called
microsoft...(heard of them?)
Anyway, a 17yr old kid by the name of Mike Rowe opens up a webdesigning
company and names
it MikeRoweSoft . . . a couple of days later he gets an email from microsoft's
lawyers t
Jay Blanchard wrote,
"Ooops, sorry. Google for 'import CSV into MySQL' or hit the MySQL web
site"
Humberto Silva wrote:
You can pick the headers from the speadsheets to construct the tables,
export from the spreadsheets to .csv and import it to the new tables
Wow, thanks for the tips. I wasn't ev
I'm wading through some of the MySQL literature (whew!), but I'm looking
for the quickest way to create some tables and get them online.
I just downloaded a software program called EMS MySQL Manager, which
appears to work well with phpMyAdmin and makes some functions even
easier. Especially use
Sheez, maybe you fixed it already...
I typed in the username and password, but did NOT delete http on line
133. I saved the page, but didn't restart MySQL, and it still works - I
think.
I haven't created a new database yet, but it's inviting me to!
Thanks for the tip.
--
PHP General Mailing L
Martin Luethi wrote:
check if the user you defined in phpMyAdmin/config.inc.php
($cfg['Servers'][$i]['user'] = ???)
has the right to create new databases
(db: mysql / table: user / field: Create_priv='Y')
restart the mysql-server after altering the database mysql
H... I'm a little confused. I
I've finally got both PHP and MySQL up and running, and I've learned how
to create new users and databases (at least the basics).
But I was told I should add a password to root/localhost, and that's
been a major pain in the butt. First, it knocked out phpMyAdmin. Then I
learned how to edit a fi
Robert wrote:
I personally use print " href=\"/css/continentcode/$myregion.css\" rel=\"stylesheet\"
type=\"text/css\">" for things like that, no having to join the
information together, the server does the work for me.
Thanks for the tip. (My errands were cancelled, so I'm still here!)
Isn't "
world/na/us/ak/
http://www.freedomware.us/css/na/north.css
This is all the code from a top include. Just skim to the the lat few
lines, where it says "banner":
$todayDate = date("m-d-Y");
echo 'Freedomware > World > ' .
$mycontinent . '
> ' . $my
The head section for the Southwest states accepts the southwest style
sheet and bars the northern style sheet.
As I said, it works great. I just wondered if anyone had any suggestions
for improving it further. It would be kind of nice if I didn't have to
paste a string of FALSE statements
OK, it looks like there are at least three ways to do this. I now have
an original style sheet with a .css extension and copies with .php and
.css.php extensions.
All three style sheets have the following code at the top:
For the original style sheet, I pasted the following text into a
.htacc
"Sorry but you haven't really stumbled onto a pot of gold here or
anything."
Hmmm... it sounds like using PHP with style sheets isn't a recommended
practice.
John Nichel wrote:
If you want PHP to parse your *.css files, you need to tell your
webserver software to do so. In Apache
AddType
I just learned that you can even use PHP on style sheets. Can anyone
here tell me how to set it up?
I found a page at http://www.webdeveloper.co.nz/forum/topic/50 that
apparently cites two different methods. The first is to put a php
heading at the top of a style sheet, then alter a document so
'wy';
$linkcontinent = '/na';
$linkcountry = '/us';
$linkstate = '/wy';
$periods = '../../../../';
$linkwebring = '/world/na/us/wy/';
include ("../../../../includes/head.php");
$includea1 = TRUE;
?>
* * * * * * * * * *
And here&
Sheez, I spotted my error regarding "$statename." I changed it to the
following, and it fixed that problem.
$todayDate = date("m-d-Y");
echo 'Freedomware > ' . $statename . '';
echo '';
echo '';
echo '';
if($includea
cludeaa1 = TRUE; //(or false depending)
}
Then I changed TRUE and FALSE in various combinations, but it didn't work.
Next, what am I doing wrong with $statename, in the example below? I
tried quotes (""), single quotes ('') and no quotes at all.
$todayDate = date("m-d
Oops, I spotted some big errors in my included page already. Here's the
new page:
$todayDate = date("m-d-Y");
echo 'Freedomware > "$statename"';
echo '';
echo '';
echo '';
if($includena/a1 == TRUE){
echo '';
}
;../../../../';
include ("../../../../includes/state/head.php");
if($pagetoshow == 'withoutna/a1'){
$includena/a1 = FALSE;
}else{
$includeana/a1 = TRUE; //(or false depending)
}
?>
* * * * * * * * * *
And below is all the code from the included page, head.php
i just changed the opening and closing tags a little (you didnt need so
many) but the main change is, now the variables come before the included
file, so that the include file can access those variables too.
Holy cow, this gets simpler all the time. Pretty soon, there'll be
nothing left on my page
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
$statename = 'Alaska';
$postcode = 'ak';
$linkcode = 'world/na/us/ak';
?>
Welcome to !
* * * * * * * * * *
And here's the html code from the include nam
Marek Kilimajer wrote:
Sure you can, but I would not open a tag in one file, and close the tag
in another. This makes code very unreadable, the errors are hard to find
and also the code is not reusable.
Hm That's a good point.
Maybe I'll take another look at layers, as the table design
My first question is really trivial, but I noticed that Dreamweaver
likes to display my PHP includes code like this...
When I do a search and replace function, it often jumps onto another
element's line, like this:
I changed the code to this:
and it seems to w
Rory McKinley wrote:
I hope this has clarified matters somewhat and not made things worse.
Absolutely; the only thing that has made matters worse so far is the
book "Teach Yourself PHP, MySQL and Apache," which had me thinking
making PHP includes was going to be a minor wrestling match. In fact,
(Oops - I replied by e-mail; guess I should have posted my response to
the list.)
--- Rory McKinley <[EMAIL PROTECTED]> wrote:
> A possible option could be something like this
>
> {calling_template.php}
>
> /*State name does not have to be set statically,
> can be set from SQL query
> etc*
Suppose you design a standard banner for the top of your web pages and
use an include to insert it into every page on your site, like this:
But you later decide you'd like to change just one element on each page.
For example, you might design a standard image banner, followed by a
title and su
Wow, that is a lot simpler than I imagined. Thanks for the tip!
Jay Blanchard wrote:
[snip]
I thought this would be the easiest thing to learn, but I'm striking out
right and left. I bought a book about PHP, but the includes examples
don't work for me at all. I searched several forums and www.ph
Yikes, scratch my last post!
I think I stumbled over the answer just after I posted it.
Freedomware wrote:
I thought this would be the easiest thing to learn, but I'm striking out
right and left. I bought a book about PHP, but the includes examples
don't work for me at all. I search
I thought this would be the easiest thing to learn, but I'm striking out
right and left. I bought a book about PHP, but the includes examples
don't work for me at all. I searched several forums and www.php.net, but
it's hard to even zero in on a good tutorial.
I think part of the problem is tha
Dvdmandt wrote:
I have one Apache installed (well, 8 or 9, but one that I really use all
day), 4 PHP installs.. I have PHP 4 at C:\php, Apache at D:\Apache, PHP3 at
D:\php3, PHP5 at D:\PHP5, mysql at D:\mysql4, my webdocuments in c:\www,
D:\www2, G:\document..\\my documents
and so on..
So
I have PHP installed on Windows XP Pro as part of a preconfigured
package (XAMPP). I'm reading a book about installing and configuring PHP
which says I should rename the php.ini-dist file to php.ini and move it
to the Windows directory and move the php4ts.dll file to Windows\System\
I found php
OK, thanks.
Dvdmandt wrote:
I have one Apache installed (well, 8 or 9, but one that I really use all
day), 4 PHP installs.. I have PHP 4 at C:\php, Apache at D:\Apache, PHP3 at
D:\php3, PHP5 at D:\PHP5, mysql at D:\mysql4, my webdocuments in c:\www,
D:\www2, G:\document..\\my documents
an
I got a preconfigured package - Apache 2.0/PHP/MySQL - up and running,
then I installed Apache 1.3. Everything seems to be working fine, and
I'm ready to start tweaking it.
In the meantime, I bought a book about Apache, PHP and MySQL, which
includes tutorials on downloading the programs individ
Chris W. Parker wrote:
* * * * * * * * * *
Wow, thanks for all the tips!
I started from scratch and installed a preconfigured package, with
Apache 2 and PHP 4. Apache, PHP and MySQL seem to be working OK, though
a couple other functions don't.
Now I just have to get it hooked up to Dreamweave
I was able to install Apache fairly easily, and it appears to be
working, but PHP is way over my head. So I downloaded a preconfigured
package called XAMPP, from http://www.apachefriends.org/xampp-en.html
The specs say it includes Apache 2.0.48, which I was told is not good
for working with PHP
H... The first installation ended with this message:
"Sorry, the software to automatically configure the Apache httpd.conf
file has not yet been written. You will have to configure Apache
manually. See the install txt file for more details."
It then occurred to me that I forgot to tell you
Dvdmandt wrote:
Errm... Just unzip the php zip, so that php.exe is located in c:\php (or D:\
or something).. For example C:\php\php.exe... Then, find your Apache config
file in the Apache\conf folder, named httpd.conf.. Open it, scroll down to
the bottom, then add
LoadFile C:/PHP/php5ts.dll
LoadMod
I'm running Windows XP Pro and just installed Apache 1.3. It appears to
be running, so I guess I'm ready to install PHP.
I visited http://snaps.php.net and downloaded the latest PHP program -
CVS (5.0.x-dev). I'm reading the installation instructions at
http://cvs.php.net/co.php/php-src/win32/i
P.S. Should I go ahead and install PHP, or should I wait until I'm able
to preview pages on my new Apache server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well, I downloaded Apache and PHP, installed Apache, and was had a bunch
of questions to ask - until I tested Apache and discovered it's already
working!
I go into Start Programs, then click Control Apache Server > Start, and
the little black window opens. I click to close it.
But before I wa
OK, thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My operating system is Windows XP Pro. I was advised to download Apache
1.3 if I want to work with PHP, so I went to
http://httpd.apache.org/download.cgi and found the Apache 1.3 download
section.
It offered the following choices:
* Unix Source: apache_1.3.29.tar.gz [PGP] [MD5]
Dvdmandt wrote:
Also, I feel like I wanna tell yo some about myself, so you don't make your
descissions cause of me.. I'm 14 years old, live in sweden, learning
programming in C right now (made my first PHP module a week ago.. :)) I also
play around some with Apache 1.3 Api... I've been using PHP
Dvdmandt wrote:
If you got dozens domains, mod_l33t is highly recommended, but it's only for
Apache 1.3 which I use under both Me, 2k and XP btw... Apache 2.0 just cause
problems with PHP... Well, I haven't really confirmed it yet, but if you
read on the php.net manual page, you'll see it's not re
Scratch the first two questions - I figured out the MIS Installer and
downloaded it, and it looks like the IIS server isn't installed on my
computer.
But a couple other questions popped up when I began installing Apache:
What do I type in for "Network Domain" and "Server Name"?
I have over a d
OK, here are three more questions:
1. I visited Apache's download page at
http://httpd.apache.org/download.cgi It says the best version to
download is 2.0.48.
Then it lists the following:
Unix Source: httpd-2.0.48.tar.gz [PGP] [MD5]
Unix Source: httpd-2.0.48.tar.Z [PGP] [MD5]
Win32 Source: ht
Ryan A wrote:
"It installed pretty easy and the guy who makes it is real cool
and will help you via the forum. Also options to run other things like
PERL"
Thanks for the tip. You raised one other question I have - PERL.
I know nothing about it, but I just wondered how it fits into the big
sc
I've been lurking on this list for quite some time. I did a little
homework, downloaded a preconfigured package (Apache, PHP and MySQL),
and was beginning to learn the ropes when I had a rather severe hard
drive crash, along with other computer and website problems. (Actually,
I had only instal
70 matches
Mail list logo