Jump to content
php.lv forumi

SubDirektorijas uzzināšana


daGrevis

Recommended Posts

Nav kāda iespēja, kā uzzināt subDirektoriju bez cilvēka iejaukšanās? Nu domāju http://example.com/šo/šo_arī/un_šo_protams.

...un vispār man met ārā ķļūdu izmantojot jau uzzināto HTTP_HOST'u...

 

Bija nepieciešams definēt vietu, uz kuras atrodas visi faili... NEzinu kā lai to paska. RootPath.

Tātad...

http://codepad.org/vsO9PEra

 

..., bet met ārā ķļūdu, lai gan tāds fails pastāv...

Warning: require() [function.require]: URL file-access is disabled in the server configuration in C:\xampp\htdocs\subDir\includes\core.php on line 7

Warning: require(http://localhost/subDir/includes/configuration.php) [function.require]: failed to open stream: no suitable wrapper could be found in C:\xampp\htdocs\subDir\includes\core.php on line 7

Fatal error: require() [function.require]: Failed opening required 'http://localhost/subDir/includes/configuration.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\subDir\includes\core.php on line 7

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...