Jump to content

[SOLVED] file path


php.ajax.coder

Recommended Posts

u could find out the current location of the running file with $_SERVER["SCRIPT_FILENAME"],

then use the explode version to put em into an array like this.

$array = explode('/',$_SERVER["SCRIPT_FILENAME"]);

 

then from there u can work to the path u want using php's array functions and then implode em back together.

Link to comment
https://forums.phpfreaks.com/topic/151565-solved-file-path/#findComment-796074
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.