Search found 88 matches

Actual Results

Post Posted: August 9th, 2009, 1:14 pm

I have the following in the PHP string variable (not in the $_GET):

Code: [ Select ]
$myString = "index.php?option=com_content&id=62&view=article";

How can get extract out the value 62?

Post Posted: July 18th, 2009, 10:40 am

When a user posts a form, I can retrieve their values by ...
Code: [ Select ]
But this particular form is dynamically constructed so I do not know all the name attributes of all the inputs fields. I don't even know how many input fields there are. So there could be an input fie...

Post Posted: July 3rd, 2009, 10:25 am

I have an image stored in a MySQL table as a "longblob". How can I write PHP code to write this data to an image file?

Post Posted: June 28th, 2009, 10:41 am

I put ...

Code: [ Select ]
php_value register_globals 0

in my .htaccess file and got a 500 server error.

Why? Is that not how I am supposed to disable register globals?

When I remove that line, it is fine.

Where is a good tutorial on how to disable register_globals?

Post Posted: April 1st, 2009, 9:21 pm

I'm using PHP readdr as in this tutorial to list the files in the server directory. I can list the files fine. But I want it to query the directory list in AJAX fashion. So a user clicks a button, and AJAX query is made to retrieve the list of files in the directory, and then display that list to th...

Post Posted: February 1st, 2009, 12:06 pm

I have an element (a link actually) where on mouse over, I display a hidden layered div using Javascript. But I want this div to be located right underneath the link element. Due to fact that the page centers horizontally, the link element is in different coordinate on the browser window depending o...

Post Posted: November 12th, 2008, 11:45 pm

Barrie North, founder of JoomlaShack says in his book "Joomla! An User Guide" on page 197 ... [code]"There is no such thing as a search engine optimization anymore. The only reality now is having a long-term web marketing strategy and a commitment to building a site full of quality in...

Post Posted: November 7th, 2008, 11:24 am

If I see the following in Joomla code...
Code: [ Select ]
$menu = JSite::getMenu();
What is the colon colon operator called? I don't see that listed here . What is "JSite" called? Is that "object", "class", "static class"? Is that a "class" or "an...

Post Posted: November 1st, 2008, 3:33 pm

What PHP code can return "2008" (the current year)?

Post Posted: September 4th, 2008, 9:47 am

Given an URL to an image, how can I write a PHP function that determines or returns the height and width of that image in pixels?

My server do have access to ImageMagic (i think).

Post Posted: July 24th, 2008, 12:39 pm

Bandwidth and disk space spec are not so important if you are just starting out. Because almost all host will have more than enough disk and bandwidth than you would likely need. I always pick ones that has 24x7 phone support, not those that only have email or ticket support. If you plan on having m...

Post Posted: July 6th, 2008, 1:58 pm

Oh, okay. I'll stick with IndexIgnore in the .htaccess file since it is working for my shared host's configuration. I simply wanted to prevent users from listing my files in a directory where I didn't have an index.html


Post Posted: July 5th, 2008, 1:46 pm

In the .htaccess file, is ...

Code: [ Select ]
Options -Indexes
  1. <Directory YOUR WEBROOT PATH>
  2. Options -Indexes
  3. </Directory>

equivalent to ...

Code: [ Select ]
IndexIgnore *

Please explain. If not, which is preferred method? Thanks.

Post Posted: June 26th, 2008, 8:52 am

Thanks. Here is my third and final entry: "artcoder comp3" Link to fullsize image It uses Dreamstime stock image #2426729 and the Baveuse font. Stock images are good for backgrounds, but they are also good for sel...

Post Posted: June 24th, 2008, 4:11 pm

Here is my second submission called "artcoder comp2" ... Full image here . Stock image references: Girl: #2646246 Background: #4764405 Banner is an animated GIF with a subtle ...

Post Posted: June 11th, 2008, 7:35 am

I'm looking for an open-source poll script where visitors can select choice from radio buttons and then view poll results in bar chart. It should have cookie checks in place to prevent people from voting twice.

Any recommendations?

Post Posted: June 5th, 2008, 9:08 pm

jameson5555 wrote:
I thought for sure that 50kb would make Flash out of the question, but mine ended up at only 26kb somehow...

Flash compiler is very good at making small file sizes.

Post Posted: May 27th, 2008, 10:51 am

Interesting. The only language that I am aware of that has case-insensitive keywords is Visual Basic -- not but the old VB.

I think I'll use the all lowercase version for the PHP boolean.

Post Posted: May 26th, 2008, 3:27 pm

I'm looking at the PHP reference here ... And it show boolean as sometimes as "True" (with cap on first letter). Then other times it show "TRUE" (with all caps). Am I suppose to use (single cap or all caps) for these two cases ... 1) $foo...

Post Posted: May 26th, 2008, 3:00 pm

CA-SA wrote:
I don't see any animation occurring in the image, artcoder...

Yeah, the animation is very short because I tend to think long animations that loops can be too annoying.

You might have to view the banner in its full size as linked here.

Post Posted: May 25th, 2008, 10:23 pm

Here is my submission. It is an non-looping animated gif. So do a Shift-Refresh to see the animation again.


To see the image at full size, view it here.

Post Posted: May 6th, 2008, 7:42 pm

Is it permissible to use screen shots of some of your actual templates in the banner? Or is that against copyright regulations?

Post Posted: March 14th, 2008, 7:09 am

Thanks. Interesting thoughts. In my case, it seems to be is a proper PHP file with the servers running too slow or overloaded.

Post Posted: March 13th, 2008, 1:59 pm

This is bizzare. I'm navigating around a site and it appears to run very slow. I'm afraid it is going to time out. And all of a sudden, my Firefox browser pops up dialog saying "Do you want to open or save to disk?" and it was a PHP file. I have never encounter a browser asking me to save ...

Post Posted: March 11th, 2008, 5:41 pm

Are you saying that every search results returned by this has been reviewed by a human? That is a daunting task, isn't it?

Post Posted: March 8th, 2008, 9:58 am

Good explanation. Understood.

Post Posted: March 7th, 2008, 10:31 pm

Thanks, altering the php.ini worked perfectly.

Rabid Dog wrote:
Just a silly question. Why are you not handling the errors in your code gracefully?

That's because I have not quite learned that yet. But I will soon.

Post Posted: March 6th, 2008, 8:20 pm

Hmmm. The documentation does say that this is how to turn off error reporting. But when purposely put in this syntax error...
Code: [ Select ]
<?php error_reporting(0); echo getTop(; ?>
My browser is still displaying syntax error at line XX of file XXXXX. Could it be that it also needs to be set...

Post Posted: March 6th, 2008, 11:37 am

When I have PHP typos on live site, people is able to see the full detailed error message with full file path on the site. How do I suppress this display? Via Webhost? Or via PHP code?
  • Sort by

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.