php

Populating a Schedule Calendar

Hey Guys, I'm creating a scheduling system for my school that allows teachers to book rooms/vehicles. I'm just stuck on one aspect: populating the calendar. Basically, it'll have a month and week view. The monthly view I'm fine coding, but it's the weekly view I'm stuck on. The people that are inserting bookings will be able to specify...

PHP tutorial to build, browse and link categories and sub categories?

Is there a tutorial that can help me display categories and subcategories dynamically. ...

Which one of these PHP and Mysql scripts is safer security wise?

Is script 1 safer? "; } else { queryMysql("CREATE TABLE $name($query)"); echo "Table '$name' created"; } } function tableExists($name) { $result = queryMysql("SHOW TABLES LIKE '$name'"); return mysql_num_rows($result); } function queryMysql($query) { $result = mysql_query($query) or die(mysql_error()); return $result; } ...

PHP: Download incoming email from POP3 or IMAP, parse it, and mark it as read/delete on server.

Hi there, I'm trying to add incoming email to my web application. It's built on CodeIgniter and PHP, and as far as I can tell I haven't found any CI libraries to do this. What I'd like to do is have a controller that connects to my mail box, via POP3 or IMAP, and retrieves the message, parses it then removes it from the server. Piping...

How to convert text to images on the fly?

I have seen in a couple of cases like: Facebook Profile: The E-mail address comes as a jpeg pic and not as text Google Forms Summary: Different Sized, Different Coloured Interactive Barcharts are made on the fly using the data you have. How does it happen? What do I do? ...

PHP vs. JSP performance: is the compiled vs. interpreted argument even relevant to this issue?

PHP is interpreted. JSPs are compiled. Yet the PHP interpreter seems tightly coupled with Apache (using mod_php). The JSPs are compiled, but it's bytecode...yet the java runtime is highly optimized...yet there is the Tomcat container and mod_jk sitting in between Apache and the runtime. Lots of things to consider, of course. Has anyone ...

Does any body know where I can find my ISP SMTP server address for my localhost testing?

I'm using road runner and is there a free smtp server to use with wamp just in case i can't use my isp? ...

PHP localhosting and registering testing using wampserver?

I was wondering since i can't use my isp smtp server is there a way for me to setup my localhost wampserver on my computer to just send the info to my yahoo email address in order to test my registration script instead of using the smtp server? ...

Mcrypt installed but doesn't show up on PHPINFO

I think I managed to install mcrypt lib. The files are in place, but it looks like the library doesn't run at all. Tried to add: extension=mcrypt.so to PHP.INI; no good. Any help? ...

PHP - loading images in GD

Hello, I have to work with different kinds of images with PHP&&GD. The images have extensions like png,jpg and other. How can i upload them into resources. For example, there is function CreateImageFromJPEG, but I'll not be able to load other types of images. How can I write template for all types I need? ...

PHP - dynamic menu with submenus

Hello, I've got a menu, that is something like this: <ul id="menu_cat"> <li><a class="cat1" href="#">category 1</a> <ul> <li><a class="cat2" href="#">category 2</a> <ul> <li><a class="cat3" href="#">category 3</a></li> <li><a class="cat3" href="#">category 3</a></li> <li><a class="...

How to send mail with binary word in mail subject using PHP

I am going to send mail through PHP website. Client may custom the mail subject and I will get the post data in UTF-8. But When I send out a html mail using the php mail(), I found the the mail subject cannot show properly while the mail body does. How to send chinese word in PHP mail function? Thanks. ...

What is a good PHP CMS?

What is a good CMS system that I can get my site up and running quick as well that will let me write my own code for it down the line without any hassle? And will also let me add my own customized pages that I have already written. A major site. If i can add ratings, articles, members, and much more. ...

magento price getPrice() value

function getDescriptionHtml($tpl, $p){ $out = ""; $pr = $p["product"]; if(Mage::getStoreConfig('featuredproducts/displayoptions/title') == 'description'){ $out .= "<ins><h4>{$pr->getName()}</h4></ins>"; } $out .= "<span class=\"description\"". (!Mage::getStoreConfig('featuredproducts/displayoptions/description') ? "styl...

Match number at the end of the string

Hello there, Given the following string how can I match the entire number at the end of it? $string = "Conacu P PPL Europe/Bucharest 680979"; I have to tell that the lenght of the string is not constant. My language of choice is PHP. Thanks. ...

why ob_start() must come ahead of session_start() to work in PHP?

I don't think it's reasonable. Why is it actually such a rule? ...

Is there a PHP validator?

Is there a PHP validator like there is an HTML validator at w3.org? ...

where can I find php_memcached.dll php extension?

Spent a lot of time and I cant find a built version anywhere. please help. Note: please don't turn me to php_memcache.dll. I have this one. I'm looking for php_memcached.dll. ...

Continuous data handling through TCP

I need to handle continuous data through TCP and write it to database. I use the following code (suggested by ZZ Coder): <?php $fp = fsockopen ("192.168.0.179", 2323); if (!$fp) { die ("$errstr ($errno)"); } if ($fp) { $user="root"; $password="12345"; $database="db_name"; mysql_connect('localhost',$user,$password...

Auto increase php numbers on different lines 0100, 0200 etc.

Right now im running something based on time and including files. This is a long file and seems unnecessary. What I want to do is auto increment the times for the 24 times i call code. current style coding: if($time >= "0000" && $time < "0100") { include("1.php"); } elseif($time >= "0200" && $time < "0300") { include("2.php"); Is th...