Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47
  1. #21

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any


    naa man siguro baligya sa SM, bai....

  2. #22

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    Quote Originally Posted by M@rv|n
    any idea on whats the best way to create an xml file from mysql and php?
    There's only one way.

    1 get the data from mysql
    2 compose an xml from the data
    3 open a file
    4 write the data formatted in xml (either format it yourself or use a library sax, dom, simplexml)
    5 close the file

    you can change the order of 1 and 3.

    Is there any other way?

  3. #23

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    why using xml? php is already there you know.....

  4. #24

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    xml?

  5. #25

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    Quote Originally Posted by dodie
    why using xml? php is already there you know.....
    marvin was asking on the best way of creating xml with php. so i was telling him how to do that.

    there are instances that you need xml. not all applications needs the html presentation but a formatted data or application protocol. xml is a good candidate of exchanging datas. good example is xml-rpc and soap.

    also, the new html (xhtml) is an xml conformant. so if your website is xhtml then it is an xml that can be understood by new browser.

  6. #26

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    Quote Originally Posted by vern
    Quote Originally Posted by M@rv|n
    any idea on whats the best way to create an xml file from mysql and php?
    There is no automatic way of doing it. Learn XML and format it yourself. You can also find a class on the internet that would do it. There has to be one out there.
    I think theres is one from a content Manager Script written in pearl... its name as ILINK.....

    from a database driven information that would auto generate static pages instead of dynamic driven... its more popular use now a days

    http://hotscripts.com/search/4265677.html

    heres one sample if you just observed flow of web site like hotscripts they are taking concept from a blog site...

    a real static pages generated every search.. instead of dynamically driven /server generated page............

  7. #27

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    try PEAR?

    also, i agree with vern about the php manual thingy. i always have an updated copy of it sa aku usb flash drive. after reading a good book, the manual comes in very handy... also, sa php.net, when u search for functions, there are user comments below which can be very useful...

    imho, get a good book about xml + php + mysql

  8. #28

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    simple ra kau ni na file uploader. im using this code for my CMS for CCCJungolf.com


    INSTERT THIS FORM TO YOUR HTML PAGE
    <FORM ENCTYPE="multipart/form-data" ACTION="imgupload.php" METHOD="POST">
    The file: <INPUT TYPE="file" NAME="userfile">
    <INPUT TYPE="submit" VALUE="Upload">
    </FORM>


    CREATE A FILE CALLED "imgupload.php" and COPY/PASTE THE PHP CODES BELOW
    <?php

    $path = "img/players/"; //Make sure imong na set ang folder's attribute to 766
    $max_size = 200000; //Filesize limit

    if (!isset($HTTP_POST_FILES['userfile'])) exit;

    if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {

    if ($HTTP_POST_FILES['userfile']['size']>$max_size) { echo "The file is too big<br>\n"; exit; }

    //Mao ni na part where you would like to specify your file to upload
    if (($HTTP_POST_FILES['userfile']['type']=="image/gif") || ($HTTP_POST_FILES['userfile']['type']=="image/pjpeg") || ($HTTP_POST_FILES['userfile']['type']=="image/jpeg")) {

    if (file_exists($path . $HTTP_POST_FILES['userfile']['name'])) { echo "The file already exists<br>\n"; exit; }

    $res = copy($HTTP_POST_FILES['userfile']['tmp_name'], $path .
    $HTTP_POST_FILES['userfile']['name']);
    if (!$res) { echo "upload failed!<br>\n"; exit; } else { echo "upload sucessful<br>\n"; }

    echo "File Name: ".$HTTP_POST_FILES['userfile']['name']."<br>\n";
    echo "File Size: ".$HTTP_POST_FILES['userfile']['size']." bytes<br>\n";
    echo "File Type: ".$HTTP_POST_FILES['userfile']['type']."<br>\n";
    } else { echo "Wrong file type<br>\n"; exit; }

    }

    ?>

  9. #29

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    Have anyone tried getting contents from another site

    like meta i wanted to generate keywords from another site... mangawat lang ug keywords via codes heheheheh

  10. #30

    Default PHP syntax!!!! syntax!!!! Syntaxx!!!! any... any... any

    PHP Spreadsheet_Excel_Writer
    http://www.contentmanager.de/magazin..._mit_pear.html

    german site. translate na lang using babelfish

  11.    Advertisement

Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

 
  1. For Hire: If You Need On call Rescue! Mekaniko any time...any where in Cebu...
    By SUGARAY08 in forum Specialty Services
    Replies: 30
    Last Post: 05-26-2012, 11:13 AM
  2. Replies: 43
    Last Post: 05-05-2011, 02:03 AM
  3. Looking For: Phone with Bluetooth | Any Brand, Any model.
    By kenny_tiu7 in forum Cellphones & Accessories
    Replies: 16
    Last Post: 10-26-2010, 05:14 PM
  4. PHP & MYSQL: asa ta mo eskwela ani
    By redline in forum Programming
    Replies: 8
    Last Post: 09-12-2007, 03:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top