473,606 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP / Smarty include() results in 403 Forbidden error

6 New Member
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/thedomainnetwor k.co.uk/www/include/Smarty.class.ph p on line 574

Warning: smarty(): Failed opening 'http://inetsoftware.ne t/isoft/cek_sn.php?host er=www.thedomai nnetwork.co.uk' for inclusion (include_path=' .:/usr/share/pear') in /nfs1/thedomainnetwor k.co.uk/www/include/Smarty.class.ph p on line 574


I have looked at line 574 in the smarty.class.ph p 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 2684
bergy
89 New Member
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.ne t/isoft/cek_sn.php hoster=$_smarty _tmp" seems to have a space where the ? should be. It should look like:
"http://inetsoftware.ne t/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
diane100
6 New Member
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 Recognized Expert Expert
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
diane100
6 New Member
Hi

Sorry about that and thanks for your help, very fast replies on here =) =)
Sep 22 '07 #5
pbmods
5,821 Recognized Expert Expert
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.ne t. I'd shoot them an email real quick and make sure you're sending what they are expecting to receive.
Sep 22 '07 #6
diane100
6 New Member
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 New Member
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.ne t 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@inetsof tware 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.ne t 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
7180
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 fighing with it for 5 hours, and still don't have any results :( Slawek,Poland
2
2897
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
14159
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 Smarty-2.6.7.tar.gz on a system running WindowsXP SP2. Apache and PHP tested out fine. After adding Smarty, I ran the following http://localhost/testphp.php
2
2603
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
1577
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 SMARTY_DIR."Smarty.class.php<br>"; require_once(SMARTY_DIR."Smarty.class.php"); if (substr(phpversion(),0,1) == "4") { $smarty = new Smarty;
2
2065
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 the same template index.tpl and only change the content. for example: /*index.php*/ $smarty = new MySmarty(); $smarty->assign('content','INDEX');
2
3219
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 on the homepage of a site, i wanted to truncate the content to like the first 75 characters and then put "..." (a perfect use of the smarty "truncate" modifier) and then give the visitor a link to read the whole article. But since "the_content" is a...
1
1927
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 stripped down for this post version. {foreach from=$categories item=c} <div> <div><img name="{$c.category}_" src="{$ImagesDir}/custom/paw.gif"></div> <div><a...
9
2876
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 the same results. It does not seem to be splitting the results between 2 pages. // required connect SmartyPaginate::connect(); // set items per page
0
8009
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7939
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8432
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8299
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5962
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5456
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3964
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1548
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.