Inserting a php page from an external file

All Quick 'n Easy Web Builder support issues that are not covered in the forums below.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Inserting a php page from an external file

Post by alex4orly »

I have a page on the server and noticed it missing from the project.
I tried inserting it from and External file (I downloaded it to my computer) but it ends up inserting a different page, I tried several time but it keeps inserting instead the index.php of that same project

Hope you can give me a hint...

Thanks
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

Using "external file" in the Site Manager should work.

What exactly do you means by?
but it ends up inserting a different page
Are you sure you have selected the correct file?
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

I have 3 files on my pc desktop.
I icky the one I want, but it inserts the fileme I selected, but the content of another file.

Thanks
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

That is very usually! But maybe you have already used the same name for another page?
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

No, I have not.
But if I did, how will it insert the same name again?
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

It works for me, so I need more details.
Please share the project file, the file you are trying to insert and describe the exact steps to reproduce this behavior.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

Here is the project file, just empty - started it for sending to you
https://squadron-125.org.il/fileInsert.qwb
And the file I am trying to insert
https://squadron-125.org.il/loginfail4pablo.php - it seems that the index.php code is embeded inside this file???? It launches the website itself....

Thanks
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

Do you mean that you are trying to embed a file on the server?
That is not possible it must be a local file (on your local disk). PHP code only exists on the server.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

Well, I removed the PHP segment, changed the file name to .html and tried to insert it agian into the project, the following is all that was imported from the entire file.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Page</title>
<meta name="generator" content="Quick and Easy Web Builder - https://www.quickandeasywebbuilder.com">
<style>
body
{
background-color: #FFFFFF;
color: #000000;
font-family: Arial;
font-weight: normal;
font-size: 13px;
line-height: 1.1875;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
</body>
</html>
But the html section is much longer, where is the rest?

Thanks
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

Did you insert it as a local file?

Did you mean 'import' or 'insert'? These are two different options.

'Insert external file' will add the file "AS IS". The software will not make any changes to the file.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

I used "insert External file", I don't know where is import.
My my package is not ok?

Thanks
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

What are the exact steps to reproduce this behavior?
How do you know the wrong file is added? Where do you see this?
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

I open the project
Position my mmouse cursor on the top HOME icon
Right click, select : Insert External File
It open File Manager, I navigate to the Desktop
I select the html file (I renamed the file and removed the PHP segment
I click the "Open" button at the bottom, should it say maybe "Insert" ?
It inserts the file I selected, BUT
The file appears as a LINK to the file, not the file itself
The content of the link, shows the content of the Index.html in the project, NOT the content I need to insert - the name of the file is login.html

That's what happens at my end

Thaks
User avatar
Pablo
Site Admin
Posts: 3925
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Inserting a php page from an external file

Post by Pablo »

The file appears as a LINK to the file, not the file itself
Correct, the file will be added as a link.

You cannot open/edit or view the file inside the software. it is just a reference to an external file so you can use it in menu's etc.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Inserting a php page from an external file

Post by alex4orly »

But, what about the content, of another page?
Post Reply