Irish SEO,  Marketing & Webmaster Discussion

 

PHP on windows

This is a discussion on PHP on windows within the Coding Help forums, part of the Webmaster Help category; i hadn't realised you're an ASP head ... you'll have no problem at all. I programmed ASP 2 years for ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 18-02-2006, 03:41 PM
Member
 
Join Date: Feb 2006
Location: cloud9
Posts: 47
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
9barJoe will become famous soon enough
Send a message via MSN to 9barJoe Send a message via Skype™ to 9barJoe
Default

i hadn't realised you're an ASP head ... you'll have no problem at all.

I programmed ASP 2 years for some firm in Germany .. absolutly no looking back after the switch to php.

enjoy.
__________________
roll on summer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 18-02-2006, 03:42 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by ph3n0m
mysql_pconnect - opens a persistent connection - as far as I know the default install from apachetriad doesnt allow persistant connections

http://www.google.ie/search?hl=en&q=...e+Search&meta=

Try the first few links
from my reading the _pconnect is persistent which means won't close with the statement mysql_close() when the _connect will which I think you better off using and make sure you are making a habbit in closing the connection when no nedeed anymore.

cool
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 18-02-2006, 03:47 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by 9barJoe
i hadn't realised you're an ASP head ... you'll have no problem at all.

I programmed ASP 2 years for some firm in Germany .. absolutly no looking back after the switch to php.

enjoy.
Indeed i use ASP in the last 4 years. was going to switch to asp.net, but as well as that want to learn c++ which is kind of using the same language as php (more advance), and the other day i got this program that i am running on a website that is done in php, and i didn't feel right that i couldn't understand it properly, like what the code does, when and why, so i said it's time to get back to "school" and get on with it.

Thanks guys, you are a great help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14 (permalink)  
Old 18-02-2006, 03:49 PM
Member
 
Join Date: Feb 2006
Location: cloud9
Posts: 47
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
9barJoe will become famous soon enough
Send a message via MSN to 9barJoe Send a message via Skype™ to 9barJoe
Default

aye, pconnect() opens a persistant connection, which I have not myself found the need for as to date.

Just stick with connect()

If you use connect() , you do not have to explicitly close the connection at the end of a script, but I believe it is good practice.

If you a making a site with an include for the footer, if you know what I mean .. or just some include that always comes at the end of each page .. just drop in something like this

if ($db_link) {@mysql_close($db_link);}

that will cover yer as
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15 (permalink)  
Old 18-02-2006, 03:59 PM
Member
 
Join Date: Feb 2006
Location: cloud9
Posts: 47
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
9barJoe will become famous soon enough
Send a message via MSN to 9barJoe Send a message via Skype™ to 9barJoe
Default

download the chm manual here mate, its more help than any book you can buy. I use the function reference daily.

http://www.php.net/download-docs.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16 (permalink)  
Old 18-02-2006, 07:40 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by 9barJoe
download the chm manual here mate, its more help than any book you can buy. I use the function reference daily.

http://www.php.net/download-docs.php
Thanks man, I am reading it at the moment. Great manual.
Looking also to get some books about it. Any recommendations?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17 (permalink)  
Old 19-02-2006, 04:05 PM
Member
 
Join Date: Feb 2006
Location: cloud9
Posts: 47
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
9barJoe will become famous soon enough
Send a message via MSN to 9barJoe Send a message via Skype™ to 9barJoe
Default

the manual is better than any book. There are plenty of user comments & examples in the function reference section.

I would however recomend Mysql by paul DuBois ISBN 0-7357-1212-3, that's a good book, or beiginning databases with mysql published by Wrox is a bit simpler.

The best tip you can get is this --- find your php.ini on your local server (in apache directory normaly) & set error_reporting = E_ALL

This will force you to programme nice & clean - get used to that from day 1 & it will benefit you in the future.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18 (permalink)  
Old 19-02-2006, 04:18 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

checked the php.ini and the error reporting is already setup as:

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

I guess that should do it.

Also I was looking at the Wrox "Beginning PHP4" , i always found them very good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19 (permalink)  
Old 21-02-2006, 09:51 AM
blacknight's Avatar
Web Slave
Recent Blog:
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,578
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Default

So how are you getting on?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20 (permalink)  
Old 21-02-2006, 10:03 AM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

Quote:
Originally Posted by blacknight
So how are you getting on?
I am actually getting somewhere. Tottaly different then what I was expecting, but slowly and surely i am working my way up the knowledge ladder.

i managed to make connection to the database, pull out records, create "define" global (called "Applications" in asp i think..), stiil looking for short cuts to typing code (the use of functions which are similar to asp, but can not find anything to replace the asp "sub .. end sub" as yet.)

Thanks for asking.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
php, windows

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:24 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0