Jump to content

Patami

Members
  • Posts

    15
  • Joined

  • Last visited

Patami's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. same problem ... License File Expired server 70
  2. okay thank you very much, I'll do that have a nice day
  3. hello I've got today (yesterday I had nothing) a problem with the sessions. On all the pages of my website which uses the sessions, there is this message : Warning: session_start(): open(/tmp/sess_abbc7efc2f12f8777eb24b74db737da5, O_RDWR) failed: Read-only file system (30) in /home/qeadumlu/public_html/index.php on line 5 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/qeadumlu/public_html/index.php:5) in /home/qeadumlu/public_html/index.php on line 5 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/qeadumlu/public_html/index.php:5) in /home/qeadumlu/public_html/index.php on line 5 Could you explain me what happens please ? How can I correct the problem ? I see "cache limiter", do I have to empty a folder ? thank you ..
  4. of course you can I use only one index.php (at the root of my ftp). You know that with PHP, a page can change according to a variable (in the url in my case). It's very easier for me to manage a website with several sections who has only one index.php ! So, to choose the section that the index.php has to show, I have to define the variable "section" in the url example : index.php?section=my_section For this, there is no problem. Once it's defined by the url, I save the name of the section in a session variable, to keep the choice. If the member of my website comes at the homepage, selects the section and defines it, ok there is no problem. But if he adds a page in his favorites, and if he comes later on the same page. For his first visit, he had defined the section in the url, and this definition had been saved with the sessions. But when he adds the page in his favorites, the session variable is not saved. So, when he comes back later, as the session variable is lost, the section is not defined, and the index.php doesn't show the good page ! To correct the problem, I think I can use the subdomains. So the section is always defined in the url
  5. yes, but I want to keep the subdomain in the url .. how can I work ?
  6. tell me, by default, a subdomain has for target a subfolder with the same name. Where is this property defined ? Is it on the configurations files of the server, or Can I change it ?
  7. hello no I don't want that ! My website is a portal, I have several sections. I want Each section is asssociated with a subdomain. For a technical reason, I use only one index(.php) for all the sections. To define which section this index has to show, I use a variable in the url (index.php?section=example). To conserve the value of this variable, I'd like to use the subdomains, it would be better. So, each subdomain has to point at a url, composed by of course the index.php of the root, and the definition of the variable : For the example, the section "ogame" has to point at "index.php?section=ogame" I can't use any simple redirection as after the redirection, I obtain the redirected url in my url, and no more the subdomain (so the variable is not defined any more) I hope you'll understand me thank you ahead Patami
  8. hi thank you for your answer, it's a solution, but the frames are not to the w3c standards, and I have to respect these norms .. I asked to your technical support, and they said me I could use the url rewriting .. What do you think about this proposition ?
  9. Hi, Does nobody know the answer to the question ? thank you ahead Patami
  10. Hello, I've got a question about the possibilities of the subdomains. My website works with php. It's a portal, so several sections on the same website. Each section has its own design and its own content. I've got only one index.php, at the root of my site for all the sections. So the section (design and content) changes depending on a variable in the url (index.php?section=name_of_the_section) And after that, I use the sessions to preserve the choice of the section. If there is no variable in the url, there is a default section. So, there is no problem if somebody comes at the homepage. But if somebody goes directly on another page, with not defining the section in the url but directly the page (index.php?page=the_page) this page could be only for a section (so it could have to use a specific design). And as nothing is defined, it uses the default design ! To correct this problem, I think the solution is to use subdomains. So I would be able to define the section(with nothing to write in the url ! it would give a nice and simple url). So to keep the definition on all the pages, the subdomain has to always be there. If I use a redirection, the subdomain is changed by the redirected url. If I don't use any redirection, it goes automatically to a subfolder named as the subdomain. I'd like to change this. The best would be to not use any redirection, and the subdomain would have to goes to the file index.php at the root, with defining the variable as "index.php?section=the_name". My question is so, how to change the target of the subdomain, and conserve the subdomain in the url ? Thank you for your answer best regards Patami
  11. Hi, I've got now more and more problems with my connexion to the server mysql When I want to go on my website, I've got sometimes this message : Warning: main(includes/bbcode.php): failed to open stream: Too many open files in /home/qeadumlu/public_html/diablo2/header.php on line 15 Fatal error: main(): Failed opening required 'includes/bbcode.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/qeadumlu/public_html/diablo2/header.php on line 15 There are no problems in the files, because it sometimes works. I'd like to know what's the problem ? What do I have to do ? "Too many open files " I don't understand why it says there is too many open files, is it limited ? thank you ahead Patami
  12. ok thank you I haven't got any problems now, someone helped me !
  13. hi, I've got a problem on my website with a php script. It runs without problems on my computer with easy php, and on others hosts too, but it doesn't runs on TotalChoice Hosting ! I'd like to know why it doesn't runs here's my code : the problem is that when I want to change my page with my script (in red), I don't see the text of my page (who is in the database) in the textarea ! but I see the title ! page "gestion.php" : (problem in red) ><? reqmysql("CREATE TABLE IF NOT EXISTS `page` ( `id` int(11) NOT NULL auto_increment, `titre` varchar(250) NOT NULL default '', `contenu` longtext NOT NULL default '', PRIMARY KEY (`id`));"); Bloc_Head("Gestion de vos pages "); if ($grade == 4) { if ($faire != "mod" && $faire != "mod2" && $faire!= "del" && $faire != "cree" && $faire != "creat"){ echo"<br><center><h3><a href='index.php?mod=page&ac=gestion&faire=cree'>Ajouter une page</a></h3></center><br><br>"; $req_page = mysql_query("SELECT * FROM `page`"); while ($page_info = mysql_fetch_object($req_page)) //Debut boucle de listing des pages { echo "<img align=middle src=themes/$theme/images/puce.gif> <a href=index.php?mod=page&ac=page&id=$page_info->id>$page_info->titre</a> <a href=index.php?mod=page&ac=gestion&faire=mod&id=$page_info->id>[modifier]</a> <a href=index.php?mod=page&ac=gestion&faire=del&id=$page_info->id>[Supprimer]</a><BR>"; } // Fin de la boucle qui liste les pages } // Fin de la page d'accueil de la gestion des pages //Début de la page de modification des pages [COLOR=red]else if ($faire == "mod"){ echo "<br><u>Modifier une page :</u><br><br>"; echo "<script language=Javascript src=bbcode.js></script> <form name=formulaire method=post> <input type=hidden name=mod value=page> <input type=hidden name=ac value=gestion> <input type=hidden name=faire value=mod2> <input type=hidden name=id value=$id>"; $req_page_page = reqmysql("SELECT * FROM `page` WHERE `id`='$id'"); $req2_page_page = mysql_fetch_object($req_page_page); if (!get_magic_quotes_gpc()) { $req3_page_page = stripslashes($req2_page_page->contenu);} echo "<table>"; echo "<tr><td>Titre de la page :<input type=text size='40' name=page_titre value='$req2_page_page->titre'></td></tr><td> "; include ("includes/balises.php"); echo "</td></tr><br>"; echo "<tr><td><textarea name=texte rows=30 cols=100>$req3_page_page</textarea></td></tr>"; echo "<tr><td><center><input type=submit value=\" Modifier \"> <input type=button value=\" Annuler \" onclick=history.go(-1)></center></td></tr>"; echo "</table>"; echo "</form>"; }[/COLOR] //Quand on a cliquer sur valider après une modification d'un script d'un sponsor else if ($faire == "mod2"){ if (!get_magic_quotes_gpc()) { $texte = addslashes($texte);} reqmysql ("UPDATE `page` SET `contenu` = '$texte' WHERE `id` = '$id'"); echo "Page modifiée<br>"; echo "<br><a href=index.php?mod=page&ac=gestion>Retour"; } //script pour effacer une page de la bd if ($faire == "del"){ reqmysql ("DELETE FROM `page` WHERE `id` = '$id'"); echo "Page supprimée<br>"; echo "<br><a href=index.php?mod=page&ac=gestion>Retour"; } //script pour créer une nouvelle page if ($faire == "cree"){ echo "<script language=Javascript src=bbcode.js></script> <form name=formulaire method=post> <input type=hidden name=mod value=page> <input type=hidden name=ac value=gestion> <input type=hidden name=faire value=creat>"; echo "<table>"; echo"Veuillez indiquer un titre pour votre page ainsi que mettre son contenu<br><br>"; echo "<table>"; echo "<tr><td>Titre de la page :<input type=text size='40' name=titre_page></td></tr><td> "; include ("includes/balises.php"); echo "</td></tr><br>"; echo "<tr><td><textarea name=texte rows=10 cols=100></textarea></td></tr>"; echo "<tr><td><center><input type=submit value=\" Ajouter \"> <input type=button value=\" Annuler \" onclick=history.go(-1)></center></td></tr>"; echo "</table>"; echo "</form>"; } //Ici c'est le script qui va insérer la nouvelle page dans la base de donnée if ($faire == "creat"){ if (!get_magic_quotes_gpc()) { $contenu_page = addslashes($contenu_page);} reqmysql("INSERT INTO `page` VALUES (\"\", \"$titre_page\", \"$texte\")"); echo"<center><b>Votre nouvelle page à été correctement ajoutée au module page par <a href=http://www.calfou.com>Calfou</a>.</b></center>"; echo "<br><a href=index.php?mod=page&ac=gestion>Retour"; } //Si pas grade 4 alors on t'enmerde et tu dégage de la page bouffon } else { include ("erreur_grade.php"); } close_table(); echo"<a href=login.php>Retour à l'espace membre</a>"; ?> I hope you will help me, thank you very much, Patami
  14. thank you very much, it's OK !
  15. hello, I've got a big problem with my db mysql I'd like to have a phpbb forum, but I don't find any informations : my account is qeadumlu I created a database : qeadumlu_diablo I created a user : qeadumlu_patami I need for my forum : Database Server Hostname / DSN : I think it's localhost Your Database Name: I think it's qeadumlu_diablo Database Username: I think it's qeadumlu_patami Database Password: What's ??? Is it my account password ? Server Port: I think it's 80 But when I want to install my forum, it can't connect to the database ?? ! What's the problem ? What's my error ? I hope you can help me .. thank you !
×
×
  • Create New...