Actual Results
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP to extract query string parameters
- Subject: PHP to extract query string parameters
- Replies: 6
- Views: 1376
Posted: August 9th, 2009, 1:14 pm
I have the following in the PHP string variable (not in the $_GET):
How can get extract out the value 62?
Code: [ Select ]
$myString = "index.php?option=com_content&id=62&view=article";
How can get extract out the value 62?
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: How to list all post variables?
- Subject: How to list all post variables?
- Replies: 3
- Views: 2728
- Subject: How to list all post variables?
Posted: July 18th, 2009, 10:40 am
When a user posts a form, I can retrieve their values by ...
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...
Code: [ Select ]
$_POST['imagefilename']
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP to write longblob to file
- Subject: PHP to write longblob to file
- Replies: 2
- Views: 1225
- Subject: PHP to write longblob to file
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?
- artcoder
- Forum: Website Hosting Forum
- Topic: Disable register_globals using htaccess
- Subject: Disable register_globals using htaccess
- Replies: 4
- Views: 12504
Posted: June 28th, 2009, 10:41 am
I put ...
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?
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?
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: AJAX to list files in a directory
- Subject: AJAX to list files in a directory
- Replies: 1
- Views: 4806
- Subject: AJAX to list files in a directory
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...
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: Javascript to detect coordinate of an element
- Subject: Javascript to detect coordinate of an element
- Replies: 1
- Views: 789
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...
- artcoder
- Forum: Other Search Engines & Directories
- Topic: Is SEO Dying ?
- Subject: Is SEO Dying ?
- Replies: 44
- Views: 6426
- Subject: Is SEO Dying ?
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...
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: terminology of php operator
- Subject: terminology of php operator
- Replies: 2
- Views: 617
- Subject: terminology of php operator
Posted: November 7th, 2008, 11:24 am
If I see the following in Joomla code...
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...
Code: [ Select ]
$menu = JSite::getMenu();
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP code to return year?
- Subject: PHP code to return year?
- Replies: 2
- Views: 2654
- Subject: PHP code to return year?
Posted: November 1st, 2008, 3:33 pm
What PHP code can return "2008" (the current year)?
- artcoder
- Forum: Programming / Scripting / Coding Forum
- Topic: PHP to determine height and width of an image
- Subject: PHP to determine height and width of an image
- Replies: 1
- Views: 617
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).
My server do have access to ImageMagic (i think).
- artcoder
- Forum: Website Hosting Forum
- Topic: Sugestions on how to find a good hosting company?
- Subject: Sugestions on how to find a good hosting company?
- Replies: 18
- Views: 2599
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...
- artcoder
- Forum: Unix / Linux Forum
- Topic: IndexIgnore in htaccess
- Subject: IndexIgnore in htaccess
- Replies: 3
- Views: 3567
- Subject: IndexIgnore in htaccess
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
Thanks.
Thanks.
- artcoder
- Forum: Unix / Linux Forum
- Topic: IndexIgnore in htaccess
- Subject: IndexIgnore in htaccess
- Replies: 3
- Views: 3567
- Subject: IndexIgnore in htaccess
Posted: July 5th, 2008, 1:46 pm
- artcoder
- Forum: Competitions
- Topic: Ozzu Banner Competition #2
- Subject: Ozzu Banner Competition #2
- Replies: 126
- Views: 13312
- Subject: Ozzu Banner Competition #2
Posted: June 26th, 2008, 8:52 am
Thanks. Here is my third and final entry: "artcoder comp3" http://youdesignicode.com/projects/ozzubanner/artcoder_comp3.gif 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...
- artcoder
- Forum: Competitions
- Topic: Ozzu Banner Competition #2
- Subject: Ozzu Banner Competition #2
- Replies: 126
- Views: 13312
- Subject: Ozzu Banner Competition #2
Posted: June 24th, 2008, 4:11 pm
Here is my second submission called "artcoder comp2" ... http://www.youdesignicode.com/projects/ozzubanner/artcoder_comp2.gif Full image here . Stock image references: Girl: DreamsTime.com #2646246 Background: DreamsTime.com #4764405 Banner is an animated GIF with a subtle ...
