11h
revised How to draw a gradient rectangle in PHP?
deleted 118 characters in body
11h
comment How to draw a gradient rectangle in PHP?
Thanks, but I really wanted to draw an image with PHP.
11h
accepted How to draw a gradient rectangle in PHP?
Jul
19
revised How to draw a gradient rectangle in PHP?
added 196 characters in body
Jul
18
asked How to draw a gradient rectangle in PHP?
Jul
16
awarded Supporter
Jul
16
comment PHP: xml_parse and xml_set_element_handler
Have you tried in HHVM as well? Because the problem is the different handling in PHP and HHVM, not how PHP handles it.
Jul
15
comment My .htaccess files "Save As" .htaccess.htaccess. Is that normal?Does it effect my PHP in codeigniter?
You should save it as ".htaccess".
Jul
15
revised PHP: xml_parse and xml_set_element_handler
Added HHVM output and version
Jul
15
comment PHP: xml_parse and xml_set_element_handler
No, it is not possible to fix the XML with Tidy since it is part of a data communication protocol I have no control over. You get the same output with PHP and HHVM? If so, which versions were you using?
Jul
14
awarded Supporter
Jul
14
awarded Supporter
Jul
14
comment PHP function strange array return
Is your var_dump() in a loop and perhaps called twice?
Jul
14
comment PHP: xml_parse and xml_set_element_handler
@hakre Thanks for your input. That could be a possibility for this issue. I don't have control over the input (it is part of the PHP/Java Bridge), so I know it is not XML. The main issue is, that PHP and HHVM treat the input differently.
Jul
11
awarded Supporter
Jul
10
awarded Yearling
Jul
10
comment Why does fopen('file.txt', 'r+') followed by write() truncate the file?
@user3449439 You have to understand, that when you put the pointer at the beginning, it just starts to write there. It does not move the existing data, it just overwrites it. That's why you get the contents, piece it together in memory and write the result back to the file.
Jul
10
comment Why does fopen('file.txt', 'r+') followed by write() truncate the file?
@user3449439 Thanks for the clarification. Would be nice if you could reconsider my answer now.
Jul
10
comment Why does fopen('file.txt', 'r+') followed by write() truncate the file?
@zeldi Please see my answer - I guess you downvoted that, too.
Jul
10
revised Why does fopen('file.txt', 'r+') followed by write() truncate the file?
Adjusted to edits of question
1 2 3 4 5