743 Posted Topics

Member Avatar for SgtMash

Do you really need IDs? Usually if you are going to group some elements together for some reason, use the "class" attribute instead of IDs.

Member Avatar for SgtMash
0
77
Member Avatar for kote_p
Member Avatar for lucky13

I'd suggest a more simplified test: [CODE=php]<?php error_reporting(E_ALL); ini_set('display_errors', '1'); mail("myemail@example.com", "test email", "test was a success", "from:myemail@example.com"); ?>[/CODE] Replace [email]myemail@example.com[/email] with your real email. If you get an email, the it is working properly. If you get some errors or don't get an email, then you know something is …

Member Avatar for digital-ether
0
154
Member Avatar for daastan

[QUOTE=daastan;51117]I did that i couldnt fine IIS server. i guess there is something else i need to do.. Thanx for your help. if i download apache server i can use it with that also. can u recommend any good site for Tutrioal ?[/QUOTE] An easy way to install Apache is …

Member Avatar for DdoubleD
0
279
Member Avatar for manojjena1982

[QUOTE=manojjena1982;950278]Hi! thr, I am uploading a file in to server. At the time of downloading, it should show "view as html" as google does. thanx in advance. Manoj[/QUOTE] This is actually a complicated task. You'll need to be able to parse different file types into HTML. For example, converting a …

Member Avatar for FlashCreations
0
144
Member Avatar for Pixelate

I dont believe the server side has anything to do with redirection problems since redirects used in PHP are normally the sending of the HTTP Redirect Header to the browser, or Document Moved Permanently etc. Header. This is the same across servers for which ever HTTP version being used. Its …

Member Avatar for skipbales
0
796
Member Avatar for sleign

PHP sits behind your web server. If a page does not exist on the web server, then PHP will never be invoked. For example, your page main.php doesn't exist, so PHP never gets executed. Most CMSs will have just one entry page. Usually it is the index.php page, at the …

Member Avatar for sleign
0
149
Member Avatar for wwwmadeasy

Is the image path actually saved to the database? Or is it blank? Is the image actually being copied to the directory /app_pics/ ?

Member Avatar for digital-ether
0
96
Member Avatar for Stefano Mtangoo

Simplest, a normal select or you can use the "like" keyword. [url]http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html[/url] However, for more efficient searching you want to create an index, either just a database index (like fulltext, or manually creating the index tables and indexing all columns), or an optimized search index such as an inverted index. …

Member Avatar for Stefano Mtangoo
0
130
Member Avatar for BlackPhoenix

[QUOTE=BlackPhoenix;949408]Hi everyone, I am trying to create a system that will allow me to update the browsers of each client (person) currently viewing a webpage. Don't worry so much about why I am wanting to do this, but please critique my 2 solutions, and tell me which one is the …

Member Avatar for digital-ether
0
112
Member Avatar for ramsri05

[QUOTE=ramsri05;949697]Thanks buddylee17, Well, I wanted to add leading zero in the numeric datatype only. because I should insert it into MySql database BIGINT data field. Is there any way to insert the numeric/string value with leading zero into MYSQL BIGINT field ? If I insert a string of "0123456" this …

Member Avatar for digital-ether
0
2K
Member Avatar for digital-ether

I'm trying to track all changes made to a PHP variable. The variable can be an object or array. For example it looks something like: [CODE]$object = array('a', 'b');[/CODE] This object is then persisted to storage using an object-cache. When php script runs again. So when the script runs the …

Member Avatar for digital-ether
0
453
Member Avatar for radios4rabbits

Could you explain what you're trying to do? If you want to use a function all for the replacements, you need to use preg_replace_callback(). Programs actually execute the innermost function first, instead of the outtermost. They just execute each line from top to bottom. ie: [CODE]$tags = explode(' ', preg_replace('/"([^"]+)"/e', …

Member Avatar for digital-ether
0
94
Member Avatar for mahe4us

HI mahe4us, Are you using GD or Imagemagick? With Imagemagick you can use the -flip option to get the mirror image. heres an article on imagemagick for php: [url]http://www.sitepoint.com/article/dynamic-images-imagemagick[/url] If you're using GD, unfortunately there is no function to get the mirror image using GD functions in PHP. The only …

Member Avatar for AXJ
0
290
Member Avatar for digital-ether

