Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation PHP file arrived looking like chicken scratch!

    I am new to PHP..........Well what I mean is I can stumble around and eventually get a perl or cgi program to work....BUT this PHP file arrived after I loaded it with ASC2 transfer to my Unix server as a series of symbols and SOMETIMES it would show me a few lines or readable text...... Can someone tell me what is happening?

  • #2
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm... Maybe it is encrypted in some way? Or maybe it isnt a PHP script, could be an application code?

    Either way, please could you take a look at the posting guidelines ( http://www.codingforums.com/postguide.htm ) (mainly section 2).

    Can you explain it a bit better? i think i got the gist but more info would be helpful.

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Are you sure your FTP program was in ASCII mode when it transferred? That can be caused by binary transfers. What program did you use to FTP the file?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    New Coder
    Join Date
    Apr 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP file arrived in strange format?

    Sorry about the comparision to the fowl in my last and also first post here. It has been a frusterating day.

    On my server the file looked like a series of squares and letters that I could not account for.

    It also loaded only the following word when I tryed opening it in notetab.

    ZEND......

    I think from what I learned today , ZEND is a new vehicle to deliver scripts?

    At any rate. What can I do to resolve this. Only a few of the files arrived in this format. And I re-loaded them a few times as well with no change.......

    I really do think that I may have a server issue as like I mentioned before. I would sometimes see on re-opening the file in the webshell ....a few lines of typical PHP text.....Mostly a warning message stating unknown character and the name of my server's webshell feature.

  • #5
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Did you check what spookster said? Other than that I dont really have any idea, sorry about that...

    Zend (The zend engine) is the core engine of the PHP language.

  • #6
    New Coder
    Join Date
    Apr 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I may have found the problem.
    What is my CJ?

    Below is some of the few instructions I got with the program:

    Installation:

    1. Upload the files config.php, skin.php, .htaccess, apen.txt, apru.txt and all html-files in ASCII mode into main directory of your CJ
    2. Upload all other php-files and gif files in Binary mode.


    I had thought that PHP and PL and CGI all were treasted the same in uploading. Ob\viously not.. [using this as a base reference only]

    Is the CJ actually my cgi-bin?

    ANd thanks for the fast responces and not running me off after the fowl thing.

  • #7
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,076
    Thanks
    11
    Thanked 98 Times in 96 Posts
    Hi , is this a commercial script ? if so have you a link to their homepage ...

    `CJ` has no relevance to PHP or webservers/languages that I know of so it must be part of the script ?

    I suspect that missing-score is on the right track when mentioning encrypted files , ZEND produce a Zend Encoder which creates `compiled` PHP files , as do a few others , most of which require the server to have either the Zend Optimizer or another server-object installed to handle the decryption of the PHP files at runtime.

    That or the script included another server-object of some sort , a link may help us work it out !
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #8
    New Coder
    Join Date
    Apr 2004
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I had to delete entire folder. My server did not have ZEND loaded...........Thanks for all the help ........


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •