743 Posted Topics

Member Avatar for muralibobby2015

[QUOTE=muralikalpana;1009940]hai friends, i want to code for send a short msg(sms) to my clients mobile phones through my website. anybody help me[/QUOTE] A simple method is to just send emails, to the phone service providers Email to SMS/TXT gateway. A list is here: [url]http://en.wikipedia.org/wiki/List_of_carriers_providing_SMS_transit[/url] For example, to send an SMS …

Member Avatar for digital-ether
0
92
Member Avatar for SKANK!!!!!

[QUOTE=codejoust;1005142]You can also try just adding a simple array in a php file, then checking it with [icode]inarray($array, $username)[/icode] in an if. Another option would be to do an sql query:[code=sql] INSERT INTO `users` ... WHERE (SELECT id FROM `invalidusers` WHERE `username` = `{$username}` IS NULL)[/code][/QUOTE] You can't place a …

Member Avatar for SKANK!!!!!
-1
309
Member Avatar for Gerald19

[QUOTE=Gerald19;1005013]Hello, I am working on a website where you must be able to select a certain period in weeks (a week -> saturday - saturday), e.g. from 10 till 24 oktober which includes 2 weeks. The only input for the php script is the year, month and day of both …

Member Avatar for digital-ether
-1
67
Member Avatar for mahe4us

[QUOTE=mahe4us;355754]Hi w_3rabi, Thankyou for your reply. Actually I made an application that users(doesnt have sessionid or registration in site) just come to site and add the products to their list. I maintained a temporary table which contains the products lists. If the users selected the products and send mail to …

Member Avatar for diafol
-1
176
Member Avatar for itsrahulk

[QUOTE=itsrahulk;1003698]Hi folks !! I got a project for developing the clone of the website [url]www.worldnews.com[/url] please help me in to getting start this as i have to develope it from scratch there is no help document available from the client side.from where should i need fetch the data or i …

Member Avatar for digital-ether
-1
94
Member Avatar for studioceasar

[QUOTE=whiteyoh;1003913]Hi, its not possible to just download an mp3 file straight off, you need a little intervention. try this script [url]http://elouai.com/force-download.php[/url] hope it helps. paul[/QUOTE] There are a lot of good examples of forcing a download at: [url]http://www.php.net/manual/en/function.header.php[/url] The example posted at: [url]http://elouai.com/force-download.php[/url] does not validate the file to send …

Member Avatar for digital-ether
-1
142
Member Avatar for Altairzq

Yes, unfortunatley you can't use XMLHttpRequest to upload a file fro the users computer. The reason is that JavaScript does not have access to the file contents. It only has access to the file name, once the user has selected a file to upload. This is a security feature. The …

Member Avatar for digital-ether
-1
357
Member Avatar for rajeesh_rsn

[QUOTE=rajeesh_rsn;997863]Hai, I had developed a web site. In that website I need to add a facility to check for the domain name availability. I am a PHP programmer. I need to check for .com, .net, .info, .co.in only. Please help me how to do this. Thanks Rajeesh[/QUOTE] You can use …

Member Avatar for rajeesh_rsn
0
327
Member Avatar for Originative

[QUOTE=Originative;996252]Hi, i making an webapp for my uni project that send an POST request using AJAX to the server and server returns an wav file in return... i want to know how do i get the [B]name[/B] of the returned file (using javascript) and also when the file is returned …

Member Avatar for digital-ether
0
76
Member Avatar for cwarn23

Could you explain what you're doing a bit please? The code is a bit hard to follow. [CODE]for ($i[1]=$j[1];$i[1]<15;$i[1]++) { //16.0655625GB Database for ($i[2]=$j[2];isset($char[$i[2]]);$i[2]++) { for ($i[3]=$j[3];isset($char[$i[3]]);$i[3]++) { for ($i[4]=$j[4];isset($char[$i[4]]);$i[4]++) { for ($i[5]=$j[5];isset($char[$i[5]]);$i[5]++) { for ($i[6]=$j[6];isset($char[$i[6]]);$i[6]++) {[/CODE] Do you really need that many nested loops? Are you running this from …

Member Avatar for digital-ether
0
378
Member Avatar for armyguydave69

What browser are you testing in? Try another browser to make sure it isn't specific to that browser. How often does it happen? Every 10 refreshes? 100? If you have firefox, and firebug, try looking at each HTTP request, and see if there is a difference between the http request/response …

