743 Posted Topics
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … ![]() | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Could you please post just the relevant bit of code. It is very hard to wade through 10 page lengths of code. | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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, … | |
Re: 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. | |
Re: [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 … | |
Re: [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] … | |
Re: [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 … | |
Re: Isn't that what you want? To store each file name in a new row? How do you want to store the file names? | |
Re: [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 … | |
Re: 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? … | |
Re: [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 … | |
Re: [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] | |
Re: Did you do a var_dump() or simple echo of $output to see if the file data is actually there? | |
Re: 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] | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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, … | |
Re: try: [url]http://www.fpdf.org/[/url] doesn't need pdflib in php | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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() | |
Re: [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 … | |
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] | |
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 … | |
Re: 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) … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: I've posted the question to the moderator lounge: [url]http://www.daniweb.com/forums/post905956.html#post905956[/url] | |
Re: 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. | |
Re: [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 … |
The End.