743 Posted Topics
Re: [QUOTE=gtamawale;749537]i am beginner. i dont know how to configure mail server. would u please explain about mail server and also about smtp and pop3 server and their configuration with example.....[/QUOTE] First choose a DNS server, Mail Server (SMTP server) and POP3 server. The configurations are very specific, but in general, … | |
Re: Yes, you usually do add validation later. Simply you would want to make sure all form fields were filled in. To check you would do: [CODE=php]if (isset($_POST['field']) && $_POST['field']) { // it was filled in }[/CODE] If it wasn't you could give a message, stating that a particular field or … | |
Re: [QUOTE=elbuhleini;751932]Hi to all, php n00b here :-) I have a simple problem and would like to ask for some help... What I want to do is this: when our affiliate submits his aff ID into the form, a php script should post that ID from DB, but load it into … | |
Re: [QUOTE=ChintuChowdary;745782]hi to all, i need code for downloading a page into a doc file.[/QUOTE] Are you on a Windows OS? See the PHP COM and .Net interfaces: [url]http://www.php.net/manual/en/book.com.php[/url] [url]http://www.php.net/manual/en/class.com.php[/url] Reading a file from a URL is as simple as: [CODE]$content = file_get_contents('http://example.com/path/to/file.ext'); [/CODE] Then you'll use the COM functions to … | |
Re: [QUOTE=PomonaGrange;752437]Hi all. I am having a little trouble trying to get a small script to work. What I am trying to do is create a page to use with DADA mail mailing list software. I would like this page to search through the DADA mail text file of email address … | |
Re: [QUOTE=woodson;750931]Hi, I have the string like [code]var test="<NewDataSet> <Table1> <S_x0020_No>1</S_x0020_No> <Defect_x0020_Causes>None</Defect_x0020_Causes> <Defect_x0020_Count>2614</Defect_x0020_Count> <Percentage>63.22</Percentage> <Cumulative_x0020_Percentage>63.22</Cumulative_x0020_Percentage> </Table1> </NewDataSet>"..[/code] So.i would like to convert the string into Xml document.. any idea.. Thanks & Regards, S.Sajan.[/QUOTE] see: [CODE]/** * Parse strings into XML Object * http://onwebdevelopment.blogspot.com/2008/05/converting-xml-to-json.html * @param {String} XML String */ textToXML: function(strXML) … | |
Re: [QUOTE=cwarn23;746864]Although I don't know anything about it there is a function called http_request(); and the official documentation can be found at [URL="http://php.net/manual/kr/function.http-request.php"]http://php.net/manual/kr/function.http-request.php[/URL][/QUOTE] Note that this is a pecl extension. You'll have to build it into PHP. If you need just a simple HTTP Request, you can use file_get_contents(). This makes … | |
Re: [QUOTE=cwarn23;747300]I have just discovered a major bug in php and an example is the below code. For some reason php rounds the variable $var to the number 2 and displays "2" instead of 1.99999999999999999999999999999999999999. So how would I make php display 1.99999999999999999999999999999999999999 while keeping the variable an integre for mathematical … | |
Re: You don't need to create temp tables to hold the distinct results. You can just add DISTINCT to your query, for the field that you want to be distinct. [CODE]$sql = "SELECT DISTINCT(field), * FROM paid WHERE title LIKE '$alph%' ORDER by asc";[/CODE] where field is the one you want … | |
Re: [QUOTE=mgn2683;750917]Hi, I am trying to restrict access to a dynamic list page based of a login id. Essentially a person will login, be directed to the index.php page and can then click on a link to Exam Evaluation. From this page, there are two links, and they can click on … | |
Re: You could also write the session data associated with that session ID so a shared resource, such as a database or file. Then both PHP and Java can share the data associated with a session. | |
Re: [QUOTE=50tips;747480]Hi, I have installed wordpress multiuser script on my vps host. when a user tries to upload a file, the script will create new folder, the new folders begin created are under apache ownership, that's why they are not accessable by normal users. can someone guide me how to set … | |
Re: [QUOTE=websurfer;747492]thanks Keith.. gonna google ffmpeg to see how it's used...[/QUOTE] I think this PHP class has an ffmpeg wrapper as well as emulation of ffmpeg in pure php. | |
Re: [QUOTE=Anil4u;748692]Hi all, How to add google adsence module in Drupal, please can anyone help me, when i integrated then it asking for Google AdSense client ID, register in google adsence , but i have not that client id, please help me for this, i am able to test in the … | |
| |
Re: [QUOTE=Venom Rush;744079]Ok, I think I'm beginning to understand this better. Thanks a lot for the explanation darkagn. I really appreciate it ;)[/QUOTE] Abstract classes can also be used to hide complex code, while still being extensible. Say implementing the Animal class was quite involved and complex, now someone who didn't … | |
Re: A lot of people get on the net with IPs that change very often, dial-up, mobile phones, wireless networks, different locations etc. There's are also single IPs that can be used for multiple clients when they are behind a NAT. Also to consider: There are client side storage facilities other … | |
Re: [QUOTE=RuneMan;746991]I am developing a website which encrypts every user's password with sha1() method and is stored in the database. Now the problem is I want to offer a recover password function for my users. but i dont know how to get the password from the salted string Help me!!![/QUOTE] The … | |
Re: [QUOTE=r_sathya;744951]Hai I am sathiya i display my database records using PHP . i display radio buttons to select the candidate. and at last i will give submit button to update . But i want to update each and every candidate by clicking the radio button seperately by using AJAX. please … | |
Re: PHP allows you to use Array notation in your form field names. eg: [CODE] <input type="checkbox" name="checked[check1]" /> <input type="checkbox" name="checked[check2]" />[/CODE] When received in PHP, you get an Array. eg: [CODE] $checked = $_GET['checked'];[/CODE] If both the fields were checked, then $checked would be: [CODE]$checked; // array('check1'=>1, 'check2'=>1);[/CODE] The … | |
Re: [QUOTE=alimoe;742799]I heard that AJAX is good!... I dont understand it well. I need to learn it in two months. I am not sure if it is possible. The project is running out of time!.[/QUOTE] You'd need at least a small team of PHP developers, and at least 6 months without … | |
Re: [QUOTE=hopalongcassidy;736310]My problem is that I have a PHP application that needs to (in Windowsese) multi-task. I am relatively new to PHP and equally new to Linux. I need to know how to pass information from a parent process to a child process and vice versa. If somebody could please provide … | |
Re: [QUOTE=xan;741180]I would not suggest showing E-Mail addresses at all ever on a website as these can be picked up by less than wholesome people :) But if you really want to do this, echo an add the a mailto to the code around the email address.[/QUOTE] To create an email … ![]() | |
Re: [QUOTE=pedramphp;739322]Dear folk , I'm work with PHP speedy Plugin which makes my webpage loads 500% faster [url]http://aciddrop.com/php-speedy/[/url] , the configuration of the php speedy is ok , but when I add <?php require('C:/wamp/www//php_speedy/php_speedy.php'); ?> af the top of the page and then <?php $compressor->finish(); ?> at the bottom of the … | |
Re: [QUOTE=pedramphp;740016]Dear folk , consider I define a constant value [code=php]<?php /*--------values.inc.php ------------*/ define("Data","MyValue") ?>[/code] so right now I want to change the Value of Data from another page and I wold like that to be saved on Values.inc.php file , you know I'm thinking some kind of data Store ,instead … | |
Re: [QUOTE=rickya100;741320]As much as I can tell it is. The file is being written when output buffering is not on. So I would assume that that means that the directory is OK. I'm developing locally on a Mac (the folder properties show it not locked and that read & write is … | |
Re: [QUOTE=Aamit;741144]Hi, I want to [COLOR="Red"]search data using Ajax php without pressing on search button.[/COLOR] How to do that?? [COLOR="Red"]any script or link demo or sample code ???[/COLOR] i want do this search like orkut search means design ?? plz help me??[/QUOTE] You'll need to know a bit of JavaScript. Basically, … | |
Re: [QUOTE=tanha;734312]Hi. I don't know whether this is the right place asking this question or no. I want to know, is it possible to use PHP code into JAVA code? if yes how?[/QUOTE] There are quite a few implementations of PHP in pure Java. See: [url]http://www.caucho.com/resin-3.0/quercus/[/url] [url]http://www.projectzero.org/[/url] [url]http://www.sun.com/download/products.xml?id=45c26bc9[/url] If you need … | |
Re: [QUOTE=justted;731818]Hello, I have been setting up a photo upload feature for a website which allows members to upload photos. I am also after some advice on how large a file should be? I thought about allowing members to upload a photo up to 100,000 in size and allowing a maximum … | |
Re: [QUOTE=Diode;730468]I'm making a site for a guy, and he needs a way to email all his customers with a single form to save time and be more efficient. I got the compose page done. But in the past, from my experience, when I sent myself emails generated from sendmail, some … | |
Re: [QUOTE=bigginge;730128]I've used a generic flash/php contact form on a new site but the webhost has told me it's open to spamming. Is there any way round this? Is there a PHP script that is safe to use?[/QUOTE] You should first ask how specifically it is open to spam. Is it … | |
Re: Since you already have your form. In send.php you an use a SMTP mail class such as Swift ([url]http://swiftmailer.org/[/url]) or PEAR Mail ([url]http://pear.php.net/package/Mail)[/url]. | |
Re: [QUOTE=edek;731826]I have a reference to some string. I need to copy (clone) that string. This is what I tried [CODE=PHP] $newString = $refToString; //this just copies the ref - no new memory allocated $newString = clone $refToString; //this creates "__clone method called on non-object" error [/CODE] If anyone knows how … | |
Re: Resizing images is very server intensive, you wan to do it only once for an image size, and keep that thumbnail saved on the disk. It is better to save the path to the image in mysql but you can also save the binary data. If you need the original … ![]() | |
Re: talkwithtarique, Is the problem with actually opening a popup? A popup window can be opened in javascript with the window.open() method. A div, can be create dynamically via DOM methods. The way it floats, like in Gmail, is through CSS styling (notably the position:aboslute or position:fixed properties). Is this what … | |
Re: You could use the friend_requests table as the list of friends if you added an accepted field do it. eg: viewing friends $userid = intval( $_SESSION['logged']); select f.* from friend_requests left join members as m on (m.id = f.sender OR m.id = f.recipient) WHERE m.id = $userid AND f.accepted = … | |
Re: [QUOTE=Diode;732132]How do you send emails encrypted with SSL from php? Thanks[/QUOTE] You could probably get the native PHP mail() function to send via TLS. On windows mail() will send through SMTP based on the PHP.ini config. You could probably get this configuration to use TLS. On Linux mail() sends to … | |
Re: [QUOTE=Ajay Patel1;731219]Hi I want to Convert HTML table in to text file using PHP for that what i have to do? pls Suggest me Thanks All, Ajay[/QUOTE] Is it just a single table, or nested tables (can there be tables inside that table). [B]Consider the table: [/B] [CODE]<table> <tr> <td>Row … | |
Re: Try to telnet into your socket to see if it is working as expected or not. telnet host port type something see response It would probably kill the listening socket on the first key press, since its just listening for the first read and telnet will send as you type … | |
Re: [QUOTE] (strpos($email, " ") != FALSE || // DON'T KNOW WHY USING "!=" SIGN (strpos($email, "@") === FALSE || // DON'T KNOW WHY USING 3 "=" SIGN [/QUOTE] [php](strpos($email, " ") != FALSE[/php] is the same as [php](strpos($email, " ") == TRUE[/php] != (NOT EQUALS) is the opposite of == … | |
Re: [QUOTE=kishou;564982]anyone know where i could find a file with all the words from the dictionary?[/QUOTE] You'd probably be interested in the Dict.org, Ispell, Pspell projects etc. *nix words list: [url]http://en.wikipedia.org/wiki/Words_(Unix[/url]) word lists on sourceforge: [url]http://wordlist.sourceforge.net/[/url] | |
Re: Hi shanee, I think its better if you try to use unix shell instead of php to copy the contents for the folder to the new one. Something like: [code]cp path/to/old-pictures/* path/to/new-pictures[/code] where path/to/ is the path to the folders. Heres a reference: [url]http://pangea.stanford.edu/computerinfo/unix/shell/commands.html[/url] If you dont have shell access … | |
Re: [QUOTE=AON07;714887]Okay i'm getting the basics of php but I have no idea where to even start to code this idea... I have a database "DB_Name" and a table "images" This table has the following columns (id, category, image name, image path, caption) Keep in mind all my images are stored … | |
Re: Heres the docs on creating stored procedures: [url]http://dev.mysql.com/doc/refman/5.0/en/create-procedure.html[/url] From my tests (on win): You have to use: [CODE] delimiter //[/CODE] Which will set the delimiter to [B]//[/B] instead of the default [B];[/B] This will allow you to use [B];[/B] in your store procedure - it will be treated as a … | |
Re: [QUOTE=oku;603562]Hello everyone, Well i've just searched the forum to see if my question has been answered prioer to posting, but seem to find the answer. Well basicly i've created a script to help me monitor and maintain the domain names my company owns (1000's) I've virtually finished it but i … | |
Re: [QUOTE=cwarn23;699316]Below is a script I made which will delay the page by 2 seconds however, although the page will be processed with the delay, you may find that the whole page may display at the same time (after 2 seconds). [CODE=php]<html> <body> <?php $oldseconds=date(s); if ($oldseconds==58) { $newseconds=='00'; } else … | |
Re: [QUOTE=Clipper34;699868]Hey guys, sorry if i posted this in the wrong forum. My question is, say if you have a PHP Shell used via the internet. How would you go about of uploading a file and deleting a file? Thanks, Clipper34.[/QUOTE] Hi, Could you explain what you mean by "PHP Web … | |
Re: [QUOTE]I managed to code the request stock but now the problem is storing those values in an array and passing them on in the POST. I dont know how to do that.[/QUOTE] To pass HTTP params as an array, use the array notation, eg: item[] [CODE]<input name="item[]" />[/CODE] PHP will … | |
Re: [QUOTE=wiz83;522385]hi you please tell me how to call javascript files from c++ code?i know this(iam not 100% sure) that you first call html files,then from ther you call javascript files.[/QUOTE] What are you using C++ for? If you're creating a HTML page, then you can just embed the JavaScript files. … | |
Re: [CODE=php]$dir = 'http://www.conway.cz/quizzes/XML'; $quiz_file = getNextFilename_file($dir, 'quiz', 'xml');[/CODE] Your directory is: [url]http://www.conway.cz/quizzes/XML[/url] This is a URL, not a directory path. PHP will create a HTTP socket to that URL (if allow_url_fopen is enabled in config). What you want is for PHP to create a PHP socket to the file system. … |
The End.