Member Avatar for armyguydave69
0
185
Member Avatar for venus_me11

Could you please post just the relevant bit of code. It is very hard to wade through 10 page lengths of code.

Member Avatar for digital-ether
0
148
Member Avatar for jen140

You can get the file modification time in PHP: [url]http://www.php.net/filemtime[/url] [CODE]$mtime = filemtime('/path/to/file');[/CODE] To get the files in the directory, you can use glob() [url]http://us.php.net/manual/en/function.glob.php[/url] Or with PHP5, use RecursiveDirectoryIterator class. eg: [CODE]$dir_iterator = new RecursiveDirectoryIterator("/path"); $iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST); // could use CHILD_FIRST if you so wish foreach …

Member Avatar for jen140
0
103
Member Avatar for phpboy

[QUOTE=phpboy;979217]can someone at least tell me if it's possible or not ?[/QUOTE] You should be able to if you send the right HTTP request. Since the login page is under HTTPS, observing the HTTP request is not straight forward. What are you using to look at the HTTP request, if …

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

[QUOTE=almostbob;979153]I dont think you need to query a date 3 months ago, you need to find dates three months from now strtotime() function bogus brain dead almost code [code]$dateone=strtotime(now +3 month); $datetwo=strtotime(now +4 month); $result=mysql_query('select * from table where expiry > %s and expiry < %s, $dateone $datetwo'); [/code]as a …

Member Avatar for ayesha789
0
2K
Member Avatar for ryy705

[QUOTE=ryy705;992297]hello, I am trying to experiment with page caching. I would like my page to be cached by the browser for 15 mins. Because the page content does not change much but it downloads thousands of the same records from the database every time the page loads. I am generating …

Member Avatar for digital-ether
0
97
Member Avatar for itsjareds

Something not really used in JS is the second parameter of parseInt(). You can use it to convert between bases: eg: [CODE]// binary to decimal parseInt('101', 2); // 5[/CODE] So converting between binary and ASCII would be as simple as: [CODE]// binary to unicode character function bin2ascii(bin) { return String.fromCharCode(parseInt(bin, …

Member Avatar for digital-ether
0
996
Member Avatar for serkan sendur

Something like this should work: [CODE]/** * Return html numeric entities encoded string */ String.prototype.toHtmlEntities = function() { return this.replace(/[^a-z0-9\.\-\_\s\t]/ig, function(c) { return '&#'+c.charCodeAt(0)+';'; }); };[/CODE] Example: [CODE]'<div>This & that</div>'.toHtmlEntities();[/CODE] It replaces every non-alphabetic and numeric character (excluding a few defined in the regex pattern) with their character codes.

Member Avatar for digital-ether
0
222
Member Avatar for veledrom

[QUOTE=veledrom;983341]Still doesn't work. Also no error for [inlinecode]echo exec($createBackup);[/inlinecode]. I changed the path to [inlinecode]/usr/bin/mysqldump -u root -h localhost toy > /var/www/toy/toy-11-09-2009_10:03:41.sql[/inlinecode] but, still doesn't work in the script. As i said before, it works fine in Ubuntu terminal. I also, tar it in the terminal without any problem with …

Member Avatar for digital-ether
0
196
Member Avatar for cwarn23

[QUOTE=cwarn23;989609]I have tried running the following mysql queries through the phpmyadmin command console (mysql_query() code) but I seem to be unable to retrieve the value. Here is my code. [CODE][COLOR="#008000"]INSERT INTO[/COLOR] `table` [COLOR="#008000"]SET[/COLOR] `column`=COMPRESS("abcd") [COLOR="#008000"]SELECT[/COLOR] * [COLOR="#008000"]FROM[/COLOR] `table` [COLOR="#008000"]WHERE[/COLOR] UNCOMPRESS(`column`)="abcd"[/CODE] Also tried [CODE][COLOR="#008000"]INSERT INTO[/COLOR] `table` [COLOR="#008000"]SET[/COLOR] `column`=COMPRESS("abcd") [COLOR="#008000"]SELECT[/COLOR] * [COLOR="#008000"]FROM[/COLOR] …

Member Avatar for digital-ether
0
621
Member Avatar for deadmancoder

[QUOTE=deadmancoder;987995]i have a form.. i validated it.. if the form has an empty field, instead of popping up an alert box, i need to display a message that goes off say after 5 seconds.. any idea of how to do it?[/QUOTE] You can create or display and HTML Element, that …

