Archive for January, 2010

I want to learn php / mysql, any recommended institute in pune?

Hello world !

I want to learn php programming with mysql in pune. I am tight at budget it is only 5000 INR. Can you recommend me any institute in pune which will teach good in this amount ? Please help me choose. Please share your experience.

I learned all I need to know about PHP for my job as IT Support Specialist which involves some web programming and script programming from W3Schools tutorials, they are great.

Zend is also a program you can pay to be trained online… from the comfort of your own home… check out the following links, the first one is to the free tutorials and the second is to where you can get details on paying for training, hope this helps:

http://www.w3schools.com/PHP/DEfaULT.asP
http://www.zend.com/en/store/php-training/?gclid=COXSoPvcppsCFdZM5QodnwLWCg

Say I made a program using PHP that is like an organizer for appointments, and menu prices?

Now say I wanted to remake this using new trendy software design. What code or language would I use to make this? It is old outdate PHP with bugs. I would like this to be fresh and new dated?. Any ideas or suggestions??

Try jQuery.
http://www.w3schools.com/jquery/jquery_examples.asp

How can I draw a sketch (line diagram) in php ?

Dear Friends,
I am a structural engineer. I am using php for developing a program for civil engineers.
I just want to know how can I draw a sketch or line diagram in php ?

Thanks in advance

I use this code and it works. but it needs gw libraries:

<?

header("Content-type: image/png");

$imgWidth=300;

$imgHeight=300;

// Create image and define colors

$image=imagecreate($imgWidth, $imgHeight);

$colorWhite=imagecolorallocate($image, 255, 255, 255);
$colorBlack=imagecolorallocate($image, 0, 0, 0);

$colorGrey=imagecolorallocate($image, 192, 192, 192);

$colorBlue=imagecolorallocate($image, 0, 0, 255);
$colorDarkBlue=imagecolorallocate($image, 51, 51, 204);
$colorLightBlue=imagecolorallocate($image, 0, 187, 255);

// Create border around image

imageline($image, 0, 0, 0, 249, $colorGrey);

imageline($image, 0, 0, 299, 0, $colorGrey);

imageline($image, 299, 0, 299, 249, $colorGrey);

imageline($image, 0, 249, 299, 249, $colorGrey);

// Create grid
/*

for ($i=1; $i<3; $i++){

imageline($image, $i*25, 0, $i*25, 250, $colorGrey);

imageline($image, 0, $i*25, 250, $i*25, $colorGrey);

}
*/
// Create line graph

for ($i=1; $i<=3; $i++){

imagefilledrectangle($image, $i*75, 100, $i*75+25, 250, $colorDarkBlue);

imagefilledrectangle($image, ($i*75)+1, 100, ($i*75+25)-5, 248, $colorLightBlue);

if($i == 1)
imagestring($image, 12, $i*75-2, 275, "good", $colorBlack);
if($i == 2)
imagestring($image, 12, $i*75-3, 275, "middle", $colorBlack);
if($i == 3)
imagestring($image, 12, $i*75-2, 275, "bad", $colorBlack);

}

// Output graph and clear image from memory

imagepng($image);

imagedestroy($image);

?>

Hi! What kind of Forum PHP program is http://www.88db.net?

Hi! What kind of Forum PHP program is http://www.88db.net?
Is it free? where do i get it?

At the bottom of the page, it says:

"Powered by Discuz! 6.0.0 © 2001-2007 Comsenz Inc."
It links to a chinese BB:

http://www.discuz.net/

I don’t know if they have an English version.

I think the best php forum is phpBB. Their version 3 is really good.

http://phpbb.com

Is their a Adobe program that can make php script Forms?

I am looking for a Adobe program that can make PHP script Forms like address fields email fields and I also want to make a petition online. They have alot of programs but I dont know what is right for me. Thank you.

None of these "programs" are "right for you".
Designing a form, posting it and treating it is probably the simplest piece of coding you need to learn.
Go to www.w3schools.com and learn how to use forms.
All "programs" that offer you to make forms code them in ways that are not compatible with all browsers: you will always end up by correcting the code yourself! (So why not just learn how to do it? In less than a day, you should know! - And THAT will be free of charge!)

Why and when would someone use OOP rather than procedural programming in PHP?

I know some very basic PHP OOP (PHP: Hypertext Preprocessor object-oriented programming). However, I’m not sure why or when someone would ever really want to use it. It seems time consuming and in general unnecessary. Please give me examples on when one method would be better over the other. But mainly, why would you really ever want to use OOP in PHP?

The usual arguments for OOP vs. procedural apply. That is, procedural processing tends to offer few opportunities for code-recycling; the programs are frequently monolithic, top-down instruction-sets that are harder to maintain and evolve over time. Objects tend to provide small, manageable blocks of code that address small sets of specific concerns that can be reused. I prefer OOP in general, since I always have an eye to code reuse. However, size and complexity come into play, when making the decision as to which to apply for a particular project. When building an HTML page, the PHP most often looks very procedural in its most general structure, since the composition of a web-page has a very top-down order, i.e., head, head-child-elements, body, body-child-elements, etc. A simple, one-off page may be unworthy the heavier-weight engineering principles of OOP - where the line is drawn is a fuzzy issue. I note that the PHP-based CMS, Concrete5, that my shop employs widely on behalf of clients is a purely OOP implementation…very appropriately so, given the complexity of the app. There’s a good "contrast and compare" article at:

http://devzone.zend.com/article/1236

That said, there is another approach you didn’t consider explicitly in the statement of your question, namely Functional Programming (FP). FP provides the same potential for code reuse as OOP. It allows you to develop fairly small procedural-style blocks that rely on functions to perform the actual processing. If you really drink the FP kool-aid, you can make your top-level, "procedural" blocks be functions as well. So, even when I elect a more procedural model, I implement more of the processing in functions in order to offer recyclability…most often, I simply reuse existing functions, plugging them into top-level, director/controller procedural code. My shop mostly develops new apps using the J(2)EE Design Patterns (in PHP) for the web aspects and the GoF Design Patterns for the base operations. All of these are implemented in a mix of procedural and functional approaches. We write some pretty darned big apps this way, and still have a huge amount savings from recycled code; in fact, our entire project template is static and completely reusable. Individual "procedure" can vary at the level of the component-include or the functions employed. Joel has an amusing OOP vs. FP article at:

http://www.joelonsoftware.com/items/2006/08/01.html

I see potential and competing values in each model, depending on the nature of the individual project and the need and desire to avoid reinventing the wheel. As with most modern languages, the programming paradigm is up to the developer; each language supports all programming models, even when there may be a generally-preferred approach. Don’t let anyone else’s preferences lock you into a single choice of practices. Also, don’t neglect learning new models just ‘cuz you already know one…learn and grow, so that you have more options and CAN pick the right tool for the job.

What is the best software for web designing, web mock up and php programming?

I was looking into Adobe Fireworks CS4, Adobe Photoshop CS4, and Adobe Dreamweaver CS4.

Might as well get the adobe cs4 suite they have several packages and its cheaper then buying separate and cheaper to upgrade later. Best web development program as far as what I think.