8,966 Posted Topics

Member Avatar for hades.edy

Simplest: remove `ob_start` and `ob_flush`. The first one is preventing you from setting the headers.

Member Avatar for hades.edy
0
148
Member Avatar for shenn.to
Member Avatar for jony_munsi
Member Avatar for Lincoln65
Member Avatar for iamthwee

JetBrains' PhpStorm. Got into it because it's from the same guys as ReSharper. Works like a charm, and out of the box debugging. Using Navicat Premium for all my DB stuff.

Member Avatar for diafol
0
143
Member Avatar for dourvas
Member Avatar for diafol
0
138
Member Avatar for Stuugie
Member Avatar for Ancient Dragon
Member Avatar for jiecerbo31

After setting the label call `Application.DoEvents`. Your process does not take the time to update the GUI when it's running. Calling this function handles some events, so you will see the changes. Note that this of course slows down your processing.

Member Avatar for Mr.M
0
388
Member Avatar for manoj_582033

> I Were Thinking to Ping Every Pc On Timer Event Possible. Just add a check when the operation times out. That will occur if the PC is not available.

Member Avatar for manoj_582033
0
131
Member Avatar for Ritesh_4
Member Avatar for Ritesh_4
0
100
Member Avatar for php.coder

Change line 9: $r = mysql_query($q) or die(mysql_error()); If you get an error, show it here.

Member Avatar for php.coder
0
326
Member Avatar for lisaedward

There are tools for that, for example: http://www.xml-sitemaps.com/

Member Avatar for LaxLoafer
0
243
Member Avatar for bradly.spicer
Member Avatar for davidjennings

If it's a datetime column, you can format it with the `date` function.

Member Avatar for davidjennings
0
215
Member Avatar for Tinnin

Do you get this when you run the stored proc in phpMyAdmin (or another client), or when you run it from PHP? Based on [this thread on SO](http://stackoverflow.com/questions/1200193/cant-return-a-result-set-in-the-given-context).

Member Avatar for Tinnin
0
182
Member Avatar for peterson10012

http://www.daniweb.com/software-development/xml-xslt-and-xpath/threads/455023/general

Member Avatar for sophina8888
0
148
Member Avatar for Sahil89

I came across this, but I haven't used/tested this before: [title] { color: #ff0; } [title=something] { color: #0ff; }

Member Avatar for pritaeas
0
155
Member Avatar for mogaka

[Docs](http://dev.mysql.com/doc/refman/5.7/en/case.html). CASE needs a value to inspect: CASE (SELECT COUNT(id) FROM users) WHEN 0 THEN BEGIN END; ELSE BEGIN END; END CASE; Never tried this with inserts though. Is there a reason you are using CASE over [IF](http://dev.mysql.com/doc/refman/5.7/en/if.html)?

Member Avatar for pritaeas
0
89
Member Avatar for riahc3

You can by creating the stored procedure with two params and use `CALL yourprocedure(param1, param2)`. Apart from that I advise to use MySQLi or PDO using bound parameters. If you insert table names like that be sure to do strict validations before using them. Using backticks around your table and …

Member Avatar for riahc3
0
643
Member Avatar for mjtague
Member Avatar for mohammed.ismail
Member Avatar for xianamersu

No need to loop them all: $nm = 'xia'; $names = file('hi.txt', FILE_IGNORE_NEW_LINES); if (in_array($nm, $names)) { // user exists } else { // not found }

Member Avatar for diafol
0
344
Member Avatar for MargateSteve

[Here](http://techoctave.com/c7/posts/60-simple-long-polling-example-with-javascript-and-jquery)'s a nice introduction to long-polling.

Member Avatar for minitauros
0
189
Member Avatar for Borzoi

You could try [ini_set](http://php.net/ini_set) to override the error handling (but that could be disabled too).

Member Avatar for Borzoi
0
222
Member Avatar for mpc123

Line 11: $image = file_get_contents($file['image']); Line 16: $path = 'images/' . $file['image'];

Member Avatar for mpc123
0
144
Member Avatar for wplay

> I wasn't aware that you could change the quality of a gif. It's the quality of the resize process, not of the GIF.

Member Avatar for pritaeas
0
275
Member Avatar for aqualove
Member Avatar for bradly.spicer

If the two sites are on different servers, then the user `profiled_Moodle` may not have privilige to be used (as code_rum suggested). That user probably has access only to `localhost` to avoid tampering, meaning you cannot use that one from outside the server. You should create a new user which …

Member Avatar for bradly.spicer
0
197
Member Avatar for jaejoong
Member Avatar for yassink
Member Avatar for napninjanx
Member Avatar for napninjanx
0
219
Member Avatar for BestDeals
Member Avatar for BestDeals
0
55
Member Avatar for adeeb.keyaam

Do you get errors? Check with this: mysql_query (" INSERT INTO users (id, name, password, type, account, create, ip, login, logout) VALUES ('', '$name', '$password', '$type', '$account', '$create', '$ip', '$login', '$logout') ") or die (mysql_error());

Member Avatar for Webville312
0
254
Member Avatar for mohammed.ismail
Member Avatar for annaharris
0
102
Member Avatar for asif49

Like it says, the object is null. Most likely you need to add a null check before checking the object's property.

Member Avatar for asif49
0
166
Member Avatar for dina85
Member Avatar for riahc3
Member Avatar for NardCake

For sourcecode documentation, [PhpDoc](http://www.phpdoc.org/) is useful. User documentation is often written with help tools, if you want more than just a document (e.g. [Help and Manual](http://www.helpandmanual.com)).

Member Avatar for diafol
0
241
Member Avatar for showman13

Hard to tell what you want bolded. Am not digging through your CSS. One possible reason maybe [validation errors](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.hctubs.com%2Findex2.php&charset=%28detect+automatically%29&doctype=Inline&group=0). Why do you have so many nested tables?

Member Avatar for Zagga
0
214
Member Avatar for aVar++
Member Avatar for HumblePie
Member Avatar for pbj.codez
Member Avatar for MrXortex
Member Avatar for Reliable

> Is it common practice ot look at a cheat sheet or refer to a site when needing a method or looking for a property Yes, definitely. I can't remember everything for all languages.

Member Avatar for RoryGren
0
109
Member Avatar for MasterHacker110
Member Avatar for chrispitt

Read this [MSDN article](http://msdn.microsoft.com/en-us/library/aa933058(v=sql.80).aspx).

Member Avatar for chrispitt
0
93
Member Avatar for sashaiel

The first link returns a 500 server error, I can't open the second because it's taking too long.

Member Avatar for sashaiel
0
127
Member Avatar for SirMahlon
Member Avatar for mr.unknown
Re: php

Your PHP scripts should be in the wamp/www folder. For writing the scripts use a text editor or a decent IDE.

Member Avatar for jkon
0
256

The End.