Member Avatar for digital-ether
0
410
Member Avatar for Enthused

Isn't that what you want? To store each file name in a new row? How do you want to store the file names?

Member Avatar for digital-ether
0
95
Member Avatar for dasatti

[QUOTE=dasatti;985104]I had a code written long time ago which was working fine for small records but as the number of records begin to increase it completely failed. I am attaching the file with comments which will help you understand the problem. For fewer records you can see it working at …

Member Avatar for dasatti
0
148
Member Avatar for van2006

how are you saving the image? Are you just saving the image name or are you saving the image data? What type of database field are you using to save the image? text, blob, varchar? what code are you using to retrieve the image? where are you getting the error? …

Member Avatar for nurnamira
0
332
Member Avatar for sim_pack

[QUOTE=cwarn23;983269]Even better yet, use javascript to encrypt the passwords before sending it over $_POST. This way if the post data is hacked the data is still encrypted. This sort of hack attack can happen when a hacker attaches a device to a fiberoptic cable to scan data running past. Also …

Member Avatar for almostbob
0
323
Member Avatar for vssp

[QUOTE=vssp;267384]Hai friends I need one clarification for cookies . How to distroy the cookies using php . Please help me Thanks vssp[/QUOTE] Setting a cookie with no value is the same as deleting it. eg: [PHP]setcookie( 'cookie_name', 'cookie value'); setcookie( 'cookie_name'); // deletes the cookie named cookie_name[/PHP]

Member Avatar for click here
0
1K
Member Avatar for 68thorby68

Did you do a var_dump() or simple echo of $output to see if the file data is actually there?

Member Avatar for digital-ether
0
96
Member Avatar for Zack_G

It is probably easier to just use the SUM() function in Mysql: [url]http://dev.mysql.com/doc/refman/5.0/en/group-by-functions.html[/url] eg: [code]SELECT *, SUM(weight) AS sum_weight FROM ddcart_products...[/code]

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

[QUOTE=Aamit;983807]hi, my string is $string="Sign up for Facebook to connect with Jean Profession"; i want to find word randomly from string like :- connect or Profession whose length >4 and this word not is a facebook.[/QUOTE] You can use regular expressions or string functions. String functions: [url]http://us2.php.net/manual/en/book.strings.php[/url] Probably the simplest …

Member Avatar for cwarn23
0
132
Member Avatar for Toxikr3

[QUOTE=Toxikr3;979842]I didn't know where to post this so please move this if it is in the wrong place. I need flash to read from my database(mysql database) and also write to it. I tried doing it through php>xml>flash but it won't work. My friend works with flash while I work …

Member Avatar for Toxikr3
0
109
Member Avatar for survesunny18186

[QUOTE=almostbob;979780]Most find that speed is not the issue post is better for some purposes, get for others this discussion may help [url]http://stackoverflow.com/questions/1211881/why-get-method-is-faster-than-post[/url][/QUOTE] Something not mentioned on that link is that POST requests are not cached. GET requests are, and thus reduce the load on your server. Subsequent requests using GET …

Member Avatar for mazeroth
0
374
Member Avatar for Harshadewa

The simple solution is to edit the forum/adm/index.php file in your PHPBB base. At the very top, add: [code=php]ini_set('display_errors', '0');[/code] That would make errors not display on the page. However, they will still be logged if you have error logging on. If you are worried you won't catch other errors, …

Member Avatar for digital-ether
0
178
Member Avatar for php_coder
Member Avatar for asyouwish
0
1K
Member Avatar for valonesal

[QUOTE=valonesal;979904]allow_url_fopen is turned off how would I go about using the curl option?[/QUOTE] Getting the PHP source with curl is just adding more load to the old server, unless your files are on a separate system. Best to just copy your files to your new server and use the same …

Member Avatar for digital-ether
0
115
Member Avatar for Auch

[QUOTE=Auch;979178]Hi! I have a form working and in the login section I also give the option to register in case someone hasnt done so yet. This will show another form which, on submit, will use a different .php page. Now on that page,if register is successful, I'd like it to …

Member Avatar for Auch
0
105
Member Avatar for Naveenk2k

If a browser reloads a new HTTP request is sent. So what you can do is wait a few seconds for the next HTTP Request. eg: On the PHP page that updates the DB do a sleep(15); This way the script waits for 15 secs. Then check if the user …

Member Avatar for digital-ether
0
72
Member Avatar for Jeyush

Just a note, you should avoid using ereg() as it is deprecated. It is sad that it is, but it is. The PHP dev decided on using PECRE instead of POSIX Extended, those starting with "e". use the preg_ functions instead. ie: preg_match()

Member Avatar for digital-ether
0
157
Member Avatar for ondusko

[QUOTE=ondusko;980184]I installed a joomla template and the search seems to be the only thing that is not working ,it a;ways comes up with a 0' for results where in in the back end can i fix this issue ? thankyou[/QUOTE] I don't think this is related to the template. If …

Member Avatar for digital-ether
0
55
Member Avatar for digital-ether

This class allows you to use the Google AJAX Translation API to translate arbitrary text to the many languages supported by the Google API. Source versioning added to: [url]http://code.google.com/p/php-language-api/[/url]

0
1K
Member Avatar for digital-ether

Just copy and paste the snippet into a file and save. You need to save this under the web root, not in a web accessible folder. For example, on linux you could save it in your home directory. Say your user is "joe" then save it in /home/joe/ . Ify …

0
272
Member Avatar for MattEvans

The DOM 2 Specs implements addEventListener(). IE uses attachEvent(). Thus you can have something like: [code] /** * Add events * @param Object HTML Element * @param string name of trigger * @param string name of function to attach * @param bool capture */ addEvent = function(el, evType, fn, useCapture) …

Member Avatar for MattEvans
0
160
Member Avatar for aarya

[QUOTE=aarya]i have gone throught many crm package lik sugur,tiger ext. but still i dint get clear idea.what is CRM. in many job portal they expect us to know CRM knowledge.any body help how it helps thanks[/QUOTE] [url]http://www.google.com/search?q=define%3ACRM[/url] A CRM is quite extensive. It stands for Customer Relationship Management, and means …

Member Avatar for lil_Is
0
199
Member Avatar for AmericanGastro

[QUOTE=AmericanGastro;961542]I'm looking into developing a forum for medical purposes, however, although I have developed several websites in the past (mainly via Photoshop and Dreamweaver), I have never worked with forum software before. I am battling with whether or not to go with Invision Power's new Version 3 or VBulletin. I …

Member Avatar for AmericanGastro
0
224
Member Avatar for seangdy

[QUOTE=seangdy;961473]Hi Everyone I want to clear my session after browser is closed. Have any idea? Thanks in advance[/QUOTE] Is your PHP application reliant on instant updates? If not, then it is probably a better option to employ a session timeout. If the user has not requested a new page within …

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

[QUOTE=evstevemd;961613]I see there is $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME']; Which is the best? Also In google there are alot of $_SERVER['HTML_ROOT'] but I cannot find it anywhere in PHP manual and doesnt work on my WAMP[/QUOTE] Each has it's differences. I don't think there is a HTML_ROOT, just a DOCUMENT_ROOT index in …

Member Avatar for digital-ether
0
212
Member Avatar for michael100101

[QUOTE=michael100101;961095]If anyone is familiar with Mambo Content Manager, I would like to know how the system saves configuration settings to configuration.php. I would like to implement this idea into my own site, but I cant figure out how a PHP page rewrites and saves another page on the server. Anyone …

Member Avatar for digital-ether
0
172
Member Avatar for Javs

[QUOTE=Javs;961463]Hi everyone. I am selling a product and i would like to use a selection of affiliate networks.. As far as i know these affiliate companys track the sale there companys affiliates make by inputting code into your html. is this correct? If so if i were to use 50 …

Member Avatar for digital-ether
0
106
Member Avatar for cwarn23

I've posted the question to the moderator lounge: [url]http://www.daniweb.com/forums/post905956.html#post905956[/url]

Member Avatar for cwarn23
1
303
Member Avatar for dweddi

You can't expect people to jump in and help you complete your project. Try posting specific problems you come across, and making it as concise as possible. It is hard to read a whole page of code, but much easier to see whats wrong with a small block.

Member Avatar for dweddi
0
155
Member Avatar for penepepe

[QUOTE=penepepe;956738]hi all i'm trying to send an email with an attachment from a form and i've found a few scripts on the internet but can't make them work. has anyone got any simple code that works for sure? and another question: is the attachment sent directly or it has to …

Member Avatar for slyme
0
356

The End.