146 Posted Topics

Member Avatar for edek

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.

Member Avatar for martin5211
0
10K
Member Avatar for radhigoud

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 …

Member Avatar for martin5211
0
294
Member Avatar for ZZucker

[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.

Member Avatar for Lardmeister
0
1K
Member Avatar for The Dude

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.

Member Avatar for Epic Tissue
0
97
Member Avatar for ldaves

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.

Member Avatar for ldaves
0
96
Member Avatar for lifeworks

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 …

Member Avatar for lifeworks
0
69
Member Avatar for mahaguru

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 …

Member Avatar for martin5211
0
78
Member Avatar for justinmyoung

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).

Member Avatar for Shanti C
0
90
Member Avatar for maddogsprofiles

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 …

Member Avatar for martin5211
0
167
Member Avatar for ishlux

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 …

Member Avatar for martin5211
0
78
Member Avatar for Sheridan

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 …

Member Avatar for martin5211
0
105
Member Avatar for littlebears0404

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.

Member Avatar for martin5211
0
93
Member Avatar for flashyflashy

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.

Member Avatar for martin5211
0
66
Member Avatar for justinman

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.

Member Avatar for martin5211
0
101
Member Avatar for lajocar

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.

Member Avatar for selfhelpebooks
0
311
Member Avatar for nathanpacker

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 …

Member Avatar for ha1e
0
158
Member Avatar for vssp

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.

Member Avatar for tere
0
157
Member Avatar for brainchief
Member Avatar for MidiMagic
0
723
Member Avatar for jay64

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 …

Member Avatar for jay64
0
151
Member Avatar for Venom Rush

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...

Member Avatar for Venom Rush
0
95
Member Avatar for jencinas69

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.

Member Avatar for martin5211
0
88
Member Avatar for gotmick

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.

Member Avatar for martin5211
0
141
Member Avatar for moyles

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 …

Member Avatar for moyles
0
82
Member Avatar for ndeniche

I agree, that's why I returned to Windows now :) The question is, it is good to be good at one thing at least.

Member Avatar for ithelp
1
344
Member Avatar for nil_gh_80

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;

Member Avatar for JeniF
0
68
Member Avatar for rime

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 …

Member Avatar for martin5211
0
82
Member Avatar for >shadow<
Member Avatar for dudegio

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]

Member Avatar for dudegio
0
399
Member Avatar for kumuda

That's true, the pro is that you will get more faster validation with js or ajax :)

Member Avatar for cuchandoo
0
111
Member Avatar for khatreett

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 …

Member Avatar for martin5211
0
102
Member Avatar for ProgrammersTalk

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.

Member Avatar for MattEvans
0
226
Member Avatar for Prithwish

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 …

Member Avatar for martin5211
0
54
Member Avatar for edu2004eu

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, …

Member Avatar for edu2004eu
0
116
Member Avatar for satforce

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 …

Member Avatar for martin5211
0
151
Member Avatar for nil_gh_80

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 …

Member Avatar for Eko
0
148
Member Avatar for ArNy

why not c# acting as cgi? I appreciate a tool that works and deal with really ugly code, a perfect one :)

Member Avatar for ArNy
0
163
Member Avatar for woocha

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.

Member Avatar for martin5211
0
290
Member Avatar for mrjersh

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 …

Member Avatar for autocrat
0
114
Member Avatar for php_noob

You could use for example z-index: -10; lower numbers will put an object in the background.

Member Avatar for autocrat
0
129
Member Avatar for phobia1

$form = "<td class=hr>"; $form .= htmlspecialchars(Town)."&nbsp;</td>"; $form .= "<td class=dr><input type=text name=Town maxlength=30 value=\"". str_replace('"', "&quot;", 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.

Member Avatar for phobia1
0
83
Member Avatar for chait_anya

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, …

Member Avatar for chait_anya
0
103
Member Avatar for julleankka

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

Member Avatar for martin5211
0
138
Member Avatar for Acewins

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 …

Member Avatar for martin5211
0
96
Member Avatar for rwagner

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.

Member Avatar for martin5211
0
116
Member Avatar for Pro2000

appart from sessions, you could use hash or random ids to reassert an identity coming from one computer

Member Avatar for martin5211
0
163
Member Avatar for Firestone

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

Member Avatar for martin5211
0
98

The End.