Hi,
I'm new to PHP. I have a script and I don't know where to start. When I open the templates which came with the script, it looks strange. like the text is not organized and there are no drop down menue or any other boxes.
Please help
Thanks
Hi,
I'm new to PHP. I have a script and I don't know where to start. When I open the templates which came with the script, it looks strange. like the text is not organized and there are no drop down menue or any other boxes.
Please help
Thanks
huh?
I have a script
Usually a good start... but what script?
When I open the templates which came with the script, it looks strange.
What do they look like? What looks strange?
A little more info, a little less ambiguity....
Sorry about hat. The script is aedating script.
What looks strange is that there are no drop down menues like to choose the country and then the city. I mean there is nothing just like some writing which is not in ordeer. Why is that??
Do I have to install it on line first? Or I have to change it first, I mean like colors and text. I'm using frontpage. Is frontpage good enough for editing such scripts or not? If not what to use then??
Thanks
What's the writing? Is PHP installed on your server? Is it running?
Frontpage is fine (if you know how to use it) but there are other products that do the same thing (and can be "lighter" in size/memory footprints) than Frontpage or Dreamweaver.
I didn't ask last time, but what is the writing that you get? Let us see it.
I don't have it installed on a server yet. I don't know how to proceed!!!
For example this is one page :
up_inc_js banner_top banner_left switch_lang_block banner_right
TMI_Forum TMI_Join TMI_Chat TMI_Search TMI_Rate TMI_About TMI_Contacts
login_section
promo_text_ae3_1
promo_text_ae3_2
quick_search_text
quick_search
join_section
__promo_ae3_0__
__promo_ae3_1__
__promo_ae3_2__
__promo_ae3_3__
__promo_ae3_4__
__promo_ae3_5__
__promo_ae3_6__
__promo_ae3_7__
success_story members_statistic survey news_letters
latest_news top_rated
featured_members_title
featured_members
BMI_About | BMI_Privacy | BMI_Termsofuse | BMI_Services | BMI_FAQ | BMI_Articles | BMI_Stories | BMI_Links | BMI_Invitefriend | BMI_Aff | BMI_Contacts
bottom_text
banner_bottom
manni7:
What you posted looks like just an outline of how the dating site is layed out and the features it has. It is not program code.
I think about the first thing you need to do is to look in the directory you downloaded this script to and see if you can find a readme file. Usually there is a file like that which is a text file and can be viewed with notepad.
If there is such a file it should give you some instructions about installing it.
You said you don't have the dating site script installed on a server yet. Do you have PHP and MySQL installed on your computer? And if so, do they work. By that I mean, can you write a simple PHP script and then view it in the browser? Also, can you connect to the test database that comes with MySQL using PHP code or from the MySQL command prompt?
If you can't do these things then the first thing you need to do is to get both PHP and MySQL installed and working.
You can't do anything with the dating script/template without both PHP and MySQL working.
Check this out and also check for a readme file and then come on back and let us know what's going on.
Good Luck
You know, i feel you man, i started out with a phpauction script i bought, and it looked like alien language...i didn't know what i was doing, but i followed the instructions on how to install the thing on my server so that it was at least working!
Once it was up, one step at a time, you fiddle with it, looking around, and after a few days (for me at least) You start to see there's a diagram of how the code operates and flows.
It's one thing to know php and my sql, it's another to know the flow diagram of how the program is layed out. You must know both, and that php alien language, that becomes 20 percent of the challenge when you get to know what's going on. the other 80 percent is the work flow.
Other readers, do you agree or disagree?
Dominic Son
So the first step is to load it o a server?? Like find hosting you mean??
You can install a webserver, php and mysql on your machine for testing (writting) php. If your only new, you might want to check out something like xampp. It will install a server, php, and mysql for you all in one easy install.
Otherwise, you will need...
Ok, thanks i will try xampp and if I have any questions I'll come back to you guys :-))
Thanks
Sorry about that but what to do next. I installed xamp. I have apache server running and mysql running now. But it's still the same. I think I have to install it on the server as I remember you told me but how?
thanks
XAMPP is a great start, since you are new to PHP and possibly MySQL I would assume also that you are new to a web server (a must for testing) Unless you have ever tried to configure all the above to work together even with reference manuals then you will certaily appreciate the ease with which you will be able to download and install the package. Even though it is a large file (over 20 Megabytes) the install is easy. Plus you can switch between PHP 4 and PHP 5 with XAMPP.
After you have the server running then the scripts you have will make sense and you can tweak them the way you want, while learning more PHP at the same time.
You ahve to make sure that your scripts are in the webservers "root directory". If you just installed XAMPP with defaults, my guess says that it's
(Apache 2) C:\Program Files\Apache Group\Apache2\htdocs
(Apache 1) C:\Program FIles\Apache\htdocs
You need to move all your HTML and PHP and such files there. Then call them through your browser like:
localhost/index.php
or the path to whatever file you want.
i did what you told me.
I moved all template files to the following folder
E:\Program Files\xampp\htdocs
i called from my browser. The index.html tells me
It works!
The rest I get error.
Please help guys, I would like to learn what to do and how
thanks
The rest I get error.
What error? Your going to need to learn how to ask questions if you want to get help.
Anyway... lets start with a simple test script. Open a new file and put this in it...
<?php
phpinfo();
?>
Save it as test.php and put it in your htdocs folder. Now, open your browser and go to http://localhost/test.php
What do you see? You should see a bunch of infomation about your php install.
Depending on how you decided to install (server starts on restart or start or you manually start through the Program files). Make sure that your Apache server is running if it is there should be an icon in the start bar at the bottom, XAMPP starts in DOS and that icon should not be closed when you are using your server.
If you type a local address into the address bar with your browser or even in windows explorer that is html it will open the browser and display it but not php, that has to be rendered by the server. So open your browser and type http://localhost/xampp/index.php and you should see all kinds of information about your server, and one of those in the menu on the left in orange is phpinfo(), click the phpinfo() link and you will see how your PHP install is set up, it is a long table of how various services are running on your PHP install. If you can see that you are now ready to type one of your program names into the address bar lik http://localhost/somephpfile.php and it will run that file unless of course there are errors in it and if so will give you an error message and the file and line where the error showed up.
I'm doing what you all are telling me and this is what I get :
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
01/26/06 17:48:44
Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP
Please help. All php files are in the same foldeer but still can't be found.
ummm.. do this:
Remove all index.html items from the htdocs folder (or move them somewhere else).
Then go to http://localhost/
Then browse to where you want to be
Thanks very much. At last I think I have something. When I type "http://localhost/index.php
I get this now :
aeDating installation
1) Upload files to the server
2) Change Permissions
Change permissions (chmod 777) to the directories (via FTP)
inc (full accessible)
articles (full accessible)
banners (full accessible)
periodic (full accessible)
tmp (full accessible)
id_avi (full accessible)
id_img (full accessible)
id_wav (full accessible)
backup (full accessible)
gallery (full accessible)
langs (full accessible)
sdating/photo_place (full accessible)
Change permissions (chmod 666) to the files (via FTP)
templates/tmpl_XXX/styles_XXX.css
periodic/cmd.php (writable)
periodic/notifies.php (writable)
3) Install cron jobs
Add following cron jobs:
0 0 php -q /path/to/periodic/cmd.php
/15 php -q /path/to/periodic/notifies.php
4) If web based SQL script installation failed: aeDating database installation to the existing MySQL database
Run MySQL script from sql directory from site administration panel or command line.
Command line:
mysql --user DatabaseUserName -p DatabaseName < aeDating-v.X.xx.sql
Of course it's much more but this is the first think and it said installation. Do I have to install or upload it or what to do now.
When I type any other php file I get the following :
Warning: require_once(inc/header.inc.php) [function.require-once]: failed to open stream: No such file or directory in E:\Program Files\xampp\htdocs\join_form.php on line 11
Fatal error: require_once() [function.require]: Failed opening required 'inc/header.inc.php' (include_path='.;E:\Program Files\xampp\php\pear\') in E:\Program Files\xampp\htdocs\join_form.php on line 11
I think I'm close a little bit please help me more with this
Thanks