Jump to content

adv

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by adv

  1. Not Found The requested URL /php.php was not found on this server. i just want to get rid of the extension .. to be seen only the index not index.php in the DocumentRoot
  2. i didn`t created the .htaccess.. do i need it to put in the new DocumentRoot that i have created ? and how does it works ..i only what to use the site without the extentions .
  3. hello sorry if i posted in a wrong section... here`s my problem i`ve installed apache i`ve installed also the modules and enable mod_rewrite.so it works if the files are in /var/www/html i can do http://server.com/index but if i change the DocumentRoot to another folder it doesn`t work without extension i say the file is not found :| any help will be apreciated edit : sorry i posted several days ago in another section but no answer .. :|
  4. adv

    about apache

    pff sorry about that .. can a mod move my topic : :-X
  5. adv

    about apache

    hello sorry if i posted in a wrong section... here`s my problem i`ve installed apache Server version: Apache/1.3.37 (Unix) Server built: Jun 16 2007 00:31:02 i`ve installed also the modules and enable mod_rewrite.so it works if the files are in /var/www/html i can do http://server.com/index but if i change the DocumentRoot to another folder it doesn`t work without extension i say the file is not found :| any help will be apreciated
  6. yes i have both files in the same folder .. :| i`ve made a test but it works good ..but on other people it doesn`t .. i`m confused What could be the most often problems that can apear?
  7. ups i`m so sorry about the double post but my connection has some problems ( can u please delete the other post :|
  8. hello i have a problem ... i have some input text <input name="about" value="" type="text" > <input name="about1" value="" type="text" > and in that file i`m trying to store the value of the text with cookie i`ve tried <?php $about=$_POST['about']; $about1=$_POST['about1']; if (!empty($about)&&!empty($about1)){ setcookie("abb1",$about,time()+3600); setcookie("abb2",$about1,time()+3600); } ?> and in another page i tried to request that cookie like this <?php $info1=$_COOKIE['abb1']; $info2=$_COOKIE['abb2']; ?> i tried to send the cookie to an email <?php $message="info1:$info1\ninfo2:$info2\n"; mail("email@em.com","test",$message); but sometimes it doesn`t work it sends the cookie empty info: info1: and i have another question does $_SESSION and $_COOKIE conflict??
  9. hello i have a problem ... i have some input text <input name="about" value="" type="text" > <input name="about1" value="" type="text" > and in that file i`m trying to store the value of the text with cookie i`ve tried <?php $about=$_POST['about']; $about1=$_POST['about1']; if (!empty($about)&&!empty($about1)){ setcookie("abb1",$about,time()+3600); setcookie("abb2",$about1,time()+3600); } ?> and in another page i tried to request that cookie like this <?php $info1=$_COOKIE['abb1']; $info2=$_COOKIE['abb2']; ?> i tried to send the cookie to an email <?php $message="info1:$info1\ninfo2:$info2\n"; mail("email@em.com","test",$message); but sometimes it doesn`t work it sends the cookie empty info: info1: and i have another question does $_SESSION and $_COOKIE conflict??
  10. redarrow in ur code it doesn`t count .. if u click submit a couple of times it stays to 1 times i tried soemthing like u <? session_start(); if(isset($_POST['submit'])) { if (empty($_SESSION['count'])) { $_SESSION['count']=4; }else{ $_SESSION['count']--; } } if($_SESSION['count']==0){ echo "blocked"; } echo $_SESSION['count']; ?> but it doesn`t drop from 4 ..
  11. this is help ??? to read google can someone give me an example and explain
  12. edit :dunno if it`s really a count problem but that`s all my english hello in a form if u submit the data ... and the user is wrong i saw on some webpages .. You have 4 chances . how do i do it when a user press submit button and the data is incorrect to apear " you have 4 chances .. 3 chances .. 2 .. 1
  13. helllo my problem is : i use curl to grab some words from a page if ($result) { preg_match('/<span><strong>(.*?)<\/strong><\/span><br><br>/', $result, $al); if(count($al) != 0) { $nume = $al[1]; $nume1=$nume; setcookie("incoming",$nume1,time()+3600); } } it worked and it grabed the word i needed and now on another page with $_cookie i posted but the problem is it not loads directly <?php $in22=$_COOKIE['incoming']; echo $in22; but it not loading with the page it works only if i refresh the page or click the submit button then the word apears how do i do it to load with the page and when the page apears the word will apear
  14. i tried that .. nothing ..
  15. yes that is the trick .. i can`t just understand how with all the signs ]^*() (.*?) where ca i find all this signs explicationss?
  16. <?php $nume=""; $str="<span>welcome </span><span class=blu12 style=font-weight: bold;>name lastname</span>"; preg_match('/<span>(.*?)<\/span><span>(.*?)<\/span>/', $str, $al); if(count($al) != 0) { $nume = $al[1]; } echo $nume; ?> dunno how to quite put this as u see from my code .. i want to echo welcome name lastname ; but dunno how preg_match quite works . from the first span to the last span to echo it
  17. adv

    [SOLVED] image help

    i see now .. thanks
  18. hello i have a big image how do i put inside of the image a form tag a text field ..submit button thanks in advance
  19. adv

    [SOLVED] html image

    wow..thanks alot for the quick reply ... i`ll try it out
  20. i saw on some sites and image before the site starts Image:http://www.example.com how to i put a custom image to my page
×
×
  • 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.