PHP Questions & Answers Thread

sri_lion

Member
Sep 14, 2006
12,908
102
0
Kuala Lumpur
samiram said:
hmm..
seems to me like you edit your files with notepad or...
text editor that wont support UTF8 file encoding..
use a editor such as phpcoder to do the coding..
never ever use notepad to edit php files..
:)

Yeah! use Dreamweaver if not.. got many nice features!
 

ahamednishadh

Active member
  • Sep 17, 2006
    4,896
    8
    38
    34
    Sri Lanka => Colombo => Colombo 06
    re

    samiram said:
    hmm..
    seems to me like you edit your files with notepad or...
    text editor that wont support UTF8 file encoding..
    use a editor such as phpcoder to do the coding..
    never ever use notepad to edit php files..
    :)

    i use front page and sumtimes dreamweaver. i dont use notepad coz its a messy thing to code using notepad.
     

    ahamednishadh

    Active member
  • Sep 17, 2006
    4,896
    8
    38
    34
    Sri Lanka => Colombo => Colombo 06
    re

    Djpata said:
    ahamednishadh>>>

    do you want to call a php script wich is not in ur web page? but u want to call an external script to ur page and pass it through? am i ryt? im bit confused about ur question....cz i looked abt sri lion's answers bt nything din work for u ne??:confused::confused:

    yeah i want to call a script dats saved externally and then i want to display da value of a variable which is there in da external script.
     

    kudalla

    Member
    Oct 31, 2006
    810
    23
    0
    samiram said:
    hmm..
    seems to me like you edit your files with notepad or...
    text editor that wont support UTF8 file encoding..
    use a editor such as phpcoder to do the coding..
    never ever use notepad to edit php files..
    :)

    Hey use Aptana (http://www.aptana.com/) its a free php and javascripts ide based on Eclipse. It's a bit advanced tool. It has intelligent coding support, debugging feature and lot of features. Simply it support almost all the features comes with Eclipse. Both Windows and Linux versions are there.
     

    samiram

    Member
    Sep 3, 2006
    9,768
    2
    0
    is the output you are expecting..?
    then this code is working..
    :)
    phpyb7.jpg
     

    samiram

    Member
    Sep 3, 2006
    9,768
    2
    0
    ahamednishadh said:
    i use front page and sumtimes dreamweaver. i dont use notepad coz its a messy thing to code using notepad.

    ok try it using phpcoder or a plain texteditor..
    like notepad plus..
    and edit your php files and remove those marks from it..
    then it will work..
    :)
     

    ahamednishadh

    Active member
  • Sep 17, 2006
    4,896
    8
    38
    34
    Sri Lanka => Colombo => Colombo 06
    re

    guys good news!!

    i solved da mystery now!!!

    actually wat happened was dat there was a page which was initially made using html. wat i did was i saved it again in a different name as a php file lyk 123456.php
    then i inserted my php code where ever i wanted and it worked. but there was a small error as it was initially coded in html. dat is there r few lines of codes that r inserted automatically wen da page is done using frontpage. that is the following which is in bold letters

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    so wat i did is i deleted those lines and viola!! now it works perfectly!!

    thanks to all who tried helping me!!
    thanks guys!
     

    samiram

    Member
    Sep 3, 2006
    9,768
    2
    0
    ahamednishadh said:
    guys good news!!

    i solved da mystery now!!!

    actually wat happened was dat there was a page which was initially made using html. wat i did was i saved it again in a different name as a php file lyk 123456.php
    then i inserted my php code where ever i wanted and it worked. but there was a small error as it was initially coded in html. dat is there r few lines of codes that r inserted automatically wen da page is done using frontpage. that is the following which is in bold letters



    so wat i did is i deleted those lines and viola!! now it works perfectly!!

    thanks to all who tried helping me!!
    thanks guys!

    hehe....
    thats why i suggest a plain txt editor..
    it wont be a mess if you organize and comment your coding nicely.
    :)
     

    sri_lion

    Member
    Sep 14, 2006
    12,908
    102
    0
    Kuala Lumpur
    kudalla said:
    Hey use Aptana (http://www.aptana.com/) its a free php and javascripts ide based on Eclipse. It's a bit advanced tool. It has intelligent coding support, debugging feature and lot of features. Simply it support almost all the features comes with Eclipse. Both Windows and Linux versions are there.

    Thanx buddy! Downloading! :yes:
     

    blackroses

    Well-known member
  • Jul 28, 2006
    10,580
    43
    48
    Kelaniya
    ahamednishadh said:
    guys good news!!

    i solved da mystery now!!!

    actually wat happened was dat there was a page which was initially made using html. wat i did was i saved it again in a different name as a php file lyk 123456.php
    then i inserted my php code where ever i wanted and it worked. but there was a small error as it was initially coded in html. dat is there r few lines of codes that r inserted automatically wen da page is done using frontpage. that is the following which is in bold letters



    so wat i did is i deleted those lines and viola!! now it works perfectly!!

    thanks to all who tried helping me!!
    thanks guys!

    ahamd............

    use this tag on behalf of <?php ...... ?>

    <script language="PHP">

    // your codeee..........

    </script>
     

    ScienceBoy

    Member
    Mar 3, 2010
    61
    1
    0
    On EaRtH
    Help me

    Hi, bro this is nice!

    i have a question

    i have a movie download website from mediafire servers.
    i want to protect my movie links (mediafire) from SCRAPPERS.

    how to hide them from the source view, and what are the possibilities to survive from those scrapers?

    note - shorten url using adf.ly or something is not a solution.k