Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
~30.9K People Reached
About Me

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 }
Favorite Tags

68 Posted Topics

Member Avatar for gemni7

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 …

Member Avatar for dhanupatil
0
668
Member Avatar for pygmalion

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] .">" …

Member Avatar for tmks
0
772
Member Avatar for evanthespark

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. …

Member Avatar for flagstar
0
546
Member Avatar for Pim

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 …

Member Avatar for Ionelul
0
256
Member Avatar for dr4g

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 …

Member Avatar for kcmartz
0
1K
Member Avatar for muruganasm

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.

Member Avatar for alza
0
227
Member Avatar for esp68

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 …

Member Avatar for jiawei456123
0
559
Member Avatar for dudegio

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]

Member Avatar for candlelight
0
121
Member Avatar for dr4g

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 …

Member Avatar for Belrog
0
155
Member Avatar for Killer_Typo

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.

Member Avatar for michael.mckee
0
3K
Member Avatar for dr4g

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 …

Member Avatar for Salem
0
102
Member Avatar for dr4g

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 …

0
92
Member Avatar for Golffor1

[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 …

Member Avatar for fatihpiristine
0
182
Member Avatar for maninweb

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 …

Member Avatar for jmag
0
7K
Member Avatar for happygeek

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 …

Member Avatar for Dani
0
605
Member Avatar for dr4g

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 …

Member Avatar for digital-ether
0
520
Member Avatar for noman
Member Avatar for php_noob

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 …

Member Avatar for peanutpad
0
98
Member Avatar for Cerberus

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' …

Member Avatar for Cerberus
0
154
Member Avatar for Luc

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 …

Member Avatar for Luc
0
174
Member Avatar for assgar

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.

Member Avatar for dr4g
0
1K
Member Avatar for kbab246

[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.

Member Avatar for alicio_d
0
261
Member Avatar for MB1765

You could use JavaScript Encode, to encode the HTML/page source, so that it isn't readable at all.

Member Avatar for MB1765
0
194
Member Avatar for ndeniche

You can execute PHP in any part of your HTML page, for example witin the <head>

Member Avatar for WhiteLeo
0
135
Member Avatar for mangophp

[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 …

Member Avatar for digital-ether
0
1K
Member Avatar for wonder87

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, …

Member Avatar for Aia
0
124
Member Avatar for hitesh_mathpal

[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 …

Member Avatar for TkTkorrovi
0
204
Member Avatar for Cerberus

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 …

Member Avatar for zaphod2003
0
155
Member Avatar for vssp

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.

Member Avatar for ProgrammersTalk
0
113
Member Avatar for danysabin

[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 ) { …

Member Avatar for danysabin
0
507
Member Avatar for invisal

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 …

Member Avatar for dr4g
0
106
Member Avatar for swaters86

What is exactly line 7 within your .php file? It's just a syntax error, and can be worked out momentarily for you :) Cheers.

Member Avatar for dr4g
0
176
Member Avatar for ronrailey20

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 :)

Member Avatar for dr4g
0
41
Member Avatar for ReeciePoo

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 …

Member Avatar for dr4g
0
153
Member Avatar for pranto157

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

Member Avatar for dr4g
0
195
Member Avatar for sonirajesh

Check your phpini setting "max_execution_time". that can affect your uploads. Goodluck!

Member Avatar for dr4g
0
56
Member Avatar for bhavin12300

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.

Member Avatar for dr4g
0
82
Member Avatar for jbennet

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 …

Member Avatar for bxperts
0
144
Member Avatar for yassar

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 …

Member Avatar for alienlinux
0
143
Member Avatar for danielwoodhead

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.

Member Avatar for johny_d
0
3K
Member Avatar for Clubber2006

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.

Member Avatar for jbennet
0
258
Member Avatar for eXceed69

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 …

Member Avatar for dr4g
0
88
Member Avatar for bondi007

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 …

Member Avatar for bondi007
0
238
Member Avatar for jscriptanit

[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 …

Member Avatar for Phaelax
0
115
Member Avatar for iamthwee

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.

Member Avatar for jbennet
0
155
Member Avatar for bondi007

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 …

Member Avatar for bondi007
0
75
Member Avatar for Antivirus

[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 …

Member Avatar for dr4g
0
214
Member Avatar for flo246

Could you tell us how you re-registered your ssl libraries. And we can take it from there.

Member Avatar for dr4g
0
98
Member Avatar for Steph102

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.

Member Avatar for MidiMagic
0
155
Member Avatar for tez

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. …

Member Avatar for MidiMagic
0
123

The End.