Jump to content

PhpRay

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

PhpRay's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Right... I see this is another kind of problem... I will follow all explanations !! Thanks so much for the correct code !!!! I can use this forum to check if codes are right or not... if the forum is happy it gonna color them !! lol
  2. Thanks.. but it doesn't work.. so how can I change configuration ? I tried to click with right btn of mouse and I found the voice 'configuration' but I wasn't able to change anything there...
  3. I see now... the code is ok and the problem is in EasyPhp... it's time for xampp now !! Thanks for the links !!!!
  4. Thanks ? I'll check !!! But I think that it should work... what's wrong in this codes?
  5. Sorry, I try to be more clear !! I have a little db, a flat file, called 'iscritti.txt' and I just want to take informations FROM this flat file, with my php code, and bring them into the html form...
  6. Hi !! I don't understand why this codes don't work... ( They are in the same directory...) the problem is that in the fields of the form appear the variable but in the literally way: <?=$cid?> HTML code: <html> <form method="post" action="http://localhost/open.php"> ID: <input type="text" size="10" name="id" value="<?=$cid?>"><br> NOME: <input type="text" size="10" name="nome" value="<?=$cnome?>"><br> COGNOME: <input type="text" size="10" name="cognome" value="<?=$ccognome?>"><br> EMAIL: <input type="text" size="10" name="email" value="<?=$cemail?>"><br> <input type="submit" value="Modifica"><br> </form> </html> PHP code: <?php $textfile = fopen("iscritti.txt", "r"); while ($rigafile = fgets($textfile, 1024)){ $camporiga = explode("|", $rigafile); $idriga = $camporiga[0]; if($idriga == 3){ $cid = $camporiga[0]; $cnome = $camporiga[1]; $ccognome = $camporiga[2]; $cemail = $camporiga[4]; } } fclose($textfile); ?> Where's the problem please? I chenged many times the url yet just to try !!
  7. I will try it for sure !! Thanks !! But after my early steps with Php !! Anyway I have xampp on my Desktop yet !!
  8. I solved the problem !!! Tanks so much guys !!! Have a great day!!
  9. Mmmmm... I like NetBeans thanks!.... ( finding Notepad++ I had an error ) But the problem is the same DOH! When I save the file it doesn't look like as a php file... so I think it's a platform error... Hey MrAdam what did you say about to check if 'using Windows make sure known file extensions are not hidden' ? I should be true to have checked it in the right way this time... how can I be sure please? Thanks guys !!
  10. Done but just doesn't work... I think I'm gonna change the editor text, which do you use, any suggest?
  11. Ok maybe I see the problem... when I save the file in .php the icon of file doesn't change its shape, but it seems that my editor is not able to save in php, ( even if I can choose the option in many languages ) I'm trying to change some option... I'm using Editra... anyone knows how could I change this option to save php files with this editor, if not I'm gonna change editor...... Thanks!!
  12. Yes I did !! The browser says Failed to connect... I really wonder what's wrong...
  13. Hi guys !!! I have downloaded EasyPhp as a local server, I hope you know it or use it, the problem is that my browser isn't able to find any .php file when I write /localhost/file.php or localhost/www/file.php, and I notice that there is not an index into the www foulder... Anyone of you can give any suggest, please? Thanks !!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.