I've written an Object Cache in PHP. [url]http://code.google.com/p/php-object-cache/[/url] However, it requires PHP Sockets support which is not available on a lot of PHP builds. Coming to the conclusion that all hosting that support PHP should support C, I'm going to rewrite this in C. The PHP source is here: [url]http://code.google.com/p/php-object-cache/source/browse/trunk/socket.class.php[/url] …

Member Avatar for jephthah
0
171
Member Avatar for ayesha789

Here is an interesting page that could be used to create a password strength meter: [url]http://www.lockdown.co.uk/?pg=combi[/url]

Member Avatar for ayesha789
0
253
Member Avatar for OmniX

Just send a file that represents the page, to the browser. Some examples can be found here: [url]http://php.net/manual/en/function.readfile.php[/url] Basically, you're sending the same file, but telling the browser to treat it as a download. eg: If the file is example.php Then in that file, you could have a parameter $_GET['download']. …

Member Avatar for digital-ether
0
510
Member Avatar for mustafaneguib

Try hardcoding a URL in its place, to make sure you aren't making a mistake. Turn on error reporting and display all errors. [code] error_reporting(E_ALL); ini_set('display_errors', 1); [/code]

Member Avatar for digital-ether
0
170
Member Avatar for khanayub_chand

[QUOTE=khanayub_chand;904906]I have installed Mysql 5.1 and it did install. But when i configured mysql, It gives me an error while staring the Service saying "Could not start the MySQL service". I have Reinstalled the Complete Mysql by deleting all the registry keys but still the same error is being displayed. …

Member Avatar for digital-ether
0
77
Member Avatar for ayesha789

It is probably faster to do something like: [code=php] function age($birthday) { return date("Y", time() - strtotime($birthday)) - 1970; } [/code] It first converts the $birthday string to Unix Time. Which is the number of seconds since the epoch (midnight Jan 1 1970 UTC). [url]http://en.wikipedia.org/wiki/Unix_time[/url] [CODE]strtotime($birthday)[/CODE] Then subtracts the birthday …

Member Avatar for digital-ether
0
160
Member Avatar for plgriffith

[QUOTE]The first iteration would take about 1 minute and each subsequent iteration took about 10 seconds. Now, on my Mac, each iteration takes the full minute.[/QUOTE] Thats a pretty slow operation. Are you sure you've optimized it well? Is the db tables well indexed? Are you using the correct storage …

Member Avatar for digital-ether
0
122
Member Avatar for sagedavis

You need to create a session that will keep track of the user. Retrieve the userid, and usertype from the database, and save this in the session. Or you can just save the userid, and query the database for the usertype when you want to check their usertype. [url]http://www.php.net/session[/url]

Member Avatar for neekworld
0
438
Member Avatar for mohan7690

[QUOTE=cwarn23;897820]With that being said, I remember reading somewhere in daniwebs about this topic that you get what you pay for. So as you mentioned free ones are more likely to be cracked however, if you pay for a thousand dollar encrypter then not many people will buy the product just …

Member Avatar for digital-ether
0
111
Member Avatar for michael123

[QUOTE=michael123]Is there a function in php to remove the duplicate string variables, for example there is "abcd,ab,cd,abc,abc", how to change it to "abcd,ab,cd,abc"?thanks.[/QUOTE] To make it a bit clearer, heres the custom function. [PHP]// removes duplicate substrings between the seperator function uniqueStrs($seperator, $str) { // convert string to an array …

Member Avatar for ShawnCplus
0
4K
Member Avatar for avukadomusic

[code]print_r($matches);[/code] The $matches[1] should contain what you want. The sub matches ie: anything between ( and ) go into their own indexes in $matches starting from 1 being the first (). $matches[0] contains the whole match. This would be a lot faster with single string functions. eg: strpos() to get …

Member Avatar for digital-ether
0
109
Member Avatar for geny

Do a var_dump($xml); to see its structure: To use property names that have characters not allowed in PHP you have to quote them, and encapsulate the string in braces. eg: [code=php] echo $xml->{'xls:RouteInstruction'}->{'xls:Instruction'}."<br />"; [/code]

Member Avatar for digital-ether
0
112
Member Avatar for mr.khurrams

