Forum: PHP Aug 29th, 2008 |
| Replies: 4 Views: 496 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 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 http://www.tizag.com/phpT/fileupload.php |
Forum: PHP Jul 14th, 2008 |
| Replies: 4 Views: 1,417 Javascript might be an option, have you checked out dhtml? |
Forum: PHP Jul 14th, 2008 |
| Replies: 3 Views: 868 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 You need to give a better example than that. |
Forum: PHP Jan 27th, 2008 |
| Replies: 8 Views: 2,336 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 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 Crap, is this a lot simpler to set up using linux then? |
Forum: PHP Jan 26th, 2008 |
| Replies: 1 Views: 587 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 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 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 I'm afraid that didn't work, anyone else? |
Forum: PHP Jan 26th, 2008 |
| Replies: 8 Views: 2,336 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 Yes install wamp it saves a lot of trouble. Unless you enjoy wasting time. |
Forum: PHP Jan 13th, 2008 |
| Replies: 6 Views: 2,288 Maybe see
http://www.depts.ttu.edu/helpcentral/directions/ODBCSetup.php |
Forum: PHP Jan 12th, 2008 |
| Replies: 7 Views: 2,328 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 >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 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 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 What makes you think he is using a database? |
Forum: PHP Dec 1st, 2007 |
| Replies: 3 Views: 1,885 >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 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 Have you thought about using regular expressions. |
Forum: PHP Nov 24th, 2007 |
| Replies: 6 Views: 2,134 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 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 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 |
Forum: PHP Nov 18th, 2007 |
| Replies: 9 Views: 2,033 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 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 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 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 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 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 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 |
Forum: PHP Nov 18th, 2007 |
| Replies: 9 Views: 2,033 maybe...
http://www.webmasterworld.com/forum88/13187.htm
second post from bottom |
Forum: PHP Nov 16th, 2007 |
| Replies: 3 Views: 1,798 You can also use mysql functions as well. |
Forum: PHP Nov 2nd, 2007 |
| Replies: 8 Views: 1,092 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 >0000-00-00
This is meaningless. At least say something like: yyyy-mm-dd |