146 Posted Topics
Re: I think [I]clone[/I] is only used to clone object references on PHP 5. For some reason [COLOR="Green"]$refToString[/COLOR] contained a string or null value result, that's why PHP indicated that error. | |
Re: Radhika, the problem can be resolved very easy step by step, would be necessary first to make an explode(), separating words using a space delimiter. The result will be an array with each index followed by a word. Now, inside the function, the for loop will iterate the passed argument … | |
Re: [QUOTE=maydhyam;653444]- Once you're in heaven, do you get stuck wearing the clothes you were buried in for eternity?[/QUOTE] Maybe, the clothes could be meaningless. We can keep an anthropormophic state or not. | |
Re: the level for my right hand: Very High (140) and High (107) for my left hand... I feel more [I]caffeinated[/I] after this exercise. ![]() | |
Re: Is that really a utf-8 string ? Seems text garbled, or text encoded differently. To deal with utf-8 content we can use utf8_encode() / utf8_decode() functions. | |
Re: Touch screen and multi touch UI have some implications / some guidelines you want to follow. Size of buttons (enough to be pushed with a finger), also consider the free space between each elements to avoid accidents e.g. two buttons pressed at the same time. Someone has suggested an effective … | |
Re: Yes, we can create a session variable with [COLOR="Green"]$this->Session->write("var_name", "value")[/COLOR] and then read it with [COLOR="green"]$this->Session->read("var_name")[/COLOR]. A global function (maybe into /app/app_controller.php) to check if the session variable exists and redirect to the Login controller would be almost mandatory. Then into the Login controller we'll need two functions, one to … | |
Re: Yes, you have two ways to achieve this. 1) Using server-side query with Ajax+PHP or Pure PHP, clicking on a table header cell will reassemble the query again changing ORDER BY. 2) Utilizing a jQuery plugin, there's a very good one, made by Christian Bach (tablesorter). | |
Re: To show the origin country, a general way is to lookup into a MySQL database with updated IP country ranges, GeoLite Free is a choice. Some commercial databases provide location even into cities. After this, you can use the country code to get their corresponding flag. To get WHOIS information … | |
Re: Try to [I]debug[/I] the code. Use print_r() to display the variable content before inserting it. If you are getting some blank values only... common mistakes are an incorrect name of a variable or a source empty. Use always escaping with single quotes on SQL queries (several times I've applied typographic … | |
Re: One thing you may need is a dynamic DNS provider. After registering one of these services, would be necessary to install an updater software to modify the DNS record automatically when the dynamic IP changes. If you have a router, check on the configuration page if there are a DDNS … | |
Re: A mandarin script class to convert Pinyin or romanized characters to chinese writing and visualize it using GD, all-in-one package, would be very useful. | |
Re: Revise your mysql database properties is set to utf8 and utf8_bin collation, then take a look at the table structure if it is utf8 and utf8_general_ci collation is selected too. Finally, inside the html layout, the meta 'content-type' must be stand as utf-8 charset to handle these characters. | |
Re: I suggest to validate the page for (X)HTML and CSS to make clear that there is not any syntax error. These displaying errors in IE6 is commonly due to an incorrect closed tag or sometimes due to a conflicting javascript function. Anyway, good luck. | |
Re: Content superb and updated is very important as well as presence in search engines with right keywords. With minimum knowledge you could start with SEO on your site. | |
Re: It is possible to use fopen() in PHP5 to send a POST request and obtain the content in a variable, check this tutorial: [URL="http://netevil.org/blog/2006/nov/http-post-from-php-without-curl"]http://netevil.org/blog/2006/nov/http-post-from-php-without-curl[/URL] According to the amount of data, sometimes is more fast and useful to use only string functions, with a combination of strpos() and substr(); other method … | |
Re: Yes, you can accomplish this task with imagegrabwindow(), from GD library. This function will capture the complete window, after this operation it's necessary to crop the image, using GD functions too. | |
| |
Re: I recommend every-time as possible the guideline use mentioned by digital-ether. I will try to make a more deep review. Create one table for clients, first field called id_[I](table name)[/I], type Int, as primary key and with auto-increment extra feature. Then, when you add a record, a new auto-incremented unique … | |
Re: why don't you use GD library? that provides the same functionality. I've attached two links as guidance: [URL="http://www.sitepoint.com/article/image-resizing-php"]http://www.sitepoint.com/article/image-resizing-php[/URL] [URL="http://www.tizag.com/phpT/fileupload.php"]http://www.tizag.com/phpT/fileupload.php[/URL] Also there is various threads on this forum talking about this topic and in addition, i think code snippets too... | |
Re: Use concatenate [B].[/B] and escaping [B]\[/B] operators like: [code]echo "<job id=\"". $result['id'] ."\" title=\"". $result['title'] ."\" company=\"". $result['company'] ."\" location=\"". $result['location'] ."\" />";[/code] In this way we have the result in xml syntax. | |
Re: xml post using fputs() and SimpleXML functions or XML to array class is another good and simpler method for great amount of data like rss, news, etc. | |
Re: Which language are you using in your text-based game? and what do you mean with a training function? If you're talking about a character the procedure is very simple... add points to each variable and store in a database. You could make simple formulas (sum points) to adjust some variables … | |
Re: I agree, that's why I returned to Windows now :) The question is, it is good to be good at one thing at least. | |
Re: A solution is to store the variable value in a hidden element inside form. For example: document.getElementById('id').value = id_var; Then, when the form is submitted the idea it's to create another hidden element using $_POST or $_GET. In javascript, then will be possible to use: var id_var = document.getElementById('id').value; | |
Re: mmm I see... Please, in the future use code tags when you post code to get more clear. The problem is in the conditions. If you use OR, when one is true, returns ever true value. If you use AND, the two values should be true to execute the intrinsical … | |
| |
Re: Use WHERE clause to filter occurrences in Mysql results and $_GET or $_POST variables to get url parameters (according to form method). For example, add including the quotes: [code] WHERE id = '". $_GET['id'] . "' [/code] | |
Re: That's true, the pro is that you will get more faster validation with js or ajax :) | |
Re: I recommend to use OOP to make a particular functionality, like a class to query the database or send different type of e-mails. The rest of the site, like views or presentation, it's usual to use structured programming. The most valuable in a CMS it's the database design IMO. Table … | |
Re: I love PHP, now it's time to take a large breath before submerge myself in Java struts/spring. I like more open platforms and code with long long life and not much microsoft. | |
Re: There are several methods... If you want to setup your linux box as router it is necessary to edit iptables file located commonly in /etc/init.d. Also, add or edit in /etc/sysctl.conf the following line to this: net.ipv4.ip_forward = 1 Now, if you want to configure your linux box to connect … | |
Re: I don't know if it possible, because there are a limit in [URL="http://ar.php.net/manual/en/function.rand.php"]rand()[/URL] and the processor, but if you really want only large numbers you could concatenate them with dots and min and max parameters, like: [code=php] $big_num = rand(32765, 32768). rand(32763, 32765). rand(10000, 32768). rand(32763, 32767). rand(15000, 32768). rand(18000, … | |
Re: Have you hear about [URL="http://qbnz.com/highlighter/"]GeSHi[/URL]? It is a good syntax colorizer and very unobtrusive. This is the code to put on: [code=php] include_once('geshi.php'); $geshi =& new GeSHi($source, "php"); echo $geshi->parse_code(); [/code] There are a bbcode tutorial at [URL="http://www.phpit.net/article/create-bbcode-php/"]phpit.net[/URL]. You can use preg_replace to get the content of code tags and … | |
Re: By general, I insert only the name of an image. I save the images in a folder. Anyway, sure that you can do so. There are some tutorials talking about that. You will have to do output buffering to display the mime content stored in the mysql record with header … | |
Re: why not c# acting as cgi? I appreciate a tool that works and deal with really ugly code, a perfect one :) | |
Re: The most important thing it's the array concept, if you learn to manipulate arrays, you will be able to put almost any data or given result. I like very much [URL="http://www.devshed.com/"]devshed.com[/URL], [URL="http://www.phpbuilder.com/"]phpbuilder.com[/URL] and [URL="http://www.phpit.net/"]phpit.net[/URL], very good articles about everything. | |
Re: You can look self-paced the PHP tutorial from w3schools (PHP is the most easier language) and then you can look feedback and contact form tutorials from Google to get a general idea. Start using Dreamweaver 8, you can do DB queries easily and another stuff automatically. If you want to … | |
Re: You could use for example z-index: -10; lower numbers will put an object in the background. | |
Re: $form = "<td class=hr>"; $form .= htmlspecialchars(Town)." </td>"; $form .= "<td class=dr><input type=text name=Town maxlength=30 value=\"". str_replace('"', """, trim($row['Town'])) ."\"></td>"; echo $form; Always use escaping \ when you use quotations inside another quotations, you could separate and concatenate items to deal then more clearly. | |
Re: SQL Server Express is "free", free in the meaning that you can download, install, test, personal use without the need to buy that rights. The copyright remain as Microsoft property, so you will need to accept a license agreement before installing because you cannot be able to sell a copy, … | |
Re: why not to add the files using "Send to" option on contextual menu (right button), then you could access to your dvd from "My PC" then click on "Write these files to CD"... There are not many clicks | |
Re: It isn't simple as you see it. You could reuse your database of your windows app (access, mssql maybe if exists) and display, modify the data through web but you will need a web developer. If you want to see your desktop from web you could use a VNC server … | |
Re: yes, right logic. Also you can add a field in Users table to add friends separated by comma, you could use then explode function to separate the array and find again each user to find correlations. I think your solution is the best choice. | |
Re: appart from sessions, you could use hash or random ids to reassert an identity coming from one computer | |
Re: maybe you would like a tool like acronis director to resize partitions without losing data... there another open source tools but I'm not tested yet |
The End.