473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PHP / Smarty include() results in 403 Forbidden error

Hi

I am new to PHP and Smarty (I know only very basic things) and I need help with a warning message I get when I call a page in a browser.

I purchased some software from a company who are no longer replying to my messages for help so I have decided to try and fix the many problems myself.

I am receiving the following messages when loading any of my pages and some pages are not even showing at all.

Warning: smarty(http://inetsoftware.net/isoft/cek_sn...etwork.co.uk): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /nfs1/thedomainnetwork.co.uk/www/include/Smarty.class.php on line 574

Warning: smarty(): Failed opening 'http://inetsoftware.net/isoft/cek_sn.php?hoster=www.thedomainnetwork.co.uk' for inclusion (include_path='.:/usr/share/pear') in /nfs1/thedomainnetwork.co.uk/www/include/Smarty.class.php on line 574


I have looked at line 574 in the smarty.class.php file but it makes no sense to me.

Here is part of the code - line 574 is in bold
Expand|Select|Wrap|Line Numbers
  1. /**#@-*/ 
  2. /** 
  3. * The class constructor. 
  4. */ 
  5. function Smarty() 
  6. $_smarty_tmp = $_SERVER['HTTP_HOST'];
  7. include_once "http://inetsoftware.net/isoft/cek_sn.php hoster=$_smarty_tmp";
  8. $this->assign('SCRIPT_NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] 
  9. : @$GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']); 
  10.  
Both the templates and templates_c directory are set at 777


I believe that the problem is something to do with fopen wrappers and not having permission to open the URL??

My question is how can I fix this and can I fix it my end (as I believe that the URL is for the software company (inet software)

I hope I have explained everything correctly and that this post makes sense =/

Many thanks in advance

Diane Swift
Sep 22 '07 #1
7 2672
bergy
89
I've never used Smarty, and have no idea what it actually is, however I did try a few things. I enter the first URL in my webbrowser, and it brought me to a blank page - so that URL is valid - even tho it seemed to return nothing - I didn't get a 403 error.

The second URL however, "http://inetsoftware.net/isoft/cek_sn.php hoster=$_smarty_tmp" seems to have a space where the ? should be. It should look like:
"http://inetsoftware.net/isoft/cek_sn.php?hoster=$_smarty_tmp".

When I remove the space and send my browser there I get a message saying I need to register my software (obviously since I'm sure $_smarty_tmp is a variable created by the PHP and going to the URL without "hoster" set would result in that error).

So, try adding the ? instead of the space and see if that doesn't fix at least one of your problems.
Sep 22 '07 #2
Hi

I have tried adding the ? as above but it has made no difference.
I also tried entering my serial number but i got a message saying not valid for this domain.
From what I understand, Smarty is a template engine driven by PHP

Kind Regards
Diane
Sep 22 '07 #3
pbmods
5,821 Expert 4TB
Heya, Diane. Welcome to TSDN!

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

Please use CODE tags when posting source code:

[CODE=php]
PHP code goes here.
[/CODE]
Sep 22 '07 #4
Hi

Sorry about that and thanks for your help, very fast replies on here =) =)
Sep 22 '07 #5
pbmods
5,821 Expert 4TB
Heya, Diane.

I also tried entering my serial number but i got a message saying not valid for this domain.
This makes me curious, especially because you're getting a 403 if you don't put your serial number in the query string. Perhaps your account is not set up properly over at inetsoftware.net. I'd shoot them an email real quick and make sure you're sending what they are expecting to receive.
Sep 22 '07 #6
Have been trying to contact them for the last month but to no avail, they just wont reply to any of my emails =(
Sep 22 '07 #7
jleo
1
Have been trying to contact them for the last month but to no avail, they just wont reply to any of my emails =(
I dont know if you will see this Diane...however, inetsoftware.net does not respond EVER when you have an issue or a problem with whatever you purchase form them. The affiliate software we purchased was not repairable at all and they blocked out IP address and took the site down as well, for logging too many times rerquesting their response and finally telling them they could talk to our atty. I finally used another email address and emailed the email address of the woman who sold us the software, she replied to me thru the service@inetsoftware address immediately asking me what software i was interested in...and *poof* the site was back up! I again logged a ticket - and again - to no avail - they simply to not stand behind what they sell - or answer any logged tickets - and then i began to search to find out who else is not finding inetsoftware.net to be a reliable site to purhcae product...we are not alone! if there are a good number of people having problems with the software they purchase from them i would sugget we, together as one reckoning force find a solution to stop them from hurting others before they purchase a defunct product fromt them...i am sorry for your problems...i know the frustration! Best to you..(PS) we were very professional and kind when we logged a ticket - that did not matter - they are not a good company to purchase anything from - .jleo
Feb 16 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: S³awomir Marcinkowski | last post by:
Hello, can someone show use example use smarty pager plugin? {pager rowcount=$LISTDATA.rowcount limit=$LISTDATA.limit txt_first=$L_MORE class_num="fl" class_numon="fl" class_text="fl"} I'm...
2
by: Daan | last post by:
Hello all, I'm having a little problem with Smarty. Getting it to work in a simple case went fine, but now I have the following situation: / /smarty /templates template.tpl /templates_c
2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
2
by: M | last post by:
Hi Folks, I am trying to install Smarty using PHP 5 on a Windows XP PC using IIS v6 The following PHP File: <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head>
0
by: Matt | last post by:
geez, i've done this a million times, you'd think i could get it right. uploading to production server for a new site, and part of the head.inc that starts everything up looks like this: echo...
2
by: Gene | last post by:
i'm newcomer in using smarty and i have problem like this: i want to have one template file (e.g. index.tpl) in this file section which use variable {$content}. and two files *.php which are using...
2
by: recordlovelife | last post by:
So I am trying to display a title, date, and content of a wordpress blog. Word press provides nice drop in functions to get the job done with simple names like "the_title", and the "the_content" But...
1
by: empiresolutions | last post by:
i have what may be a very simple question for someone who has worked with X-Cart or Smarty. I am adding a rollover image next to the category names in the main navigation. The following is my...
9
by: adamjblakey | last post by:
Hi, I am trying to implement pagination into my site but am having a few problems. This is my code, but when i load the page all the results show and when i click to the next page 2 it shows...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.