yatahaze Posted January 12, 2006 Posted January 12, 2006 I'm getting an error on this one page, but it still works. Is there a way to hide error messages on that specific page with some php code or something?
MoisesZaragoza Posted January 12, 2006 Posted January 12, 2006 If you add a @ infromt of the line it will hide the error at the end of the day the code will be good
Guest Posted January 12, 2006 Posted January 12, 2006 Instead of hiding it you should fix whatever is causing it...
MoisesZaragoza Posted January 12, 2006 Posted January 12, 2006 can you print out the error of that page? at the end of the day the code will be good
yatahaze Posted January 13, 2006 Author Posted January 13, 2006 Warning: main(includes/configure.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Welcome, Please Sign In It has to do with this post. I'm trying to make a login page on another site (different domain, different directory on the server). When I use this code (in login.php on the other site) I get the errors: require('includes/application_top.php'); require_once('http://shop.mysite.net/includes/application_top.php'); When I use this code (in login.php on the other site) I get no errors, but after logging in I have to login a second time once it redirects me to the actual osc site: require('includes/application_top.php');
MoisesZaragoza Posted January 18, 2006 Posted January 18, 2006 Warning: main(includes/configure.php): failed to open stream: No such file or directory in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\Inetpub\wwwroot\catalog\includes\application_top.php on line 29 Ok Lets try this Oppen the file catalog\includes\application_top.php and look for line 29 it should be require('includes/application_top.php'); and change it to require('application_top.php'); at the end of the day the code will be good
yatahaze Posted January 18, 2006 Author Posted January 18, 2006 Ok well, (include_path='.;c:\php4\pear') was the problem. I dont even have this folder on my computer, but I made it and put a copy of my includes folder into it, now im getting no errors. I don't have a clue where it got c:\php4\pear from.
MoisesZaragoza Posted January 18, 2006 Posted January 18, 2006 Is your computer the server? you should not use Absolute addressing "C:\" at the end of the day the code will be good
yatahaze Posted January 18, 2006 Author Posted January 18, 2006 Not the one I'm using now, but the server is here. I never gave it that address. I dont know where it came from because I never even had a folder named php4. I'm trying to search to see where in the files that info is saved... do you know?
yatahaze Posted January 18, 2006 Author Posted January 18, 2006 include_path is a php.ini setting, there are 2 actually in the same file. According to my php.ini file, both are not c:\php4\pear.
MoisesZaragoza Posted January 18, 2006 Posted January 18, 2006 Not the one I'm using now, but the server is here. I never gave it that address. I dont know where it came from because I never even had a folder named php4. I'm trying to search to see where in the files that info is saved... do you know? well the php4 folder is created when you instal PHP4 on your computer or on the server at the end of the day the code will be good
MoisesZaragoza Posted January 18, 2006 Posted January 18, 2006 include_path is a php.ini setting, there are 2 actually in the same file. According to my php.ini file, both are not c:\php4\pear. Here is some informaion on ini files php.NET Appendix G. php.ini directives at the end of the day the code will be good
yatahaze Posted January 18, 2006 Author Posted January 18, 2006 My PHP folder is C:\php though. The include paths that are set inside my ini folder link to c:\php and not c:\php4.
MoisesZaragoza Posted January 18, 2006 Posted January 18, 2006 I want to help but I'm not sure how to help. I'm sorry I was not much of a help at the end of the day the code will be good
yatahaze Posted January 18, 2006 Author Posted January 18, 2006 Got me going pretty far, im so close... I got all the links and everything working in sort of a different way. I have a virtual directory mapped in the other site that just links to the oscommerce catalog folder. I have alternate application_top/configure/filenames php files for the alternate login/create_account pages that I made where I stripped out the columns and headers. The problem I'm having now is, when I login from the other site, it redirects to the proper url, but it doesnt log me in. I'm kind of stumped as to what the problem is. I'm wondering if I use MySQL sessions instead of files it will work... Edit: That's out of the questions, everyones shopping cart is empty if I do that.
yatahaze Posted January 18, 2006 Author Posted January 18, 2006 In my custom filenames.php, if I change the filename for login.php to my alternate file, it logs me on... but it uses the other url. When I click on basically anything on the page it switches to the correct url, and I'm no longer logged in.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.