How to read script php leer mdb in Linux

Asked By 0 points N/A Posted on -
qa-featured

I am on Linux platform and would like to read scripts PHP leer MDB in order to save in MySQL.

Can anyone suggest the best and easiest way

SHARE
Best Answer by Russel C Brannon
Answered By 0 points N/A #156441

How to read script php leer mdb in Linux

qa-featured

Hello Tammy 



PHP scripts can be accessed by any text editor. If you are using Linux I prefer to use Gedit.

Open your script with Gedit and copy it's contents into your MySQL database.

To be more easier I recommend using MySQL WorkBench, since MySQL WorkBench can automatically make MySQL database out of script it will be full success for you. 



Cheers.

Best Answer
Best Answer
Answered By 0 points N/A #156442

How to read script php leer mdb in Linux

qa-featured

Hi Tammy Calloway,

For this you have to use open() function. Open the url using this function like this,

$handle = @fopen("URL", "rt");
$source_code = fread($handle,1000);

In such way now you have 1000 bytes of source code of the given URL index page in $source_code variable. Now you can perform searches on this variable and can use regular expressions to fulfill your purpose.

Please refer to the following links as well for more information,

http://www.tizag.com/phpT/fileread.php

http://www.nusphere.com/products/php_viewer.htm

This link is the perfect guide for viewing your PHP code.

I think this will solve your problem.

Thanks,

Login/Register to Answer

Related Questions