Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 9th, 2004, 09:50 AM
Registered User
 
Join Date: Sep 2004
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old September 11th, 2004, 08:07 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create database in mysql through php coding vivekananth PHP Databases 2 January 31st, 2007 12:48 AM
coding php which link that i want to view a form syazlan Pro PHP 0 January 30th, 2007 02: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 04:02 PM



All times are GMT -4. The time now is 02:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.