Is PHP the right choice here ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spelltox
Forum Newbie
Posts: 2
Joined: Sun Feb 05, 2012 5:58 am

Is PHP the right choice here ?

Post by spelltox »

Hi guys,

I'm developing a website (with little experience) that is providing info to customers, What it should actually do is query some external websites, retrieve some data from them, then display it to the user in nice formatted fashion.

I've done such thing before in non-web programming languages (visual basic, etc), but never in PHP or such.

I've downloaded some PHP framework that is able to parse html pages, but after some time that the script is running it is stopped and says that "script time limit exceeded".

The problem is that i'm not sure if PHP is the right choice for this task.

I'm using standard hosting account and don't want to purchase VPS or Dedicated server for this task.

My questions are : 1. Is this possible ? 2. Which languages\technologies should i use ? 3. Security aspects. 4. Samples / Code snippets / Articles / Anything else that might help.

Thanks, SpellTOx.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Is PHP the right choice here ?

Post by Celauran »

spelltox wrote:What it should actually do is query some external websites, retrieve some data from them, then display it to the user in nice formatted fashion.
Sounds simple enough. How are you retrieving this data? cURL? SOAP? Something else?
spelltox wrote:but after some time that the script is running it is stopped and says that "script time limit exceeded".
Exactly how much data are we talking about here? Scripts shouldn't really time out under normal circumstances.
spelltox
Forum Newbie
Posts: 2
Joined: Sun Feb 05, 2012 5:58 am

Re: Is PHP the right choice here ?

Post by spelltox »

I've found a php framework that parses the html,
i know nothing about cURL and SOAP.

The thing is that fetching and parsing the web pages take quite some time,
so i need a way to run some background script that will do the fetching&parsing and when done it can set some flag in my database.

The questions are :

1. how do i run that other script in the background ? (i didn't find any multi-threading support in php).
2. how do i let the user know that processing is done and show him the results ?
Post Reply