Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9

Thread: PHP code

  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    PHP code

    I need two php codes that will:
    1. Get the text off a specific web page
    2. Replace text on a specific web page

    Here's the rub, I want to build a AMS project for a friend that owns a bike shop that will allow him to change ride schedules on his web site.

    Any ideas?

  2. #2
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    I think if you had the data on the page stored in a simple way (either with bullets where the <li> tags are used, or in a table where you can specify rows <tr> or data <tr>) that making a simple editor would involve downloading the HTML file from the site, having a simple editor to modify the contents, then click a button which would compile a new HTML file and upload it again to the website.

    I made a similar type of program which allowed the user to input information for links, which when generated by AMS would open the HTML file in their default web browser.

  3. #3
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    I have done this before for HTML. Created a small application that did this via FTP with a TextFile.ReadToString and Textfile.WriteToString. It was setup so that the client could change in real-time information at the top of their Website's main page. It worked great. You could even password protect it.
    Intrigued

  4. #4
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Quote Originally Posted by Intrigued View Post
    I have done this before for HTML. Created a small application that did this via FTP with a TextFile.ReadToString and Textfile.WriteToString. It was setup so that the client could change in real-time information at the top of their Website's main page. It worked great. You could even password protect it.
    Would you be willing to pass it on?

  5. #5
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by Bruce View Post
    Would you be willing to pass it on?
    Let me dig it up from one of my HDs.
    Intrigued

  6. #6
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137

    HTML - FTP - UPDATES - REAL-TIME - Intrigued

    Bruce, that must be with a previous employer still.

    But, I coded a bare-bones .apz example here. It does not have error checking and you can only upload to the root directory of the FTP server (both easily updated).

    Just add in the Host, Username, Password, and Message. Then click the button (Label object) and then you will see a Dialog.Message() box come up to tell you to check your Web page for changes (again, add in some error checking and the ability to change directories, would be best).

    Here's that file:

    http://www.amsuser.com/ams/examples/...-Intrigued.apz
    Intrigued

  7. #7
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Your the bomb! Thnx

  8. #8
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Thanks, heh heh and you're welcome.
    Intrigued

  9. #9
    Join Date
    Nov 2006
    Posts
    24
    Though this post is a couple days old, I wanted to add that if your friend didn't want to type the html code you can use a flash dynamic text box that loads from, say, a notepad. The notepad can be edited through an ams window and all he would need to do is change his schedule dates and hit update. I just did this recently for a client and he loves it. Since most websites I build are flash, this is an easy way for clients to edit their flash sites, without paying for changes or external editors (contribute, fCMS, etc.)

Similar Threads

  1. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  2. Function: Email Any Data Through PHP
    By Brett in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 10-02-2004, 08:08 PM
  3. The dreaded Submit to web PHP issue!
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 09-19-2003, 03:00 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