Forum: PHP 8 Days Ago |
| Replies: 1 Views: 173 Of course.
If you leave it at none, nobody can alter any .htaccess settings, which is always more secure than allowing anybody to alter any of them.
But in general the .htaccess files are fairly... |
Forum: PHP 8 Days Ago |
| Replies: 3 Views: 263 Sure, I'm not doubting you. I was more aiming my reply at future readers.
Your recommendations against upgrading when you have existing code, may well cause people to be overly anxious about... |
Forum: PHP 8 Days Ago |
| Replies: 3 Views: 232 Yea, Netbeans uses a fair bit of memory, but never so much that it becomes a problem. At least not in my experience.
I've never seen it go higher than ~800Mb, and it usually stays at ~300-500Mb.
... |
Forum: PHP 9 Days Ago |
| Replies: 3 Views: 263 I wouldn't disregard it complete, though, out of fear of backwards incompatibility. Not before testing it.
If you are worried about compatibility with older code, setting up a test server on a... |
Forum: PHP 9 Days Ago |
| Replies: 3 Views: 232 Netbeans or Aptana.
Both can be used on either Windows or Linux, and include both of those features. |
Forum: PHP 11 Days Ago |
| Replies: 3 Views: 270 I would suggest Netbeans or Aptana for the PHP/HTML/CSS/JavaScript stuff. Both are free. I use Netbeans myself.
Can't help you with the Flash stuff. Don't really like Flash/Silverlight based webs.... |
Forum: PHP 13 Days Ago |
| Replies: 33 Views: 4,362 Hey.
Just post the code here and I'll take a look at it.
You can also attach whole files your posts if you need to. (See "Additional Options" below the reply box) |
Forum: PHP 15 Days Ago |
| Replies: 4 Views: 246 Maybe you could try, rather than use Cron to execute the Curl PHP code, to have Cron do a HTTP request to the PHP script via Apache on localhost.
Apache can run PHP as a module, rather than CGI... |
Forum: PHP 15 Days Ago |
| Replies: 4 Views: 246 Please tell me this is a typo?! xD
As to your problem... It jumps to ~20% on every PHP execution when you have cUrl enabled, even scripts that don't use it?
Sounds like a problem with the Curl... |
Forum: PHP 15 Days Ago |
| Replies: 2 Views: 297 Hey Mike.
To get your current code to only show the city you are hovering over, you need to have AJAX send the index of the city to the PHP file, and have PHP only return the data for that city.
... |
Forum: PHP 15 Days Ago |
| Replies: 2 Views: 232 Hey.
I can't really see any reason why that wouldn't work.
The mail()function is always a bit hard to work with tho.
Try something like PHPMailer (http://phpmailer.worxware.com/) and see if... |
Forum: PHP 15 Days Ago |
| Replies: 3 Views: 253 Hey.
I don't see a problem in the rules. Even tried it and it worked fine on my test server.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule... |
Forum: PHP 20 Days Ago |
| Replies: 4 Views: 773 Right... Care to elaborate? |
Forum: PHP 20 Days Ago |
| Replies: 4 Views: 312 My point there wasn't that there should be a hidden ID field, but that the "name" field should be inside the form as well.
Anything that is outside the <form> ... </form> elements will be ignored... |
Forum: PHP 21 Days Ago |
| Replies: 5 Views: 232 Neither of those actually change anything, samarudge.
Your first example is exactly like the one the jeet_portal posted in the first post. Using print instead of echo makes absolutely no... |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 312 Hey.
I would guess that it is because your fields, notably $_POST['name'], are not inside the form.
If you do something like:
<input type="text" name="name" />
<form action="?"... |
Forum: PHP 21 Days Ago |
| Replies: 5 Views: 232 Hey.
Because when you add a 0 to the start of an integer, PHP assumes you are using octal notation, in which the number 8 does not exist.
To print 8 in that way, you would have to do:
... |
Forum: PHP 23 Days Ago |
| Replies: 3 Views: 312 Hey.
Since this is browser specific, the problem is likely not in the PHP code itself, but rather the HTML (or other client-side code).
You should start by fixing the HTML for the login form.... |
Forum: PHP 24 Days Ago |
| Replies: 2 Views: 351 Hey.
Just wanted to point out that number should not be quoted in MySQL queries. Can cause all sorts of problems.
Assuming your $id is in fact a number:
$query = mysql_query("SELECT * FROM... |
Forum: PHP 28 Days Ago |
| Replies: 9 Views: 448 True, as horrific as that sounds :)
But in that case a minor glitch in the PHP support should be the least of his worries!
P.S.
For some reason, I've now got the urge to go set up Apache in Wine... |
Forum: PHP 28 Days Ago |
| Replies: 9 Views: 448 Says it all, doesn't it ;)
Edit, in case it doesn't:
The location "E:/PHP" he mentioned would indicate that he uses windows, and that he tells us this is the location of his php.ini would... |
Forum: PHP 28 Days Ago |
| Replies: 12 Views: 530 |
Forum: PHP 28 Days Ago |
| Replies: 3 Views: 312 And you are quite right :)
Unfortunately a lot of people try to use us to do their work for them; posting their projects all over asking that we post back the complete solution to their problems, so... |
Forum: PHP 28 Days Ago |
| Replies: 5 Views: 451 Agreed, you need to contact your host to get your login info.
Judging by your post, one of your pages is broken and is printing the PHP instead of it's normal output, or you forgot your login and... |
Forum: PHP 28 Days Ago |
| Replies: 9 Views: 448 Hey.
The most likely causes for that are:
You used short_open_tags without enabling them. (<? ... ?> instead of <?php ... ?>)
Your PHP files have an incorrect file extension. People new to... |
Forum: PHP 28 Days Ago |
| Replies: 12 Views: 530 I've always just assumed those region specific URIs directed you to a cache server closer to you. The cache server concept would remain the same, tho. They wouldn't actually be attached to a separate... |
Forum: PHP 29 Days Ago |
| Replies: 3 Views: 411 It should be, yes. You can define functions and classes withing an if block if you need to.
Doing something like this is pretty common:
<?php
if(!function_exists('myFoo')) {
function... |
Forum: PHP 29 Days Ago |
| Replies: 6 Views: 257 Scheduled executions of commands, on a Unix based system.
The Windows equivalent would be the Task Scheduler.
I would have to agree with kireol.
If you want something done without an outside... |
Forum: PHP 29 Days Ago |
| Replies: 2 Views: 282 Hey.
Hahses are by definition one-way, so using those in situations where decoding the data again is needed is not possible. (Or at least not practical.)
You say you need it to be an... |
Forum: PHP 29 Days Ago |
| Replies: 12 Views: 530 Agree, this is an excellent point. Especially if you have a lot of variable-length columns. They slow queries down more than most people realize.
It's best to identify the columns you don't need... |
Forum: PHP 29 Days Ago |
| Replies: 4 Views: 288 Your welcome. Glad it worked out :)
Yea, unfortunately we are pretty much forced to "break" our code to make it work in IE.
I find it best to develop my code 100% to standards - using Firefox... |
Forum: PHP 29 Days Ago |
| Replies: 12 Views: 530 Indeed, there are :)
I suggest you go with the method I mentioned in my first post; creating a 'page' table, in which you add a row for each new page.
I don't doubt that. I am in no way... |
Forum: PHP 30 Days Ago |
| Replies: 12 Views: 530 Yes, for typical websites that is true.
However, I am talking about websites like Facebook and WordPress, who get more hits per day than all of our websites combined are likely to get in our... |
Forum: PHP 30 Days Ago |
| Replies: 1 Views: 263 Hey.
Try commenting out the header and see if you get any errors. (Line #10).
You might have to turn on error reporting to see them, by adding this to the top of the script:
... |
Forum: PHP 30 Days Ago |
| Replies: 12 Views: 530 Hey.
In a properly designed CMS, changing anything just INSERTs, UPDATEs or DELETEs stuff from the database. If it is actually creating tables, or otherwise changing the database structure, there... |
Forum: PHP 30 Days Ago |
| Replies: 4 Views: 288 Hey.
The fact that the file ends in .php means absolutely nothing to a RSS feed reader. (Or rather; a RSS reader worth using.)
As far as they are concerned, if it acts like a XML file (uses a XML... |
Forum: PHP 31 Days Ago |
| Replies: 14 Views: 690 Just to underline how much easier it is to work with libraries like Prototype and jQuery, this is how ardav's "doForm1" function would have looked like in native JavaScript:
function doForm1(){
... |
Forum: PHP 31 Days Ago |
| Replies: 33 Views: 4,362 The problem is that the code relies on your browser to correctly align the <div> elements. When the tree is wider then the browser window, the browser automatically re-arranges the <div> elements to... |
Forum: PHP 31 Days Ago |
| Replies: 6 Views: 164 The problem you posted in post #29 doesn't seem to be related to the topic we are discussing in this thread. You should post it into it's own thread. Discussing two topics in a single thread gets... |
Forum: PHP 32 Days Ago |
| Replies: 14 Views: 690 True, that might be a problem. Although I have never really found to much data to be a problem :)
It could even help you refine your process; being able to see if a lot of people are abandoning it... |