Current location: Hot Scripts Forums » Programming Languages » PHP » [SOLVED] it works on localhost but not on hosting account?


[SOLVED] it works on localhost but not on hosting account?

Reply
  #41 (permalink)  
Old 04-06-08, 01:57 PM
myslowquietlife's Avatar
myslowquietlife myslowquietlife is offline
Newbie Coder
 
Join Date: Mar 2008
Location: London
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
ok! ok!

Another question thats a little off topic. Is there a way i can find out the amount of kilo/megabytes (frankly whatever) a php webpage is loading.
As im using smarty my index.php i feel is kinda big my connection string is huge So DB.php WILL fail (i will ask host to help with this as i dont think i can acces the my.ini file) and my phpinfo is telling me that only 20m is being given to a php page<-- (not quiet sure how to explain that bit better sorry).

Thanks
Reply With Quote
  #42 (permalink)  
Old 04-06-08, 03:59 PM
myslowquietlife's Avatar
myslowquietlife myslowquietlife is offline
Newbie Coder
 
Join Date: Mar 2008
Location: London
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Hello all

Ok heres the deal.

On my origianl hosting account i had to use a .htaccess file to use the php5 settings.
This was a problem as sigung has pointed out in his post on this thread (very good post please read).
the .htaccess file stoped my error logs reporting my syntax errors. Yes i know that i should READ THROUGH MORE CAREFULLY but whith many pages and staring endlesly you all know this can be very difficult so creating your own error handler is very good idea.
if you would like a script for a tss error handler please see a post in this thread.
BUT the .htaccess file stops this completly aswell.

I have changed hosting provider to one that uses php5 as adefault add my own php.ini file so i have my own desired settings (this was because php5 defalt has display errors switched off).

Now i was able to see the single error i had in my syntax (YES A SYNTAX ERROR) I couldnt belive it realy (sure you can) my prblem was this
PHP Code:

// get shopping cart products

public function GetCartProducts($cartProductsType);
{
return 
$this->mDoShoppingCart->GetProducts($cartProductsType
$this->GetCartId ());

I ve been sweating bulits and had a headache for days because of this
ITS THE SEMICOLON AFTER ($cartProductsType);
once removed my site was functioning.

I would like to thank all that have helped me and i would like to emphasise one thing.

I am running a non for profit Community organistion and your help has been without a doubt GREAT.

I will be on this forum for a long time to come giving as much help as i can to those who need.

Benjamin
Reply With Quote
  #43 (permalink)  
Old 12-19-08, 09:31 AM
hopper hopper is offline
Newbie Coder
 
Join Date: Dec 2008
Location: United States
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Looks similar to Darie & Bucica tutorial on php5 and mysql ecommerce. I've gone through the book and it has been a long trip but almost finished. Have you been able to implement the entire tutorial?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cPanel/Fantastico/RVSkin Web Hosting starting at ONLY $3.95 /mo - FREE SETUP! WireNine.com General Advertisements 0 10-26-05 04:39 PM
10 Steps to starting a web hosting company. A "must read" for resellers! vortech General Advertisements 0 07-15-05 04:13 PM
Hosting Account Until You DIE icanx General Advertisements 2 02-23-05 04:42 PM
PHP5 Hosting account for FREE w/ any purchase! mxhub General Advertisements 0 10-07-04 11:52 AM


All times are GMT -5. The time now is 07:39 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.