Yes, is is possible with wordpress. You can create custom pages with the funcitonality you want, through an extension. [QUOTE=Josh Connerty;892056]I suppose you could yes, you would need to play a little with the configuration. When I say a little I mean you would have to literally rewrite allot of …

Member Avatar for mr.khurrams
0
315
Member Avatar for Suhacini

SQL allows you to SELECT from multiple tables in a single query with [URL="http://dev.mysql.com/doc/refman/5.0/en/join.html"]JOIN[/URL] or join multiple selects together into a single query with [URL="http://dev.mysql.com/doc/refman/5.0/en/union.html"]UNION[/URL]. [B]Using JOIN: [/B] [CODE]SELECT * FROM table1 WHERE username = 'bob' JOIN SELECT * FROM table2 WHERE username = 'bob' LIMIT 0 , 10[/CODE] Note …

Member Avatar for digital-ether
0
347
Member Avatar for navi17

[QUOTE=navi17;891856]can anyone tell me difference between scripting type language and any other language? thanks in advance[/QUOTE] see: [url]http://en.wikipedia.org/wiki/Scripting_language[/url] This question has been answered many times in this forum and almost every other software forum. Do a search on the topic please.

Member Avatar for digital-ether
0
121
Member Avatar for tanmoy_india

[QUOTE=tanmoy_india;892061]no actually I can't create a counter that will count every user...my counter count on every reload...thats why...[/QUOTE] When talking about website statistics, usually a "hit" refers to the access of any resource on the server such as html files, images, audio, video etc. [QUOTE]that will count every user's click...plzz …

Member Avatar for digital-ether
0
170
Member Avatar for jcanaway

[QUOTE=jcanaway;891087]i figured it out i use 3 serialize they a similar to a normal array and im using a ajax command that jquery includes in its library and the command is as so [ICODE] $.ajax({ url: "example .php", type: "POST", data: myArray1 + myArray2 + myArray3, }); [/ICODE] i took …

Member Avatar for jcanaway
0
471
Member Avatar for spiriad

[QUOTE=spiriad;891046]Hello there, Is there any good online web based code (text) editor with syntax highlighting for different languages (C,C++,PHP, etc) and auto-completion .Or, with at least one of that options (better if both, especially auto-completion)? Seems that the results from gooogle aren't helping me so much. Thanks[/QUOTE] Here is a …

Member Avatar for digital-ether
0
133
Member Avatar for dpatz

[QUOTE=dpatz;891279]Hi, I know this is really easy to do because I did it before I just can't seem to find how... I'm using Joomla and I would like to pass a variable from an address line like [url]http://develop.acieap.com/index.php?option=com_content&view=article&id=60&Itemid=51[/url] I would want to get id and Itemid and just pass it …

Member Avatar for digital-ether
0
164
Member Avatar for Anvar.P

There are some client side implementations of PHP. eg: [url]http://gtk.php.net/[/url] [url]http://pear.php.net/package/XML_XUL/[/url] Of course this doesn't run in a browser natively. But like Flash, you could for instance create a browser plugin that allowed execution of your client side PHP.

Member Avatar for Will Gresham
0
110
Member Avatar for justted

