This topic is locked

Almost there with PHPrunner

7/27/2005 5:37:15 PM
PHPRunner General questions
B
bwilliams author

My phprunner files are now uploaded to the remote web server. I can see from cpanel that all the files have been built properly. However, I cannot get my web site site, which is 100% html and written using Frontpage, to link to the login.php page or any other PHPrunner page. I know this is something very simple to fix, but could someone sugest what I need to do? I'm hoping that it's something related to a php.ini file or something like that. I have other PHP scripts running now. But my web site doesn't use PHP.
I expect that all I need to do is enable my web site to link to the newly created login.php file?
Thanks from a newbie to PHP

admin 7/28/2005

Hi,
I'm not sure I fully understand the problem.
After you uploaded files to your webserver, you can place a hyperlink to login.php file on any existing page.

B
bwilliams author 7/28/2005

That works, of course.
However, I'd like to incorporate the login page (login.php) into an html page. Can I do that? Can I insert the login.php code into the body of an html page? What else would i need to do to integrate with all the other php files in my phprunner/output directory?
The reason I want to do this is to make the phprunner pages more seamless with my current web site which currently has no php script.
Thanks

admin 7/29/2005

Hi,
you can add a header and footer to all PHPRunner created pages to make them look like the rest of your site.

Here is the article describing this procedure

Supertop.php and superbottom.php

B
bwilliams author 7/29/2005

I did use supertop and superbottom. They work OK.
But I was wondering if there are any issues dropping the php code generated by PHPrunner into my current html pages. For example, taking the login.php code from the PHPrunner/output directory and embedding it into the body of my html page that has all the attributes of my site's web page design.

admin 7/29/2005

Hi,
embedding PHPrunner pages into existing HTML documents is rather complicated task. In most cases it's easier to use supertop.php and superbottom.php
Anyway, you can create your own login form on your html page.

Here is the code you can use

<form name="phprunnerlogin" method="post" action="login.php">

<input name="username">

<input type=password name="password">

<input type=hidden name="btnSubmit" value="Login">

<input type=submit value="Login">

</form>


You can change form name and button caption as you wish. You should add a path to "login.php" if needed.

B
bwilliams author 7/29/2005

That worked Great! Thanks.
One more thing. I am also using supertop and superbottom. Superbottom worked fine, but using supertop my gif image will not show up on the phprunner pages. Two things come to mind. Do I just place the gif image in the phprunner/include file and then edit supertop to reference the image? Or are there size/formatiing issues to worry about? My gif image is a banner 480 by 240.

admin 7/31/2005

Hi,
you can leave image file where it is and use absolute image URL in supertop.php file.

<img src="https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=5350&image=1&table=forumreplies">;