Search Results

Showing results 1 to 40 of 123
Search took 0.07 seconds.
Search: Posts Made By: iamthwee ; Forum: PHP and child forums
Forum: PHP Aug 29th, 2008
Replies: 4
Views: 496
Posted By iamthwee
I agree with the above post, disabling such functionality is a nuisance. It can't be done with php but may be possible using javascript.

However, considering people use very different web browsers...
Forum: PHP Aug 29th, 2008
Replies: 2
Views: 392
Posted By iamthwee
Should be pretty simple, each excel entry should have a unique ID, therefore duplicate insertion into a database CANNOT happen.

Is this true for you?

(*) Please don't post your entire code as...
Forum: PHP Aug 26th, 2008
Replies: 2
Views: 3,022
Posted By iamthwee
http://www.tizag.com/phpT/fileupload.php
Forum: PHP Jul 14th, 2008
Replies: 4
Views: 1,417
Posted By iamthwee
Javascript might be an option, have you checked out dhtml?
Forum: PHP Jul 14th, 2008
Replies: 3
Views: 868
Posted By iamthwee
If you want a domain name so it resolves to your ip address then you will need to buy a domain name. You also need to configure your router to accept connections etc.
Forum: PHP Jan 28th, 2008
Replies: 3
Views: 769
Posted By iamthwee
You need to give a better example than that.
Forum: PHP Jan 27th, 2008
Replies: 8
Views: 2,336
Posted By iamthwee
OK if I use a linux server, which is feasible, although my mom is gonna screw at me for wiping off windows LOL, does this avoid the problems regarding SMTP setting etc?

Thanx in advance.
Forum: PHP Jan 26th, 2008
Replies: 8
Views: 2,336
Posted By iamthwee
No I'm not getting anywhere with this.

I think my mail SMTP is mail.btinternet.com

It returned successful when I did a telnet on port 25.

Start > run > (type in cmd)
telent...
Forum: PHP Jan 26th, 2008
Replies: 8
Views: 2,336
Posted By iamthwee
Crap, is this a lot simpler to set up using linux then?
Forum: PHP Jan 26th, 2008
Replies: 1
Views: 587
Posted By iamthwee
I think to do that, it is going to be more effort than it's worth, but then what do I know. LOL

Maybe
http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html#function_match
Forum: PHP Jan 26th, 2008
Replies: 3
Views: 769
Posted By iamthwee
I wouldn't use reg ex.

I would just look for a substr within the string.
Forum: PHP Jan 26th, 2008
Replies: 8
Views: 2,336
Posted By iamthwee
Thank you for your reply, but what do I put for the smtp settings. Would it have something to do with my Internet service provider, would it be localhost? I'm confused :(

