Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,754,531 members, 6,543,214 topics. Date: Monday, 18 October 2021 at 06:08 AM

How Do I Install And Run A Php Script On My Cpanel? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / How Do I Install And Run A Php Script On My Cpanel? (778 Views)

Hire Me To Build A PHP Script For You / How To Run Script On Android Studio / Please How Do I Install Nulled Xenforo Script On My Hosting Server? (2) (3) (4)

(1) (Reply) (Go Down)

How Do I Install And Run A Php Script On My Cpanel? by Princedapace(m): 7:12am On Aug 05, 2019
Greetings

I'm new to this thing and I would be grateful if anyone can tell me what I need to do.

I got an API which I was told is a php script for scraping. It is just the code that is available. No direction on how to instal and execute it.

All they said it just copy and paste it on your cpanel. I have done that but I still can't see how it works.

I created a new .php file in my public root of my website, then copied the code and paste there and save.
What else do I need to do?
Re: How Do I Install And Run A Php Script On My Cpanel? by RealLordZeus(m): 8:34am On Aug 05, 2019
Such script are usually dependent on other files but have u visited the url also! I:e yoursitename.com/url_of_the_scipt.php.
Does it output any error
Re: How Do I Install And Run A Php Script On My Cpanel? by Princedapace(m): 10:02am On Aug 05, 2019
RealLordZeus:
Such script are usually dependent on other files but have u visited the url also! I:e yoursitename.com/url_of_the_scipt.php.
Does it output any error

Thank you for the help. Lol, pls pardon me, Im totally new with this thing. Lol, but Im determined to make it work.

Pls, how do I see the url of the script?

I uploaded it directly on my site cpanel using file manager upload. And it is sitting on my website root folder.
Re: How Do I Install And Run A Php Script On My Cpanel? by RealLordZeus(m): 10:10am On Aug 05, 2019
Princedapace:


Thank you for the help. Lol, pls pardon me, Im totally new with this thing. Lol, but Im determined to make it work.

Pls, how do I see the url of the script?

I uploaded it directly on my site cpanel using file manager upload. And it is sitting on my website root folder.
Move/upload to public_html folder, then go to yoursite.com/file.php
I'm assuming the name of the script is file.php
Re: How Do I Install And Run A Php Script On My Cpanel? by Princedapace(m): 10:21am On Aug 05, 2019
RealLordZeus:

Move/upload to public_html folder, then go to yoursite.com/file.php
I'm assuming the name of the script is file.php


Oh, thank u very much. I think it is working as i could see a webpage that appeared.

lol. Thank u brotherly. Let me now learn how the script works to use it for scraping.

(1) (Reply)

Programming School / C# Software Developer With OND Is Currently Needed At 23 Ojo Berger Lagos Onevoi / Android Programmers, How Can I Set Gradle Proxy Settings.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2021 Oluwaseun Osewa. All rights reserved. See How To Advertise. 37
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.