Radid PHP - Preview problems.

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

You can only map local folders to localhost, not a remote site. If you want to map to remote site, you have to have the files uploaded there.

if you map

c:\temp\atemp
to
http://www.site.com/atemp/
and want to preview test.php, you absolutely must have test.php both in c:\temp\atemp and also uploaded to http://www.site.com/atemp/

the mapping makes program to think that c:\temp\atemp\ is the same folder as http://www.site.com/atemp/ so if you preview c:\temp\atemp\test.php, the program would open the http://www.site.com/atemp/test.php url and it must exist and you must have uploaded the latest version of the file.

Please note that you can also map remote folder (instead of local one) directly.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

P.S. We are speaking about the Internal Preview I suppose.
Karlis Blumentals
Blumentals Software
www.blumentals.net
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

The files are uploaded to the remote site, I have the project's FTP mapping to the appropriate web server directory & it's got an exact copy of the working project files on it.

I don't follow this comment:
you absolutely must have test.php both in c:\temp\atemp and also uploaded to http://www.site.com/atemp/
Surely if it's a real-time preview, Rapid PHP should be saving the file being edited to the filesystem path in the preview mapping, so the current version of the of the file is available to be previewed?

I'm also not sure what you mean by mapping a remote folder directly?
I emailed you a couple of weeks ago to ask if the FTP mapping facility in the Preview mapping setup was working, and you said:
"Unfortunately this is not possible right now. And I am afraid we have not planned this for the nearest future. "

You also said earlier in this thread that "The filepath must also be real/physical, it won't work with virtual paths."

How else do I map a folder on a remote server??
Robert Jenkins
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

If you have a remote server, the only way is to map by FTP. (I do not remember what you did ask, but it seemed to be something a bit differrent).

Example:

FTP::www.blumentals.lv\/public_html|

and

http://www.blumentals.lv/

providing that anything we have in public_html on the remote server is displayed via URL http://www.blumentals.lv/

There is no other way to map remote folder, any folder emulators or web drives just might not work.
Karlis Blumentals
Blumentals Software
www.blumentals.net
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

Hi Karlis,

I'm still stuck on this..

I have removed the old preview mapping rather than editing to avoid any 'leftovers' and created a new one.

Using the FTP Browse to locate the server web root produces a slighty odd URL with both left & right slashes, but it's similar to your example and identical to the (working) FTP path in the project settings so presumably OK.

The right side of the mapping is the full HTTP://www.url of the web site as I'm using in browsers to view the site at present (after each 'save and upload'), so it has a full & working set of files on there.

After doing this there was a second or two delay on the preview screen, but it then brought up the 'not configured' page again...


Sorry to keep going on about this, but it's the only thing about Rapid PHP that bugs me - everything else about it spot on & it makes this stick out.

It's not stopping me working, it just means I have to have a browser permanently open on the site & keep refreshing.
Robert Jenkins
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

For previewing to work, you need a local server. Consider installing PortableWebApp, as its a self contained Apache and PHP install, and works very well. Just click 'n go. Its all free.

http://portablewebap.com

If you then set the mappings to c:\Program Files\PortableWebAp3.2\Program\www\localhost (and save files here) and set the webserver to http://localhost:800/ then this should all work.
Last edited by chrisjlocke on Mon Dec 17, 2007 1:05 pm, edited 1 time in total.
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

That does not tally with Karlis' last posting above, he states that a mapping can be set up with FTP & gives an example??
Robert Jenkins
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

It probably does, but I was suggesting a local server which is known to work, and work very well. Once you've got it working locally, just upload the files.
Quicker than uploading, testing, finding a problem, solving, uploading, testing, etc.

The only downside (but solvable) is that MySQL isn't included with PortableWebAp.
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

From Rapid PHP Preview screen:
'You can configure this preview window to work with your web server, but you must have a local or remote web server to publish your PHP file.'

This states directly that, as Karlis has confirmed, it is supposed to be capable of using the built-in preview with a remote web server.

Either I have the configuration wrong, or there is a bug in this facility.

I don't think I have the config wrong;
The document root is set to the correct FTP path using the 'browse' button, which then appears exactly the same as the (working) 'save to FTP' path in the project setup.

The web server URL is given as a full, standard HTTP://www.aaa.com/dir/ URL, exactly as I'm using to view the site with a separate web browser.

Installing a local server is not an option and would not address the bug, if that's what it is..
Robert Jenkins
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Yes, it works with remote web server, providing that the files are located on FTP. At least it works for me and many other users that have done the mappings.

Usually the problems are in the in-precision of mappings. I could help if you could send me to software[at]latnet.lv your FTP host, username, password together with the corresponding web url, so that I can test it and send you the correct mapping.
Karlis Blumentals
Blumentals Software
www.blumentals.net
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

Hi Karlis,
thanks for the offer, I've emailed details of a spare system we can use for testing.
Robert Jenkins
rajenkins
Posts: 32
Joined: Tue May 23, 2006 11:04 am

Post by rajenkins »

Just to update people following this thread:

There is a setback in tracing the preview problem as Rapid PHP 'Save to FTP' does not work at all with the empty website I set up of for Karlis to do the tests on..
Other FTP clients & even FTP from within Internet Explorer work fine on that site.
(It's running on one of Pipex's BSD-based Unix systems.)

The FTP Browser works and can connect to the server, but the Save to FTP function either gives an 'access denied' type error or an error popup with "Access violation at address 00656B98 in module 'rapidphp.exe'. Read of address 00000000."

Obviously until it has working FTP there is no chance of preview working.
Robert Jenkins
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

It does not for you and rarely for some other users too (need to find out why), but it should work for most of us.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply