[PHP] Re: PHP on Apache 2.0.48

2004-02-15 Thread Freedomware
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

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread Freedomware
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

Re: [PHP] phpMyAdmin Problems

2004-02-11 Thread Freedomware
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

[PHP] phpMyAdmin Problems

2004-02-10 Thread Freedomware
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

Re: [PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread Freedomware
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

Re: [PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread Freedomware
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

[PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread Freedomware
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

[PHP] PHP/MySQL Tables - CSS and Sortable Columns (Newbie Questions)

2004-02-06 Thread Freedomware
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.

Re: [PHP] Is there a PHP Style Sheet Switcher that doesn't reload

2004-02-04 Thread Freedomware
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

[PHP] Is there a PHP Style Sheet Switcher that doesn't reload pages?

2004-02-04 Thread Freedomware
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

[PHP] Re: More info on MikeRoweSoft.com...

2004-01-31 Thread Freedomware
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

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
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

[PHP] PHP Style Switchers - Recommendations?

2004-01-30 Thread Freedomware
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

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
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

Re: [PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
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 '&#x

[PHP] Why are my style sheets all listed on one line?

2004-01-30 Thread Freedomware
* HEAD SECTION (included page; ../../includes/ref/head.php) $todayDate = date("m-d-Y"); echo 'Freedomware > ' . $myname . ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; e

Re: [PHP] OT, Maybe: Question Re: Apache/Macintosh Platform

2004-01-28 Thread Freedomware
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

Re: [PHP] Why we love Microsoft (0t)

2004-01-24 Thread Freedomware
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

Re: [PHP] Re: "Additional Features for working with linked Tables have been deactivated."

2004-01-24 Thread Freedomware
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

[PHP] Importing Data with EMS MySQL Manager

2004-01-24 Thread Freedomware
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/

[PHP] Re: "Additional Features for working with linked Tables have been deactivated."

2004-01-24 Thread Freedomware
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

Re: [PHP] How do you set up table columns for numerals?

2004-01-23 Thread Freedomware
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

[PHP] How do you set up table columns for numerals?

2004-01-23 Thread Freedomware
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

[PHP] "Additional Features for working with linked Tables have been deactivated."

2004-01-23 Thread Freedomware
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

[PHP] Re: Why we love Microsoft (0t)

2004-01-23 Thread Freedomware
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

Re: [PHP] Importing Text into Database - Can you recommend a tutorial?

2004-01-23 Thread Freedomware
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

[PHP] Importing Text into Database - Can you recommend a tutorial?

2004-01-23 Thread Freedomware
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

Re: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Freedomware
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

Re: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Freedomware
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

[PHP] How do I regain the ability to create databases (phpMyAdmin)?

2004-01-23 Thread Freedomware
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

Re: [PHP] What a difference a / makes!

2004-01-20 Thread Freedomware
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 "

[PHP] What a difference a / makes!

2004-01-20 Thread Freedomware
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

[PHP] Can this head section, which loads many style sheets, be improved or simplified?

2004-01-19 Thread Freedomware
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

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
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

Re: [PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
"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

[PHP] Using PHP with Style Sheets

2004-01-19 Thread Freedomware
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

Re: [PHP] Re: PHP Includes and Echoes (From the top...)

2004-01-16 Thread Freedomware
'wy'; $linkcontinent = '/na'; $linkcountry = '/us'; $linkstate = '/wy'; $periods = '../../../../'; $linkwebring = '/world/na/us/wy/'; include ("../../../../includes/head.php"); $includea1 = TRUE; ?> * * * * * * * * * * And here&

[PHP] Re: PHP Includes and Echoes (Sorry; read this post first!)

2004-01-15 Thread Freedomware
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

[PHP] Re: PHP Includes and Echoes (Sorry; read this post first!)

2004-01-15 Thread Freedomware
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

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
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 ''; }

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
;../../../../'; 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

[PHP] Re: PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
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

[PHP] PHP Includes and Echoes in Head Sections and Search Engines

2004-01-15 Thread Freedomware
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

Re: [PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Freedomware
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

[PHP] PHP Includes versus sloppy Dreamweaver code and split elements

2004-01-15 Thread Freedomware
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

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Freedomware
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,

Re: [PHP] Variable PHP Includes - Is there such a thing?

2004-01-15 Thread Freedomware
(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*

[PHP] Variable PHP Includes - Is there such a thing?

2004-01-14 Thread Freedomware
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

Re: [PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Freedomware
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

[PHP] Re: Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Freedomware
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

[PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Freedomware
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

[PHP] Re: Installing PHP on 2nd Windows Drive

2004-01-13 Thread Freedomware
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

[PHP] Renaming and Moving php.ini and php4ts.dll Files

2004-01-13 Thread Freedomware
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

[PHP] Re: Installing PHP on 2nd Windows Drive

2004-01-13 Thread Freedomware
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

[PHP] Installing PHP on 2nd Windows Drive

2004-01-13 Thread Freedomware
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

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
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

[PHP] Installing Preconfigured Packaged Over Apache

2004-01-12 Thread Freedomware
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

[PHP] Re: PHP Installation Questions

2004-01-12 Thread Freedomware
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

[PHP] Re: PHP Installation Questions

2004-01-12 Thread Freedomware
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

[PHP] PHP Installation Questions

2004-01-12 Thread Freedomware
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

[PHP] Re: Apache - Previewing Pages with Dreamweaver

2004-01-12 Thread Freedomware
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

[PHP] Apache - Previewing Pages with Dreamweaver

2004-01-12 Thread Freedomware
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

Re: [PHP] Did I choose the correct download?

2004-01-12 Thread Freedomware
OK, thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Did I choose the correct download?

2004-01-12 Thread Freedomware
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]

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
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

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
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

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
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

Re: [PHP] Returning Newbie (Disoriented)

2004-01-12 Thread Freedomware
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

Re: [PHP] Returning Newbie (Disoriented)

2004-01-11 Thread Freedomware
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

[PHP] Returning Newbie (Disoriented)

2004-01-11 Thread Freedomware
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