[QUOTE=Atli;888771]Hi. If you do allow them to use their own CSS, be careful not to let them use [icode]url()[/icode]values, as that could make your users vulnerable to XSS attacks. [i](As well as any other style that would allow loading of external resources... can't think of any more of them at …

Member Avatar for digital-ether
0
160
Member Avatar for sam023

[QUOTE=Atli;888782]Hi. Have you made sure your server allows URLs to be used to get data like that? Try this: [code=php]<?php header("content-type: text/plain"); echo "fopen : ", (ini_get('allow_url_fopen') ? "TRUE" : "FALSE"), "\n"; echo "include: ", (ini_get('allow_url_include') ? "TRUE" : "FALSE"), "\n"; ?>[/code] If both are FALSE, then your server doesn't …

Member Avatar for digital-ether
0
2K
Member Avatar for jamello

[QUOTE=Atli;889593]Ok. How about the Apache error log? Were there any error messages in there that might help?[/QUOTE] I have to second this question. When you change the apache configuration, restart apache. If it doesn't restart, check the error log file. it will tell you why it didn't - most probably …

Member Avatar for digital-ether
0
204
Member Avatar for lamiv007

[QUOTE=lamiv007;880483]After changing the $args1 & 2 to 0 & 1, it is showing an error "Unable to find the socket transport "https" - did you forget to enable it when you configured PHP? (52)"[/QUOTE] Using HTTPS (or TLS) would require the OpenSSL extension for PHP to be installed and enabled. …

Member Avatar for digital-ether
0
629
Member Avatar for OmniX

Here is a bit on uploading files in PHP: [url]http://www.php.net/manual/en/features.file-upload.post-method.php[/url] You can convert the file to flv after uploading using FFMPEG and FLVTool2 for the metadata. FFMPEG-PHP can help with this: [url]http://ffmpeg-php.sourceforge.net/[/url] It's probably easier to use [URL="http://www.ffmpeg.org/"]FFMPEG[/URL] and [URL="http://inlet-media.de/flvtool2"]FLVTool2 [/URL]in the command line first and when you're successful, try …

Member Avatar for digital-ether
0
1K
Member Avatar for Aamit
Member Avatar for ShawnCplus

[QUOTE=kkeith29;864665]It really doesn't matter since mysql_fetch_assoc() will evaluate to false if there are 0 rows, therefore the while loop will not run. No server should have errors with that basic code.[/QUOTE] True, there should be no problems with the while() loop. It is good to note that if you use …

Member Avatar for digital-ether
6
4K
Member Avatar for sunilsinha

[QUOTE=sunilsinha;878977]Hi all, How can restrict images for not storing in browser cache. Or in another way how can we delete browser cache files programitically. I have tried header in php. Also i tried Cache-Control of meta tags, but still images are cached and even it update image, browser is showing …

Member Avatar for digital-ether
0
289
Member Avatar for jonow

[QUOTE=jonow;878559]Is there a JavaScript script that determines the geographical location of the visitor? I need one to determine that and depending on there location run 1 of about 5 different JavaScript scripts. How do i do this? Does someone know were i can can a script to do this or …

Member Avatar for digital-ether
0
224
Member Avatar for smartsoft

HI smartsoft, Are you asking about the login/registration system or just the sms sending from php? For the sms: 1) Phone Providers Email to SMS gateway There's quite a few ways you can send sms from a php script, however, all are indirect methods (php cant send sms messages by …

Member Avatar for shefeekj
0
2K
Member Avatar for love72817

which pop up image? Popup's are done with JavaScript, window.open() function. This opens an actual browser window. There are also hovering elements, which look like popups. They are also done with JavaScript and a bit of CSS.

Member Avatar for realmfilms
0
132
Member Avatar for Aamit

[QUOTE]how to modified script that means .. new_div.appendChild(new_img); it appends with old image ... any other method that remove older & replace with new??[/QUOTE] It should append a new image if the src of the image is the new one. If you want to remove the old image first, take …

Member Avatar for danishbacker
0
174
Member Avatar for ranjithnagaband

[QUOTE=ranjithnagaband;592801]Hi i have one small application which includes clients registrations and contact details.Now i want voice recording which records the customerts conversation with the web site holder n tht conversation has to store in database. So i need a PHP application which supports the voice recordins.[/QUOTE] You'll need either Java …

Member Avatar for digital-ether
0
774
Member Avatar for elbashamoe

[QUOTE=elbashamoe;853618]I am using PHP and cURL to extract a website for its images using the <img tag. i would like to know how to loop through the whole page to get all of the images. so far im able to get 1 image but cant figure out how to get …

Member Avatar for digital-ether
0
64
Member Avatar for sassenach

[QUOTE=sassenach;832384]Hi, I have a email piping code show below. It works fine, except that when i print the $message, it also shows me some headers. [B]How do i strip the headers from the message itself?[/B] [B]email_piping.php file[/B] [code] #!/usr/bin/php -q <?php //header('Content-Type: text/html; charset=utf-8'); header("Expires: Mon, 26 Jul 1997 05:00:00 …

Member Avatar for digital-ether
0
1K
Member Avatar for cwarn23

[QUOTE=cwarn23;835402]Hi, I'm making a site security tester which is basically a bot that scans a selected website for any php security holes such as sql injections then reports them to the user. I have managed to write the bot and all but the last piece left is the function that …

Member Avatar for cwarn23
0
192

The End.