Jump to content

Recommended Posts

I have a website with a folder system

now if you click on a button I want from

s1/index/dorf1.php

to

s2/index/dorf1.php

 

the folders have the same files but they have different content

so I want to save the dorf1.php or any other name in the code and make a link for it

 

anyone have an idea?

Link to comment
https://forums.phpfreaks.com/topic/266718-file-which-links-to-another-folder/
Share on other sites

If I'm on the site

s1/folder/file A

then I want a link to

s2/folder/file A

And if I'm on the site

s1/folder/file B

then I want a link to

s2/folder/file B

 

and so on

but it's much work to do that all with case or elseif

is there a code fore that?

 

what you on about , you don't go into folders for what?

 

you use folders yes but go into them for what.

 

unless you want to go into a folder then use a .exe still don't make sense .

 

what you doing there?

 

 

what the project for....

 

if you press a button to see what in that folder then list the files what you mean.

 

can then use code to trigger the files in that folder?

 

what you on about , you don't go into folders for what?

 

you use folders yes but go into them for what.

 

unless you want to go into a folder then use a .exe still don't make sense .

 

what you doing there?

 

 

what the project for....

 

if you want to press a button to see what in that folder, then you can list the files is that what you mean.

 

you can then use code to trigger the files in that folder you in?

Its a Php script

s1 and s2 are servers

and I want that when I click on the button I come to the exactly same path in s2 like in s1 and the other way around

Do you wish to get the parsed content from server A, to use on server B?  Just call the file with a file_get_contents.

If you wish to send variables to server A from server B, and have the file parse them, you will have to send those variables via POST, or GET.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.