btw (I don't have an...
Forum: PHP Jan 26th, 2008
Replies: 8
Views: 2,336
Posted By iamthwee
I'm afraid that didn't work, anyone else?
Forum: PHP Jan 26th, 2008
Replies: 8
Views: 2,336
Posted By iamthwee
How do I send an email...

I have WAMP (windows xp apache, mysql and php).

But what do I do now. Explain...
Forum: PHP Jan 21st, 2008
Replies: 11
Views: 3,363
Posted By iamthwee
Yes install wamp it saves a lot of trouble. Unless you enjoy wasting time.
Forum: PHP Jan 13th, 2008
Replies: 6
Views: 2,288
Posted By iamthwee
Maybe see
http://www.depts.ttu.edu/helpcentral/directions/ODBCSetup.php
Forum: PHP Jan 12th, 2008
Replies: 7
Views: 2,328
Posted By iamthwee
So explain the following then:


http://docs.hp.com/en/36216-90103/ch03s02.html

Or are you talking about non-correlated sub queries. Please explain.
Forum: PHP Jan 12th, 2008
Replies: 7
Views: 2,328
Posted By iamthwee
>I think sub-queries are much faster than joins and also easier to understand.

What do you mean by faster...
Forum: PHP Jan 12th, 2008
Replies: 6
Views: 2,288
Posted By iamthwee
Using ODBC is by far the easiest way to do this, since you can connect to any database, on any computer on your network. It happens to be really simple to configure in Administrative Tools as well. ...
Forum: PHP Dec 28th, 2007
Replies: 1
Views: 1,667
Posted By iamthwee
Try using http://poi.apache.org/
http://sourceforge.net/projects/phpexcelreader/

The best way would be to convert it to a csv file and then just parse through it.
Forum: PHP Dec 19th, 2007
Replies: 4
Views: 1,110
Posted By iamthwee
What makes you think he is using a database?
Forum: PHP Dec 1st, 2007
Replies: 3
Views: 1,885
Posted By iamthwee
>My guess is that it has to do with the version of php my hosting company has

So have you tried that, with your version of php and has it worked?
Forum: PHP Dec 1st, 2007
Replies: 1
Views: 1,313
Posted By iamthwee
If you know how to generate one random number, surely you can generate two? I presume you have the intelligence to go to google and type in random numbers php?
Forum: PHP Nov 26th, 2007
Replies: 6
Views: 2,134
Posted By iamthwee
Have you thought about using regular expressions.
Forum: PHP Nov 24th, 2007
Replies: 6
Views: 2,134
Posted By iamthwee
Take out the if condition and put some echos there to see what output you're getting.

I'm curious about the $baseSection = (substr($row[0],-2,-1)=="_") -1 here in line 5?
Forum: PHP Nov 18th, 2007
Replies: 9
Views: 2,033
Posted By iamthwee
I mean have you tried my code?

You might also need to use the function:-

htmlspecialchars
http://ific.uv.es/informatica/manuales/php/function.htmlspecialchars.html

along with n12br()

If...
Forum: PHP Nov 18th, 2007
Replies: 10
Views: 2,927
Posted By iamthwee
I think it just reads out the file, line by line. To be honest I don't really use php, I just copied that snippet from the net.

Does that mean we can mark this thread as being solved? :)
Forum: PHP Nov 18th, 2007
Replies: 10
Views: 2,927
Posted By iamthwee
Forum: PHP Nov 18th, 2007
Replies: 9
Views: 2,033
Posted By iamthwee
Obviously that doesn't account for tabs or newlines... Any luck, I can't actually test that thing as I'm not on my linux box which has the php on it?
Forum: PHP Nov 18th, 2007
Replies: 10
Views: 2,927
Posted By iamthwee
Can you test the following as a separate php script and tell me what you see?


<?php
$filename = "file.txt";
$fp = fopen($filename, "r") or die ("nope");
while (!feof($fp))
{
$line =...
Forum: PHP Nov 18th, 2007
Replies: 10
Views: 2,927
Posted By iamthwee
In that case something else is counting the number of letters in your code when you are reading the thing back in.
Forum: PHP Nov 18th, 2007
Replies: 10
Views: 2,927
Posted By iamthwee
Can you test my code on its own as a separate php file please?

When you have ran that script open the text file and tell me what you see?
Forum: PHP Nov 18th, 2007
Replies: 9
Views: 2,033
Posted By iamthwee
I dunno does the below make any difference?


$string = 'This is a $gfd \' goo.d string £-$,';


if (preg_match("/[^A-Za-z0-9 .,-£$']/", $string)) {
print 'string is NOT OK!';
} else { ...
Forum: PHP Nov 18th, 2007
Replies: 10
Views: 2,927
Posted By iamthwee
I dunno, maybe you just need to write to a file:


<?php
$fp = fopen("file.txt","w") or die ("couldn't open!");
fwrite($fp, "blah\n");
fclose($fp);
?>
Forum: PHP Nov 18th, 2007
Replies: 2
Views: 1,156
Posted By iamthwee
You have a mysql function which does exactly this you know?
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Forum: PHP Nov 18th, 2007
Replies: 6
Views: 1,478
Posted By iamthwee
Forum: PHP Nov 18th, 2007
Replies: 9
Views: 2,033
Posted By iamthwee
maybe...

http://www.webmasterworld.com/forum88/13187.htm

second post from bottom
Forum: PHP Nov 16th, 2007
Replies: 3
Views: 1,798
Posted By iamthwee
You can also use mysql functions as well.
Forum: PHP Nov 2nd, 2007
Replies: 8
Views: 1,092
Posted By iamthwee
Huh, if you have repetitive code use functions!


>it ll take around 2000 rows... which means 50kb

Where did you pick that random number from honey? (50kb) Nonsense!


148 posts and no sign...
Forum: PHP Nov 1st, 2007
Replies: 8
Views: 4,648
Posted By iamthwee
>0000-00-00

This is meaningless. At least say something like: yyyy-mm-dd
Showing results 1 to 40 of 123

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC