You are here: Re: Is this a PHP script?? BASH?? Please review! « PHP Programming Language « IT news, forums, messages
Re: Is this a PHP script?? BASH?? Please review!

Posted by David T. Ashley on 10/26/06 17:15

"Synapse Syndrome" <synapse@NOSPAMgomez404.elitemail.org> wrote in message
news:wLudnUuBnvKmQt3YRVnyuA@bt.com...
> Hi
>
> I've been given what I am told is a PHP script to be used on my server. I
> do not know any PHP.

As I mentioned in my previous post, it appears to be PHP.

> This is an example of the faulty output:
> http://test404.damnserver.com
>
> Following is what I have been told is a PHP script. It is meant for a
> freebsd or MacOS server. It apparently unpacks a zip file, deletes some
> temp files that MacOS makes, and renames the files to make them URL
> friendly. It then edits the Content.xml file with the filename changes.
>
> First of all, is this actually a PHP script?

Yes.

> I need it to run on a Windows server running IIS.

You should be able to do this. The script isn't that complicated. You
should be able to reimplement it using a M$-friendly language, such as .ASP.

PHP does run under Windows, but it might be easier to go with the M$ tool
chain.

> But someone that I gave it to look at has said that he thinks that it does
> some strange functions.

At first glance, the script looks rather standard. I'm not seeing any
"strange functions".

> and he thinks it's actually a BASH file.

It is not a BASH file. This is guaranteed PHP. I see many PHP functions in
the script ... it is PHP.

>and I have no hope of getting it to run on Windows.

The script is not that complicated. Just go through it line-by-line, look
up all the functions at http://www.php.net, and see what you can do on
Windows. You can either use PHP under Windows or reimplement some other
way, perhaps .ASP.

> I need something that does the same thing for a Windows server running the
> website linked earlier. I also do not want the unzip function, and it
> needs to be taken out.
>
> I would be grateful for any thoughts or opinion on this.

Reverse-engineer and reimplement.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация