- 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 }
68 Posted Topics
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 ) { … | |
Re: Yes.. because within a function, it has it's own scope issues, if you use the global keyword, you can access vairables/stuff outside the scope of this function. Thus, doing a global of your $outside vairable, makes it local within your function. However, if you change the value of $outside, it … | |
Re: What is exactly line 7 within your .php file? It's just a syntax error, and can be worked out momentarily for you :) Cheers. | |
Re: Security applies to all sections of IT. You can have application security, network security and so on. each one specialising in it's own field. Have a think, we have nothing better to do than chat about pointless stuff on forums :) | |
Re: I do something very similar. [code] /* set up valid pages in array */ $array = array('contact','forum','about','cable'); /* if page isnt set, make default page=home.php */ if(!isset($_GET['page'])) $page = "home.php"; /* if it exists within the array, assign $page to $_GET['page'] elseif(in_array($array, $_GET['page'])) $page = $_GET['page']; /* if is is … | |
Re: The issue is definetley connecting to the mailserver. I agree trying a public SMTP server. One i know of is: smtp.blueyonder.co.uk (Port: 25. SSL: No) Let us know how u get on. Cheers | |
Re: Check your phpini setting "max_execution_time". that can affect your uploads. Goodluck! | |
Re: Assuming your database is mySQL. You will need your mySQL server to be on the internet (accessable by IP Address). You can set 'priveladges' within PhpMyAdmin.. To set the specific HOSTS to accept incoming connections from. eg: localhost or 82.40.41.133 Very simply proceedure to do with PhpMyAdmin. Cheers. | |
Re: Your router is causing the issue. BitTorrent opens ports on your machine and listens for connections from peers/seeders. You're looking to use, not the offical BitTorrent client, but something like BitLord or BitComet. (stay away from Azureus). So if your trying to torrent, you're going to experience slow speeds and … | |
Re: Yes setting up dyndns is a good solution. Even better, you can use [url]www.no-ip.com[/url]. This comes with an 'auto update tool' Which will update your IP to the domain name you've bought. Thus, you can 1) have your server running from home. 2) have your domain point to your no-ip.com … | |
Re: Yes, AJAX is your solution. You're looking to use the onChange() javascript function within your Drop-Down box. Upon changing the value, you'll need to re-grab the information from the database. AJAX will be the easiest solution to your problem. | |
Re: Get an external CD drive, plug it in with USB. From there you can load up your hack disk and reset the passwords. USB drive will work, you need to setup your boot order to boot up from USB before HDD or floppy or CD-ROM. | |
Re: Yes. you're looking to grab and STORE the IP Address of the client that's viewing the website. This can be found at $_SERVER['REMOTE_ADDR'] in the PHP language. You're looking to have some kind of database to store all the previous IP's that have been entered, so you know if they've … | |
Re: Use Linux! :) What you COULD do. is; if you have Linux knowledge. Run a live CD (such as Ubuntu). Mount the windows HDD from ubuntu, browse the internet. download firefox for windows and save it to the windows HDD. Then you can boot up windows and you'll have firefox … | |
Re: [quote=jscriptanit;362905]Thank u I am trying my best[/quote] What you need is a Web Server.. which will host websites. Your looking to use PHP scripts, so yo'll also need a PHP server. And configure both of them together. To do this easily, assuming you're running a Windows Operating System. Download a … | |
![]() | Re: For Servers. Linux blows Microsoft out of the window, hands down. Offering stability, security and maintainability. Windows can be setup in 10 minutes, but as stated above, will give you numerous problems and issues. |
Re: USB drives are designed for compatibility and plug n play. Is the drive you're referrring to a USB drive or an IDE drive that you're building your own case for? Nonetheless, plugging an IDE HDD into a windows machine it will pick it up right away. You may need to … | |
Re: [quote=Antivirus;226465]I had connected to a wireless network via my lapto. but, it show Limited or No Connectivity... and i cant do anything with it.... Anyone knew what it the problem??[/quote] We need to know what type of modem you have, who is your ISP. What OS and Service pack are … | |
Re: Could you tell us how you re-registered your ssl libraries. And we can take it from there. | |
Re: It's the language of the website itself! or the language pack on your PC not installed correctly. If you don't have any joys with that. reinstall firefox, it may help clear things up. | |
Re: Restoring IE7 back to factory settings may solve any IE7 corruption thats taken place. THIS WILL WIPE ALL HISTORY/FAVOURITES..etc What a i can advise you to do, is to go to. Tools --> Internet Options --> Advanced (Tab). Choose "Reset" button. Close down IE7 and Start it back up again. … |
The End.