php

How do I call the methods in a model via controller? Zend Framework

Hi guys, I've been searching for tutorials to better understand this, but I'm having no luck. Please forgive the lengthy explination, but I want make sure I explain myself well. First, I'm quite new to the MVC structure, though I have been doing tutorials and learning as best I can. I have been moving over a live site into the Zend Fr...

How to make Gmail like loading progress bar

I want create a loading progress bar like Gmail in center and top of the page, and work in all browsers ...

Image resizing not working with png images

it not work with png created a thumb png but haven't data , like null data :D with jpg , jpeg still working without error why ? function thumbnail($pathtoFile,$thumWidth,$pathtoThumb) { //infor of image $infor = pathinfo($pathtoFile); // Setting the resize parameters list($width, $height) = getimagesize($pathtoFile)...

How to get the one paramater from list of items in php

I have one field in database table with following lines show_email_icon= show_hits= feed_summary= page_title= show_page_title=1 pageclass_sfx= menu_image=hd_events.png secure=0 All the stuff is stored as text in one field of mysql table Now i want to get the menu_image. How can i get that ...

Is PHP still basically Procedural Overall?

I know PHP 5 has some object oriented similarities but it's not a true OOP environment still right? Also does it have a true compiler? I see compiling of scripts which still means procedural. I assume it's not a real compiler in that any PHP compilers out there do not create assemblies? ...

Brief white screen when loading PHP page?

What would cause a brief flash of white screen while a PHP page is loading? I just noticed it today on a WordPress theme that I am building and am wondering if this is a cause for concern. As a page loads, the screen will flash white before showing the page content. Sometimes this happens on every single page load, other times it only ha...

Fulltext for innoDB? or a good solution for php app

I have a table I want to run a fulltext search on, but it is currently innoDB and is using a lot of foreign keys for other kinds of queries. Should I make like a 1:1 "meta-data" table that is myisam for fulltext? Also I am reading some things that say that fulltext corrupts MySQL tables pretty randomly? I dunno, the articles are a cou...

Which is more paid .Net or PHP ?

I want to know which technology is more paid now a days - .Net or PHP ? ...

how to validate php file with w3c.org

Hi I want to validate my php project to meet the w3 standard so ...Can some one explain how to do the php file validation usind w3c.org ...

making clean page via page.tpl.php

I have a Drupal module creating a page via hook_menu(). I am trying to make it so the page has no extraneous html output, only what I want. You can view the page here, http://www.thomashansen.me/chat/thomas. If you look at the source, you can see a strange script tag at the end. My page-chat.tpl.php looks like this, <?php // $Id$ ?> <...

Using LimeSurvey, how can I make it go right to a survey on the home page

I don't know anything about PHP, but I'm using LimeSurvey on my site. I want index.php to go immediately to a certain survey ID. I don't want it so the user has to put the survey ID on the URL. I have no idea how to do this. Can someone help me? ...

Advice on coding Perl to work like PHP

I am first and foremost a perl coder, but like many, also code in PHP for client work, especially web apps. I am finding that I am duplicating a lot of my projects in the two languages, but using different paradigms (e.g. for handling cgi input and session data) or functions. What I would like to do is start to code my Perl in a way w...

PHP Echo syntax error with single quote or double quotes?

The is a very simple echo statement but I can't solve it? echo '"What is your name?'"; ...

Using a php://memory wrapper causes errors...

I'm trying to extend the PHP mailer class from Worx by adding a method which allows me to add attachments using string data rather than path to the file. I came up with something like this: public function addAttachmentString($string, $name='', $encoding = 'base64', $type = 'application/octet-stream') { $path = 'php://memory/' . md5(...

Search Engine in php?

Sir, I want to create a search engine in php (like Google, Ask). So, please tell me how can I create it. What is the logic for it. Thanks, ...

opening pdf file using php that take data from mysql

hello, anyone can plz help me? i wanted to create pdf file using php and have done it. now i want to create pdf file that get data from mysql table.. i've searched for the sample code for long time but didnt find even a single code related to my query.. thanx in advance ...

how to access database through javascript?

I am creating one admin page where I have multiple textboxes.when I enter the userid in one textbox I want to display user name in next textbox when admin moves to next text box.for this I can use ajax or javascript? which one will be better?how can I do it through javascript. ...

Should I change $_REQUEST to $_POST

Hey guys quick question, I have a checkbox system where a list of items can be checked and deleted on the click of a button. I currently use request and it does the job but I was wondering if $_REQUEST was some sort of security risk or improper. If anyone has any advice I would appreciate it. Should I change to $_POST? If so, what is the...

fopen & fwrite function is not working from browser?

fopen function is not working in php. I wrote the following code in my php file. $fh = fopen("/home/sugumar/Public_html/sugumar/public_html/123","a+"); fwrite($fh,"hello"); I ran this code from command line: php file_name.php its working fine. But If I run this code from browser it shows the following error....

newline in error_log in php

How to insert a newline while using error_log() in php I tried to use <br> and \n but those didn't work. ...