Jump to content
php.lv forumi

PHP gļuko


m8t

Recommended Posts

Šodien centos izveidot vienu lietu, nav svarīgi tieši ko, bet lūk kā man sanāca: Centos pievienot citus failus caur include, bet viņš man meta error. Katram gadījumam izveidoju divus atsevišķus failus

<?php
include("te.php?test");
?>

un

<?php
if(isset($_GET['test'])) {
echo 123;
}
?>

Kad palaižu pirmo failu man uzmetās šāds error:

Warning: include(te.php?test) [function.include]: failed to open stream: No error in C:\xampp\htdocs\blog\t.php on line 2
Warning: include() [function.include]: Failed opening 'te.php?test' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\blog\t.php on line 2

Ja pirmā faila include ceļu uzlieku uz te.php bez ?test, tad viss iet.

 

Pirmo reizi saskaros ar tādu kļūdu. Agrāk man šis viss gāja bez nekādiem errors, tagat pēkšņi sāk parādīties errori. Ir idejas, kā to labot?

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