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.5K 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
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
651
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
761
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
244
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
218
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
546
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
118
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
140
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
100
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
90
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
180
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
601
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
518
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
95
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
153
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
173
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
258
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
184
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
131
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
122
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
201
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
150
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
108
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
505