Jump to content


changing path in PHP script

  • Please log in to reply
2 replies to this topic

#1 minbak

  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 20 July 2006 - 11:48 AM

I have encountered a little bit problem here when I transferred my site to new host.

My new host doesn't allow FOPEN in the PHP code to access a URL.

So someone suggested me to change from the

Original code

to suggested code

Am I right?

My problem is I could see the file of ShowBanner.php but not ShowBanner.php?BannerType=468x60.

Where could I find this file?

This is the uploaded banner by the user.

What is the correct code?

#2 ChaosXero

  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 20 July 2006 - 01:55 PM

?BannerType=468x60 is creating a variable in a superglobal array called $_GET.  You need something in your code to tell it what to get/do.  If that's a size for an image you might echo an img tag with the correct size or similar.  Unless you specifically tell it to look for a file, it's just passing the banner type variable to the page.

Also, when you write in for help, including the page code always helps.  Just remmeber to scrub out any personal data (DB passwords etc.)

Good luck and I hope this helps.

#3 minbak

  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 21 July 2006 - 06:28 AM

The original code is


  <td valign=top style="padding-top:5" width=600>  <div align="center">

What is the correct code to avoid using Fopen ?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users