| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > PHP Help! include url without changing allow_url_include to "on" |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Join Date: May 2007
Posts: 11
|
PHP Help! include url without changing allow_url_include to "on"
Hello. I would like to include one of my wordress page on static page. However, allow_url_include is off on the php ini setting and I don't have authority to change these settings. By the way I am using PHP 5.2.3. I research about this and found two possible clues. Code:
But I have to put $_GET['page_id'] on destination page, and I don't know how this will work when it comes to wordpress. Second one is using curl. I found this function in another forum and it works. Code:
I am not programmer and I don't know about web security well. I heard that allow_url_include is off on default setting because there are security issue. How about method above? Is this secure to do? or is there any better way to do this? |
|
|
|
|
|
#2 (permalink) |
|
Moderator
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
|
What are you trying to achieve, exactly? "I would like to include one of my wordress page on static page." is vague and practically meaningless. Find good advice in the beginners web design thread.
patrick o'neill web developer | blog | spam humor |
|
|
|
#3 (permalink) |
|
Registered User
Join Date: May 2007
Posts: 11
|
Sorry, my question was not clear. I would like to know the code below is secure or not. Code:
|
|
![]() |