Jump to content
php.lv forumi

Php konfigurācija


Recommended Posts

Lieta tāda! Uzstādīju uz sava mājas PC Apehce serveri, Mysql datubāzi un php (pēdējo versiju). Vis itkā iet.... Mysql dqtubāzi vadu ar PhpMyAdmin.

bet kad skatos lapu kaut kas līdz galam neiet

Warning: require(/meinards/config.php) [function.require]: failed to open stream: No such file or directory in C:\public_html\meinards\includes\head.php on line 12

Fatal error: require() [function.require]: Failed opening required '/meinards/config.php' (include_path='.;C:\php5\pear') in C:\public_html\meinards\includes\head.php on line 12

 

Varbūt kādam ir bijusi līdzīga problēma un var man palīdzāt?

 

PRIECĪGUS SVĒTKUS

Edited by johanes
Link to comment
Share on other sites

johanes-->

tev tachu skaidri un gaishi uzrakstiits:

No such file or directory in C:\public_html\meinards\includes\head.php on line 12

slinkums paskatiities to 12 rindinju?

un dodu 100% ka tur ir noraadiits nepareizss celjsh

---

/meinards/config.php

-----

un tev zem direktorijas includes NAV subdirektorija (meinards\)

pieliec priekshaa ( .. )

vai novaac ( / )

-----------

Link to comment
Share on other sites

Tā ir vieta kur it kā ir klūda....

 

 

<?php

$configfile = "$DOCUMENT_ROOT/meinards/config.php"; //Path to config.php file
$stylefile = "$DOCUMENT_ROOT/meinards/includes/style.php"; // Path to style.php file
$subdir = "$DOCUMENT_ROOT/meinards"; //The directory of the script - no trailing slash

?>
<head>  <meta http-equiv="content-type" content="text/html; charset=windows-1257">
<?
require("$configfile");
require("$stylefile");

 

Ja kas tad saits atradās uz servera no.lv, vis gāja čirikos.... vot no localhost neiet :(

Link to comment
Share on other sites

johanes--> negribas sveetkos lamaaties :(

nu noraadi kur tie faili atrodas un viss.....

Lai programmetu IR jaabuut vismaz elementaaram zinaashaanam par OS un Failu stuktuuru

cit.

//Path to config.php file

cit/

tev tachu skaidriuzrakstiits --> celjs uz config failu....

Edited by Grey_Wolf
Link to comment
Share on other sites

$configfile = "$DOCUMENT_ROOT/meinards/config.php"; //Path to config.php file

doc root tev ir piem: c:\web\apache\htdocs

a tas skripts head.php tev noteikti staav: c:\web\apache\htdocs\manamegalapa\

$DOCUMENT_ROOT tev vaig noraadiit: c:\web\apache\htdocs\manamegalapa\

tad tev vaidzeetu straadaat!

Link to comment
Share on other sites

×
×
  • Create New...