Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2004, 09:50 AM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Questions regaring PHP Coding

Hi Everyone !

I am kind of novice in PHP coding.. have been doing it on and off.. but now want to learn it in more detail. I have some general questions regarding PHP language and would be thankful who can answer it for me.

So here it goes:
1) In PHP what is more efficient to use - Switch-case , If-Else, Do-While for efficient coding ?
2) Is it possible to import data from Excelsheets into Oracle database using PHP ?
3) If I needed to use PHP for Graph plotting.. what are the pros and cons for that ?

Thanks in advance
AB
 
Old September 11th, 2004, 08:07 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Quote:
quote:
1) In PHP what is more efficient to use - Switch-case , If-Else, Do-While for efficient coding ?
Depends on what you want to do. Each has its advantages for a particular algorithm. Use the one that requires the least amount of code.

Quote:
quote:
2) Is it possible to import data from Excelsheets into Oracle database using PHP ?
Yes. You can conceivably parse any type of file. In this case someone has probably already written a solution. Google is your friend. There are also extensions to PHP that are written specifically for working with Microsoft file formats.

Quote:
quote:
3) If I needed to use PHP for Graph plotting.. what are the pros and cons for that ?
This requires alot of code for graphics of any quality. But again, there are lots of pre-written solutions, jpgraph http://www.aditus.nu/jpgraph/, for instance has thousands upon thousands of lines of code. It's resource intensive, anything requiring the generation of graphics is resource intensive. So you'd want to devise a cache system to minimize how often graphics are generated by PHP, such as saving the graphic to the filesystem and writing a cronjob or scheduled task to update the graphic every so often. There are lots of pre-written solutions for plotting graphs as well.

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail





Similar Threads
Thread Thread Starter Forum Replies Last Post
create database in mysql through php coding vivekananth PHP Databases 2 January 31st, 2007 01:48 AM
coding php which link that i want to view a form syazlan Pro PHP 0 January 30th, 2007 03:38 AM
How can i delete multiple row through PHP coding taha_elearner PHP Databases 1 October 28th, 2005 05:33 AM
coding php in knoppix and setting up a web server mrobertson PHP How-To 0 June 2nd, 2005 08:35 AM
Questions regaring PHP Coding phpcoder1 PHP How-To 0 November 4th, 2004 05:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.