Forum Moderators: coopster

Message Too Old, No Replies

A lot of PHP Questions

help me please!

         

karlo

1:32 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



First, i'm planning to use preg_match, ereg_match, etc..

I think "preg" and "ereg" uses something like in the Apache's RewriteModule the "[0-9]" something like that... Do you know a tutorial that will easily teach me on how to do that?

Second, I'm planning to use Apache Rewrite. But I really don't know how to use. Do you know a tutorial that will easily teach me on how to do that?

Third, while openning some php scripts, I didn't get the meaning of example:

<?php $sample1-> //some string here?>?>
What does it mean? I didn't master the array functions of PHP. Do you know a tutorial that will easily teach me on how to do that?

Fourth, I really need to master PHP easily. Do you know a tutorial that will easily teach me on how to do that?

Fifth, I'm planning to use MySQL. But It's really difficult for a beginner like me to learn that. Do you know a tutorial that will easily teach me on how to do that?

Sixth, About offline debugging of my website, I have Apache 1.3, and the latest version of PHP. that's why before uploading my files, I know that they will work because i debug them offline. My computer will act like a server, but offline. Now, how can I use MySQL? The download size is very big! and also, I remembered, I tried it, 29 MB, and with PHPMyAdmin. Is there any other way to download a LITE version of mysql to be used for offline debugging purposes? and also, is the a stand alone program that will let me manage and edit databases?

I hope that you will be able to answer all of my questions.

Oh yeah, another one, how can I create a PHP script that will be easily readed by people?

Another one:
Now, in PHP i know there's microtime, srand, float, array_rand, arrays, foreach, or any other loop functions. i'm really confused. Please help me!

Nutter

1:45 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



1 & 2
I'm bad at these too, so I can't help

3
Is it something like $var->something or $var->something(somethingelse)? It looks like a class. Classes potentially can make writing a program much easier, but probably not something you should mess with until you've spent some more time in PHP.

4
Browse this board. Browse the PHP site. I'm a big fan of the "For Dummies" books. Barnes & Noble has a pretty good introductory book to PHP that they publish.

5
Same answer as #4, with the addition of the Visual book on MySQL.

6
Your best bet may be to search for a "WAMP" package (I'm assuming you're using Windows). There are packages out there that install Apache, PHP, and MySQL all in one go; altough I can't recall any names off the top of my head. Maybe someone else can chime in. Either way, it's a pretty big download. Or, you can buy a book with the software on CD and kill steps 4,5, & 6 in one go.

For standalone I use MySQL Query Builder and MySQL Adminstrator, both available at the MySQL website. Since installing them, I haven't had to touch phpMyAdmin.

7
What do you want to know about those functions?

- Ryan

karlo

2:04 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



Because I'm always using PHP. And I use FlatFile to store something. I want to try out something new. Something new that will make the "job" easier. Example, using arrays, loops, and a new storage, MySQL. I'm also planning to create my own "small" forum. I like to challenge my self so that I can learn new things. Do you know any site where can I download the latest version yet the smallest version of MySQL? because it's really big! 34 mb! i'm on dialup!

Nutter

2:24 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



There's a 'Windows Essentials' version that's 14mb. I don't know what the difference is.

You may be better off buying a book that has MySQL on CD. A trip to Barnes & Noble will probably take less time than downloading a 35mb file over dialup.

karlo

2:47 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



I'm from the Philippines. I don't know what's "Barnels & Nobles". And also, the "Windows Essentials" version works. But when I use "mysql_connect" in PHP, it says that I must get the client version. I think that version is only for C++ developers who wants their application have access to MySQl.

Nutter

2:50 pm on Feb 26, 2005 (gmt 0)

10+ Year Member



It's a bookstore. Most MySQL books come with a CD that has MySQL on it.

ergophobe

5:37 pm on Feb 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



1 & 2. There is no easy way ;-) This is black magic.

As for #1, google searches on
- regular expressions tutorial
- regular expressions reference

will give you a lot. On #2, the standard reference is

[httpd.apache.org...]

See also
[engelschall.com...]

and google on "url rewriting" for more.

You can also play with some regex testers. You can download the free Regulator which I just discovered and haven't used much

[sourceforge.net...]

or use the online regex tester at

[fileformat.info...]

---------
#3

see [php.net...]

------------

#4 and #5

Lots of tutorials out there, but think about what you're asking:


I really need to master PHP easily.

I don't want to be snide, but really, the first thing you need to do if you want to get anywhere with this is to excise the word "easily" from your items #1, #2, #4 and #5. If you've ever mastered anything in your life, you know that it is done with sweat and toil.

I got started with tutorials from devshed.com and a few others and have gotten a LOT better by hanging out here. If I ever master PHP, I'll post here and let you know how I did it ;-)

------------

#7

I didn't understand. Did you have a question about these?

karlo

2:52 am on Feb 27, 2005 (gmt 0)

10+ Year Member



Ok... I will wait for that! I'm so excited!