[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

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

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:

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

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: [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

[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] 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] 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 ESC to close it. But before 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] 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

[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

[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] 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

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

[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

[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

[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] 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] 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

[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 searched several

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

[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: ?php include (../../../../includes/header.php); ? But you later decide you'd like to change just one element on each page. For example, you might design a

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} ?php /*State name does not have to be set statically, can be set from SQL query etc*/ I

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,

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

2004-01-15 Thread Freedomware
I'm having a blast with PHP includes and echo functions; I never dreamed they could be so simple and effective. But I have a couple questions relating to head sections and search engines. Consider the following html code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

[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

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

2004-01-15 Thread Freedomware
I wrote: ? But suppose there's a certain page where I don't want the style sheet in ? the middle - the one I named MIDDLE. Is there a way to mark it in the ? include page, then instruct the main page to either not import it or ? replace it with nothing ()? Luke wrote: youd have to use a

[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: ?php $todayDate = date(m-d-Y); echo 'titleFreedomware gt; $statename/title'; echo 'meta name=description content=ZXZX versus Microsoft /'; echo 'script src=' . $periods . 'js/swapclass.js

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

2004-01-15 Thread Freedomware
I should have played with this some more before I posted more questions. After fixing an error on the included page, I replaced every instance of na/a1 on both pages with a1. That seemed to fix everything; the first style sheet comes through, but the second one is blocked - and I don't see any

[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. ?php $todayDate = date(m-d-Y); echo 'titleFreedomware gt; ' . $statename . '/title'; echo 'meta name=description content=ZXZX versus Microsoft /'; echo 'script src=' . $periods .

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

2004-01-16 Thread Freedomware
Thanks for all the tips. It's getting generally getting clearer, but I'm a little confused somewhere. Can I give you a better explanation of what I'm trying to do, along with my latest code? The pages on this site focus on various nations and states, with lots of links like this: [LOCAL]

[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

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

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: ? header(Content-Type: text/css); ? For the original style sheet, I

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

2004-01-19 Thread Freedomware
I now that have a system that works beautifully. I just wondered if it could be simplififed or improved even more. The head section on every page consists of an included page, which I appended below. But the most important part is the style sheet section, which begins with two or three default

[PHP] What a difference a / makes!

2004-01-20 Thread Freedomware
defined by the regional style sheets. Below is all the text from one regional style sheet, North: /* CSS: Freedomware CSS NA NORTH (The Far North) */ div#title { color: #009; } #subak { background: #009; color: #ff0; } td#tdcenter { background: #fff; } h1 { background: #009; color: #fff; } div#banak

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

2004-01-20 Thread Freedomware
Robert wrote: I personally use print link 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] 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

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

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

[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

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

[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

[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

[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

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 it

[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

[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

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:

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

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

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

2004-01-30 Thread Freedomware
I'm still fairly new to PHP, so there may be a simple fix for my relatively trivial complaint. I'm using an included page as a head section. It works fine, except that when preview a page and view the source, all the style sheets are displayed on one long line, like this: /scriptlink

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

2004-01-30 Thread Freedomware
David Obrien wrote: You need a \n at the end of each line inside the quote like echo stylesheet\n; \n is newline -Dave Thanks for the tip. However, I must be doing something wrong. \n didn't work, so I searched Google for PHP + new line and found a page that said you have to use \r\n if

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 'link href=' . $periods . 'css/nations.css rel=alternate stylesheet type=text/css title=Nations /\r\n'; use:

[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

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] 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

[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

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

[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:

[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

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 MySQL

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, followed by month

[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

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

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

[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