How do I call the /photopost/index.php from my own page in a include function
I droped this on my web page which is in another directory but under the same IP and domain acount on my web server and I am get the errors or warning messages and never displaying the web page.
//////////////////////////// COPYRIGHT NOTICE //////////////////////////////
// This script is part of PhotoPost PHP, a software application by //
// All Enthusiast, Inc. Use of any kind of part or all of this //
// script or modification of this script requires a license from All //
// Enthusiast, Inc. Use or modification of this script without a license //
// constitutes Software Piracy and will result in legal action from All //
// Enthusiast, Inc. All rights reserved. //
// http://www.photopost.com firstname.lastname@example.org //
// Developer: Michael Pierce (http://www.mdpnet.com) //
// PhotoPost Copyright 2007, All Enthusiast, Inc. //
What I want is the index.php to be displyed inside my web oage - what am I posiably doing wrong can any one explian.
Are there any enviroment variables or something else i could be missing?
The warning messages :
Warning: include(../photopost/index.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\burningtaper.org\httpdocs\index-6.php on line 62
Warning: include() [function.include]: Failed opening '../photopost/index.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\burningtaper.org\httpdocs\index-6.php on line 62
What could posiable be the problem - by the way I am running on a windows server just let you if it makes a difference!
Frank H. Shaw
you can see the exact page i want to intergate to my web page by click on this link http://burningtaper.org/photopost/index.php and the page i want to do the intergation to is just click on this link http://burningtaper.org/index-6.php I hope this helps explin things a little better.
The error you get says the file does not exist
My suggestion is to copy the index.php file to your webroot and change the require line for pp-inc.php to the full path so that file can be found and you should be fine
Ok I have downloaded the pp-inc.php to my desktop and at the top of the file is this
error_reporting (E_ALL ^ E_NOTICE);
if ( VB3_INTEGRATION == "off" )
// Let's work from one variable
if ( PHP_VERSION < '4.1.0' )
$_GET = &$HTTP_GET_VARS;
$_POST = &$HTTP_POST_VARS;
$_COOKIE = &$HTTP_COOKIE_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
$_ENV = &$HTTP_ENV_VARS;
$_FILES = &$HTTP_POST_FILES;
$_REQUEST = array_merge($_GET, $_POST, $_COOKIE);
// Turn off the magic quoting
then the rest of the file is a bunch of functiom - is it the above you want me to make changes to or is it in one of the functions under the above lines if you do not want me to make changes to any fo the above lines then what function do you want me to do the following as you wrote back to me last - change the require line for pp-inc.php to the full path so that file can be found and you should be fine
please explain in some more detail - i am sorry i jsut got - purchased this product and just having trouble figureing out what has to be done in it to make it function for me.
Frank H. shaw
Frank your product functions fine.
Your asking code hacking or modification questions which fall outside product support. We have suggested several things for you to try but your post above clearly suggests you have not understood what we suggest you to do.
I suggested you make a copy of index.php from photopost and drop it in your site webroot and edit the one line at the top of the file which is this to reflect the path to find pp-inc.php
You have not done so.
Or you can try your initial idea again just place the proper path to photopost index file in there like so
THANK YOU THAT IS EXTCLY THE INFORMATION I WAS LOOKING FOR AND THIS SHOULD HELP ME GET GOING WITH YOUR PRODUCT!
SO THE LINE TO EDIT IS REALLY TO ADD A LINE AT THE TOP OF THE FILE FOR THE PHOTOPOST SYSTEM TO FIND THE FILE :
SO INREALTY ANY WEB PAGE THAT NEEDS TO INGRATE PHOTOPOST CODE or MODULE NEEDS TO KNOW WHERE OR POINT TO THE pp-inc.php IS.
Your error is because your not putting the correct path to find the file noted. It has not changed no matter what you do because your path was always wrong.
Please help if I do the following in two place in my website of course in the body part of my web page - example below:
and some time later :
and allso this
and i get the following error ;
Fatal error: Cannot redeclare typecast() (previously declared in C:\Inetpub\vhosts\burningtaper.org\httpdocs\photopost\pp-inc.php:35) in C:\Inetpub\vhosts\burningtaper.org\httpdocs\photopost\pp-inc.php on line 70
but if I coment out the line below
// require "./photopost/pp-inc.php";
and only use the following :
ONLY THE ABOVE LINE WORKS WHY IS THIS AND WHAT IS HAPPENING JUST TO LET YOU KNOW THE CORRECT AND WHOLE PAGE COMES UP INSIDE MY WEB PAGE LOCATED NOT IN THE PHOTOPOST SUBDIRECTORY BUT SOME WHERE ELSE ?
IS THE QUESTION TO BE ASKED HERE IS DOES THIS PRODUCT ONLY SUPORT DIRECT PATH OR ABSULATE PATH - MOST GIVE THE WHOLE SERVER PATH - AND WILL MOT SUPORT RELATIVE - OR DID I HAPPEN TO HAVE A BAD INSTALL AND THE GLOBALS WHERE NOT SET UP ON THE INSTALL OF PHOTOPOST OR DID WE NOT FULLLY CONFIG PHOTOPOST YET - WHAT SHOULD I DO OR HOW CAN I TELL?
Nothing your asking here has anything to do with our product just your ability to try and get it showing somewhere you are refusing to install it.
I honestly dont know what to tell you because I have given you advise in this thread and your support email etc and you dont seem to understand anything we have explained.
Now your install is fine it works fine it is installed fine. One can clearly see that by going to your photopost site
Your one error you posted in this thread as the last one you did not use the right path. No big deal and your only posting one new error so let me explain that
Fatal error: Cannot redeclare typecast() (previously declared in
You can not require or include a file twice on the same page and thats what you have done just like the error says.
I have suggested to you many times if your trying to make the index site of your photopost be your webroot which it definately seems to me what your trying to do then install Photopost as your webroot.
The typecast error happen as i did as you said to do - but when I removed the line it did how ever work and yes you are very right on You can not require or include a file twice on the same page and to clear things up for any poor sole reading the posting - I made shure that the information was corrected and vertifyed.
How ever if you go on the link now you will see that I have ingreted the /photopost/index.php into my web page jsut fine - but what you did not answer is my question does this product require full pathiing and does not support relative pathing as i tried to explain above in the other post on thsi thread. That is the only thing now i am trying to clear up - I see that the product will do the functulity and allow the intergation in the form i wish to do it -so we are good there.
If you can figure out from my post why the relative path does not work let me know until that point i will be forced to use full pathing and have to document as i go forward where i have done so - because this type of requirement - is a problem if you have to port or ove to a diffenrt web server- as you should know!
Frank H. Shaw
By the way i do not install the software on my server my techinal person does and he is on a vacation so i had to relay on your adivse and knowelge to understand if the problem i was having was related to the install or soemthing else!
Your issues is with some php file your trying to make here which has nothing to do specifically with our program or support.
Each error you reporting had you putting improper paths to the program so it could never be found and of course your last issue where you where trying to require a file twice. Maybe your tech guy will understand the advise I have given and properly install the application in your webroot if that is indeed where you want it to show.
bad install was the problem and the removel of the install script afterwards
Farnk H. shaw
|All times are GMT -5. The time now is 10:50 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0