- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
outgoing geek with a split personally from total geek to non-geek :)
- Interests
- IT { Programming. Networking. General Web Development } NON-IT { Soccer Gaming (UT2004) Partying }
Re: The above links will help you learn about sockets. What you're looking to do is.. Create a socket (using socket() ). Setup destination for this socket, and the port you want to make this socket connect to (check the links). Try connecting to another socket at the destination end (using … | |
Re: Another solution would be, instead of using a foreach() you could use a for() loop. [code=php] $arr = array("cat", "dog", "horse", "frog"); echo "<select name=dropdown_list><option value="bleh">Choose Me</option>"; // loop while $i is less than count(the amout of elements) of $arr for($i=0; $i < count($arr); $i++) echo <option value=". $arr[$i] .">" … | |
Re: If your having ongoing problems with your connection at the PC end. It's possible that your TCP/IP Stack has become corrupt. XP SP2 users can type "netsh winsock reset" in command prompt, which will flush the TCP/IP stack, and you'll need to reboot your machine. Lots of long-winded information here. … | |
Re: fixed your problem at IRC, but just for the people who are sitting are the code thinking about it, when it's already been fixed :) Your doing a[j + 1] := tmp; on th third last line. Meaning when j reaches 5, your doing a[5+1] which is a[6] Which does … | |
Every page in the system is grabbed into index.php. For each page i'd like the title to change according to the page it's on, this can be set manually within each page we want to send. My question is what would be the most effective method of updating the title … | |
Re: Your Database information is incorrect In order to connect you will need to have the valid information for; DB Name DB Username DB Userpass DB Host One of these is incorrect. | |
Re: A better solution for yourself would be just to mask the bad words (unless you really don't want to send the email). Just do a preg_replace of *@!>&^ (or however many characters are in the badword). Nothing much wrong with your code though, just a few logic changes might benefit … | |
Re: Just a Tip for you, as you're new to PHP. Once you've written to the txt file and want to get all the info from it again. You can use the file_get_contents() function to store the file's contents into a string. Example: [code] $str = file_get_contents("file.txt"); echo $str; Drag.... [/code] | |
Hi there. All mail sent through the SMTP server, i need to modify the message being sent through. I already have a PHP script to send MIME emails with embedded images for HTML meails. However this can be re-created in C,bash,perl. What i need is a script to modify the … | |
Re: Recap on above Post. If your having an error with mysq_num_rows($res). Basically you need to verify that your query worked ok. Code for having error checking setup is. [code] $ret = mysql_query($query) or die(mysql_error()); [/code] This will output the error that is being caused at the query stage. | |
Hi there. All mail sent through the SMTP server, i need to modify the message being sent through. I thought of making either a C,bash,perl script to take in the message, modify it and return it to SMTP, or stop the SMTP process, and re-call it from the script. Purpose … | |
Hi there. All mail sent through the SMTP server, i need to modify the message being sent through. I already have a PHP script to send MIME emails with embedded images for HTML meails. What i need is a script to modify the message being sent to SMTP and return … | |
Re: [quote=iamthwee;407493]>[B]$sql = "SELECT[/B] [B]`policy` AS 'policy' FROM `Premiums` where ID < 10";[/B] This statement just doesn't make any sense in terms of SQL. And you got some strange (non standard ) apostrophe's there as well.[/quote] Iamthwee, what are you talking about ? the back ticks `` denote a field name … | |
Re: Cron jobs are your easiest solution. Another method would be making 2 PHP scripts to bounce off of each other. File 1: Run the target script wait 10 seconds and call File 2. File 2: Run target scritpt wait 10 seconds call File 1. It would be advisable to make … | |
Re: I think a representative of Daniweb (a high end moderator or something) should organise something, I personally don't see why london would be most convenient, people are from all over the UK, and london is at the bottom! Why can't we all meet in the middle of the UK, or … | |
Hey, just made the title like that, to grab intrest ;) I'm developing a system at the moment, i'm going to implement a filter to the login section, so that only 5 invalid login attempts can be made, then its temp denied access to login with that username, for 15 … | |
| |
Re: I'm not aware of any scripts to do this. You're looking to create your text file. Create a socket to your FTP server. Send the appropriate FTP commands to Login + change DIR + upload file. Then you will want to use actionscript to grab the file contents from FTP … | |
Re: You wouldnt really create the object of Animal in its own class unless you really need to. After creating the class and all its methods. You just need to do. [code] include_once("dir/clsAnimal.php"); $dog = new Animal("dog", "Woof!"); $noise = $dog->noise(); echo $noise; NOTE: Within your class your instance variables '$noise' … | |
Re: The following is the necessary code to store, check that no info was empty and email the user. You will need to change the $to variable to suit your needs. You will also need to make <input name="form_from"> for the Text Box that stores the users email address And the … | |
Re: aasgar. Your problem is when you do an explode() on the $even_time your seperator is "." but there are no dots in 13:00 it should be exlode(":", $event_time); Fix that, and it should work for you. Cheers. | |
Re: [quote=alicio_d;362109]I have the same problem, where can I find that modem driver!!! pls help.[/quote] As you can see, if you follow that above link it has "800/M800/MC810/MI811". listed. Thus if your modem is any of those types. then you're sorted. | |
Re: You could use JavaScript Encode, to encode the HTML/page source, so that it isn't readable at all. | |
Re: You can execute PHP in any part of your HTML page, for example witin the <head> | |
Re: [quote=stymiee;400142]As soon as they hit your site set a cookie regardless of what page they enter from. Don't check for it right away though. Some people will just want to browse and that's fine. But as soon as they try to use a feature that requires cookies look for the … | |
Re: You can also use system("PAUSE"), DevC++ puts this in for you automatically, i'm not sure about linux at all since i don't need to use it on Linux :) It just outputs "Press Any Key To Continue..." and waits for input. It's not good resourcefully if you use this method, … | |
Re: [quote=hitesh_mathpal;403085]how can we pass variable arguments in any function of C?[/quote] Simply to answer your question. [code] #include <stdio.h> int sum; int main() { sum = myfunction(5, 10); } int myfunction(int argument1, int argument2) { return argument1 + argument2; } [/code] Code not tested, but see no reason why it … | |
Re: Yes i was about to recommend WAMP for yourself. WAMP easily configures the above services together. You can set it to "offline" or "online" so that you can work from "localhost" or have it accessable from the interweb. I use it daily when i don't have internet access, i can … | |
Re: What is the money for? Are you paying that? or paying someone else that? Let me know, and i'll help you further. Or is that what you want your paypal integration to do. | |
Re: [quote=Aia;399898][code=C]/* * r_ascii.c */ #include <stdio.h> #include <stdlib.h> #include <time.h> #define MAX 126 #define MIN 33 int randy( int max, int min ) { int r_num; do { r_num = rand(); } while ( r_num < min || r_num > max ); return r_num; } int main( void ) { … |