chrysaxel — 2012-07-23T06:05:21-04:00 — #1
I do not speak English very well so please excuse me. I bought "The programmer, create a website with database in PHP & MySQL" 4th Edition by Kevin Yank. I arrived by traveling in Chapter 6 on "includes" but I have a problem as follows: "Warning: include_once (C :/ wamp / www / / includes / auxiliaires.inc.php) [function.include-once ]: failed to open stream: No such file or directory in C: \ wamp \ www \ leprogrammeur \ chapter6 \ auxiliaires_blagues \ blagues.html.php on line 1
Warning: include_once () [function.include]: Failed opening 'C :/ wamp / www / / includes / auxiliaires.inc.php' for inclusion (include_path = '. C: \ php5 \ pear') in C: \ wamp \ www \ leprogrammeur \ chapter6 \ auxiliaires_blagues \ blagues.html.php on line 1 "and I can not move forward. I wanted to clarify that I speak French and I program with utilities in French.
I await your help.
cpradio — 2012-07-23T08:05:53-04:00 — #2
Hi chrsaxel, The message you received is because PHP cannot find the file auxiliaires.inc.php. Can you paste the code from your blagues.html.php file so I can see how you are referencing that file?
starlion — 2012-07-23T08:06:47-04:00 — #3
Well, what directory is "/includes/auxiliaries.inc.php" located in?
chrysaxel — 2012-07-23T08:42:16-04:00 — #4
here is the code that appears in the document I Bought:
<?php include_once $SERVER['DOCUMENTROOT'] . '/includes/auxiliaires.inc.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<title>Liste des blagues</title>
<p><a href="?ajoutblague">Ajoutez votre propre blague</a></p>
<p>Voici toutes les blagues de la base de données :</p>
<?php foreach ($blagues as $blague): ?>
<form action="?supprblague" method="post">
<?php print_html($blague['texte']); ?>
<input type="hidden" name="id" value="<?php
echo $blague['id']; ?>"/>
<input type="submit" value="Supprimer"/>
<?php endforeach; ?>
chrysaxel — 2012-07-23T08:49:01-04:00 — #5
The files in the directory of wamp (www) and precisely in the "chapter6"
starlion — 2012-07-23T08:54:20-04:00 — #6
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/includes/auxiliaires.inc.php'; ?>
$SERVER['DOCUMENTROOT'] apparantly points to: C :/ wamp / www / (based on your error message)
So, in order to find the file at C: \ wamp \ www \ leprogrammeur \ chapter6 \ includes \ auxiliaires.inc.php (which is where you said the file was)
Your code line should look like:
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/leprogrammeur/chapter6/includes/auxiliaires.inc.php'; ?>
chrysaxel — 2012-07-23T10:04:52-04:00 — #7
Merci ça marche. Je reviendrai vous voir si j'ai des problèmes.Merci encore.
chrysaxel — 2012-07-23T10:08:54-04:00 — #8
Thank you it works. I will return to you if I have problèmes.Merci yet.
chrysaxel — 2012-07-24T05:04:44-04:00 — #9
I went through the book by Kevin Yank but does not solve my problem where I bought it. I want to develop a website where the news (text and photos) are in cms. The user can make updates news.Or this book is a special case of cms jokes. Can you help me with this?
cpradio — 2012-07-24T06:33:30-04:00 — #10
Do you want to learn how to write such a CMS?
If so, there are a lot of books whose knowledge you would have to combine to get there. Or if you just want to learn how to utilize an existing CMS such as Drupal or Joomla, you'd be better off purchasing a book specifically for those existing CMSes
As for the book you purchased, think of Jokes as News and if you rename everything accordingly, it comes close to providing that feature (you may need a few additional fields added to your database, web forms, etc.
chrysaxel — 2012-07-24T09:50:03-04:00 — #11
What if a book is very practical development of CMS like wordpress, joomla, drupal? a book about a very practical example and is also published in French.it is mainly the news that interest me. When the user puts a picture and text there is a link on a small photo and text that appears on the homepage. And when it clicks it opens the page with the great big picture that was in miniature. But the book I bought does not cover it very well. that's why I asked for help.
cpradio — 2012-07-24T10:26:52-04:00 — #12
You will need to read reviews and take a look at the table of contents before buying (or go to the Library and see if they have the book or a book store and just flip through it to see if it meets your requirements).
Most CMSes do what you want out of the box. I definitely know Wordpress can do that, so I am certain Joomla and Drupal can too.