what are the differences in die() and exit() in PHP?
what are the differences in die() and exit() function in php, I think both have the same functionality. But i know there is something different in both.. what are they? ...
what are the differences in die() and exit() function in php, I think both have the same functionality. But i know there is something different in both.. what are they? ...
I want to auto-generate a readable URL from any natural text, like this: Latest article: About German letters - Handling äöü and ß! would ideally be changed to this latest-article-about-german-letters-handling-aou-and-ss.html It should work for all latin based languages and I want to avoid any escaping. I guess this could b...
hi I am using cabarc.exe in php to extract file from the .cab file. it gives out put as "unable to open file: xxx.cab"; when i copy command and run from command prompt it work fine. i have checked permission all files have same permission. my code is $command = $CFG->dirroot."cabarc.exe x \"".$cabFilePath."\" $tempDir\\"; $return = ...
Hello, I have an array of tags that I'm pulling from a database, I am exporting the tags out into a tag cloud. I'm stuck on getting only the first instance of the word. For example: $string = "test,test,tag,tag2,tag3"; $getTags = explode("," , $string); foreach ($getTags as $tag ){ echo($tag); } This would output the test...
A week ago there was an interesting post on the PHP-Internals list: http://marc.info/?l=php-internals&m=125842046913842&w=2 I've been thinking for a while what we should do about PHP6 and its future, because right now it seems like there isn't much future in it. I started getting worried about the future of PHP6 quite...
hi, I want to send mail to user daily. For that I will store the database some records. The PHP Script will send each record daily as mail to the user. These should be done automatically without admin or user interaction. Please give me some help or suggestion ...
Hello, Sir. I have a problem in implementing Mashups in PHP. Now I am using PHP Version5. I want to fetch flickr photo information from the site. And I think the code is correct. But I always face such errors as follows; Here is my php code: <?php header('Content-Type: text/xml'); ?> <?php $url="http://api.flickr.com/services/rest/?me...
I made a class. I give it some objects (mostly retreived database rows) as input, and tell it which fields it has to show, and which buttons I want. Then it renders a very nice html table! It's pretty awesome, I think. $ot = new ObjectTable(); $ot->objects = $some_objects; $ot->fields = array('id','name','description','image'); $ot->but...
In my web hosting server, file_get_contents() function is disabled. I am looking for an alternative. please help ...
I want to trigger a URL without user interaction. I used file_get_contents($myurl); But in my webhost file_get_contents() is disabled. how to do that. I dont want to read the contents of the URL. I just want to trigger the URL. Also I can not use header() function, because, Im going to trigger the url in a loop, so header will not be ...
I want to ask which is a better free web host provider with allow_url facility. I know this is not right place to ask this. where should i ask this ...
I want to execute a query and either it will return one row or none. I don't want to use mysql_fetch_array(). What else can I do? ...
In mysql boolean match, if no operators are present, OR is implied. If you want AND, you need to add + to each keywords. So query "word1 word2" is equal to "word1 OR word2", "+word1 +word2" is equal to "word1 AND word2" I don't want users to have to enter + before each keyword, what are my options? Suggested option 1: Is there some...
I am using paypal to process payments on my site. Paypal returns the post array like [item_number1] =12 [item_name1] = My product name [quantity1] =3 [item_number2] =14 [item_name2] = My product name2 [quantity2] =5 [num_cart_items] 2 Insert step here now im just going in circles getting nowhere And then run the for loop for($i = 1;...
I have already heard about the curl library, and that I get interest about... and as i read that there are many uses for it, can you provide me with some Are there any security problems with it? ...
Hmm.. thats realy different problem I fetch $links from db linke this $links = $db->GetAll("SELECT * FROM {$tables['link']['name']} WHERE STATUS = '2' AND CATEGORY_ID = ".$db->qstr($id)." {$feat_where} {$expire_where} ORDER BY {$sort_cols[$sort]} {$sort_ord[$sort]} {$limit}"); The array looks like this array(28) { ["ID"]=> str...
Hi all: I've convinced my boss to do the typesetting stuff using PHP(PHP Version 5.2.8). And this is what I got so far(set Character encoding to Unicode(UTF-8) if you see misrendered Japanese characters): demo page at my personal website Basically, if you copy and paste the latin sample paragraph into the textarea and click the button...
How do you organize and manage your helper objects like the database engine, user notification, error handling and so on in a PHP based, object oriented project? Say I have a large PHP CMS. The CMS is organized in various classes. A few examples: the database object user management an API to create/modify/delete items a messaging obje...
Hi all; Please let me know that : Where can download "GD library for php 5.2.5" and how install? thanks ...
<?php //example code $url = 'http://clients1.google.com/complete/search?hl=en&q=speed'; function processURL( $url ) { $contents = file_get_contents( $url ); return $contents; } print_r( processURL($url) ); ?> Output: window.google.ac.h(["speed",[["speed test","89,300,000 results","0"],["speed channel","76,100,000 results"...