PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 13th, 2007, 07:40 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Posts: 67
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.

<?php
//////////////////////////// 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 legal@photopost.com //
// Developer: Michael Pierce (http://www.mdpnet.com) //
// //
// PhotoPost Copyright 2007, All Enthusiast, Inc. //
////////////////////////////////////////////////////////////////////////////


include("../photopost/index.php");



?>

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!

THANKS

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.
Frank Shaw is offline   Reply With Quote
Old June 13th, 2007, 10:02 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 14th, 2007, 06:29 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Posts: 67
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
set_magic_quotes_runtime(0);
}

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.

THANKS

Frank H. shaw
Frank Shaw is offline   Reply With Quote
Old June 14th, 2007, 08:55 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Frank your product functions fine.

http://burningtaper.org/photopost/index.php

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

Code:
Content visible to verified customers only.
We have suggested in this thread and also in your helpdesk thread if you wish to have Photopost show on your webroot to actually install photopost on your web root.

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

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 14th, 2007, 01:26 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Posts: 67
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 :

require "./photopost/pp-inc.php";

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.

thanks again
Frank Shaw is offline   Reply With Quote
Old June 14th, 2007, 01:42 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 14th, 2007, 10:44 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Posts: 67
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:

<?php include("nav.php");

require "./photopost/pp-inc.php";

?>

and some time later :


<?php

// include("../photopost/index.php");

include("C:/Inetpub/vhosts/burningtaper.org/httpdocs/photopost/index.php");

?>

and allso this


<?php

include("../photopost/index.php");

// include("C:/Inetpub/vhosts/burningtaper.org/httpdocs/photopost/index.php");

?>

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

<?php include("nav.php");

// require "./photopost/pp-inc.php";

?>

and only use the following :

include("C:/Inetpub/vhosts/burningtaper.org/httpdocs/photopost/index.php");

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?
Frank Shaw is offline   Reply With Quote
Old June 15th, 2007, 07:13 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old June 15th, 2007, 08:52 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Posts: 67
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!

THANKS

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!
Frank Shaw is offline   Reply With Quote
Old June 15th, 2007, 09:09 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Quote:
Originally Posted by Frank Shaw View Post
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.
At no time did we ever tell you to include both pp-inc.php and index.php together on the same page

Quote:
Originally Posted by Frank Shaw View Post
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
Your issue has nothing to do with our program. Our program is here

http://burningtaper.org/photopost/index.php

Your issues is with some php file your trying to make here which has nothing to do specifically with our program or support.

http://burningtaper.org/index-6.php

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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old July 7th, 2007, 11:06 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jun 2007
Posts: 67
bad install was the problem and the removel of the install script afterwards

THANKS

Farnk H. shaw
Frank Shaw is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I call the authenticate function letmein Photopost Pro How Do I...? 5 May 8th, 2007 08:14 PM
PHP include / page header Scrap4life General Discussion 2 August 29th, 2006 02:57 PM
Problem with a PHP include breaking Photopost Index Chris Marks Photopost Pro Installation & Upgrades 6 January 27th, 2006 07:47 PM


All times are GMT -5. The time now is 01:07 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0