Search found 236 matches
- Fri Jun 22, 2012 12:10 pm
- Forum: Server installation and configuration
- Topic: Server directories configuration
- Replies: 1
- Views: 2069
Re: Server directories configuration
You have to change DocumentRoot in you apache settings
- Fri Jun 22, 2012 11:42 am
- Forum: JavaScript
- Topic: Populating selectboxes with jQuery / Ajax problem in IE
- Replies: 2
- Views: 1618
Re: Populating selectboxes with jQuery / Ajax problem in IE
Don't use escape() and unescape() since your messing up your html. Chrome and Firefox are so generous to fix it up for you, but IE just doesn't care.
Also I would get rid of setTimeout function.
See attachment for screenshot of HTML in IE. You should notice that there are lots of unwanted slashes
Also I would get rid of setTimeout function.
See attachment for screenshot of HTML in IE. You should notice that there are lots of unwanted slashes
- Wed Jun 20, 2012 12:19 pm
- Forum: PHP coding => General
- Topic: File upload in chrome
- Replies: 1
- Views: 519
Re: File upload in chrome
If you want anyone to help you, be more specific about what doesn't work and post your code
- Sat May 19, 2012 1:41 pm
- Forum: Server installation and configuration
- Topic: seo and htaccess question
- Replies: 2
- Views: 1716
Re: seo and htaccess question
That will be probably htaccess fault. If you're storing your robots.txt on www.domain.com, then when trying to access file you would get redirected to www.domain.com/en/robots.txt If you're using htaccess to redirect to en folder, you would only need to move copy robots.txt. If you're rewriting URL,...
- Sat May 19, 2012 12:56 pm
- Forum: mySQL & php coding
- Topic: mySQL PHP Problem viewing data
- Replies: 0
- Views: 616
Re: mySQL PHP Problem viewing data
Only difference is that '<uhs' part is missing after you retrieve string from database.
Are you sure you are showing us correct texts, cause for me they both look like gibberish.
Are you sure you are showing us correct texts, cause for me they both look like gibberish.
- Sat May 19, 2012 3:32 am
- Forum: PHP coding => General
- Topic: Getting Some PHP Message Insted Of My Website On My Domain
- Replies: 13
- Views: 1252
Re: Getting Some PHP Message Insted Of My Website On My Doma
Woah.. this problem was worth to ignore 
nice one, macek

nice one, macek

- Sat May 19, 2012 3:23 am
- Forum: PHP coding => General
- Topic: Site returning a different page when accessed by php
- Replies: 1
- Views: 605
Re: Site returning a different page when accessed by php
You might need to set user-agent, that way you you would 'fake' a browser
Code: Select all
<?php
$url = "http://muoversiaroma.it/paline/percorso/52732?nav=3";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_USERAGENT, "Let me pass you idiot");
$content = curl_exec($curl);
echo $content;
?>
- Sat May 19, 2012 2:46 am
- Forum: PHP coding => General
- Topic: Delay redirection in php
- Replies: 4
- Views: 813
Re: Delay redirection in php
Its not possible in PHP
- Sat May 19, 2012 1:40 am
- Forum: PHP coding => General
- Topic: Find and Replace with Preg?
- Replies: 0
- Views: 411
Re: Find and Replace with Preg?
If you have HTML string or string of URLs, you can use preg_replace, even thought simple str_replace() would be much easier. 1. You would be writing not unicode, but Regular Expression ( regex for short). Follow previous link for tutorial, take your time to practicing it =D 2. Group subpaterns and u...
- Fri May 18, 2012 2:27 pm
- Forum: JavaScript
- Topic: Check if javascript works
- Replies: 2
- Views: 1195
Re: Check if javascript works
You could use HTML <noscript> Tag to notify user to enable JavaScript. If JavaScript is not supported, only option (I think) would be to redirect user to page without JavaScript like: <noscript> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.some.org/form_without_JS.html"> </noscript> As for A...
- Fri May 11, 2012 1:24 pm
- Forum: PHP coding => General
- Topic: Radio Button Array
- Replies: 19
- Views: 1897
Re: Radio Button Array
1st. Array indexes are case sensitive. So it should be:
$_POST['Venue_ID' . $iLine];
$_POST['Venue_ID' . $iLine];
- Fri May 11, 2012 8:29 am
- Forum: PHP Scripts
- Topic: How to convert 2-demensional array in 1-demednsional array?
- Replies: 6
- Views: 1534
Re: How to convert 2-demensional array in 1-demednsional arr
Loop through first dimension elements. If element is not array - add it to result array, if it's array - do loop through this array and add all its content to result array loop through first dimension { if first dimension element is array { loop through this array { save elements to result array } }...
- Fri May 11, 2012 8:12 am
- Forum: PHP General
- Topic: PHP editor for separate code.
- Replies: 11
- Views: 1399
Re: PHP editor for separate code.
Just forget about such a stupid dream. Closest what you could get is 'phpDesigner' which isn't free software. And it's more like editor powered with intel sense (auto-completion) support for (x)html, php, js, mysql etc. Also it has template support, so you can include html with a single click, but f...
- Fri May 11, 2012 7:58 am
- Forum: phpMyAdmin
- Topic: The phpMyAdmin configuration storage is not completely confi
- Replies: 1
- Views: 3400
Re: The phpMyAdmin configuration storage is not completely c
You know, I'm not ESP.
You should know where you installed your mySQL server.
If you installed WAMP/LAMP separately, search for a place where you installed mySQL.
If you installed packages like EasyPHP, WampServer, etc. Mysql folder should be in package installation folder.
You should know where you installed your mySQL server.
If you installed WAMP/LAMP separately, search for a place where you installed mySQL.
If you installed packages like EasyPHP, WampServer, etc. Mysql folder should be in package installation folder.
- Thu May 10, 2012 12:14 pm
- Forum: phpMyAdmin
- Topic: The phpMyAdmin configuration storage is not completely confi
- Replies: 1
- Views: 3400
Re: The phpMyAdmin configuration storage is not completely c
Do you have 'phpmyadmin' database and tables * inside it on your mysql server? If you're on localhost, to sure you should check it via file system, database files are stored on mysql\data folder. Do you really need those features so much? If you just don't want so see that error, you could just comm...
- Thu May 10, 2012 11:08 am
- Forum: PHP coding => General
- Topic: pagination
- Replies: 0
- Views: 487
Re: pagination
You never take value of current page (parameter which is passed via GET method in page URL) Instead of that you do "something" $page = mysql_real_escape_string($_GET['query']); which should be $page = $_GET['page']; Then you would need to change $start = ($query - 1) * $limit; to $start = ($page-...
- Mon May 07, 2012 2:51 pm
- Forum: PHP coding => General
- Topic: Option value to display field 2
- Replies: 8
- Views: 987
Re: Option value to display field 2

No you don't.Helikaon wrote:Yes I know that
"you have to use different language."
So that wasn't helpful? Even after Nullsig gave you JavaScript exampled and you, in response, requested for PHP solution.
Thank goddess Nullsig made short story long.
- Mon May 07, 2012 2:13 pm
- Forum: PHP coding => General
- Topic: boolean and comparison operators in switch
- Replies: 3
- Views: 784
Re: boolean and comparison operators in switch
It works, but you loose speed and have exceptions using switch like that. Since you write conditions inside of case, you should use boolean values in switch expression. For example try setting $a = ""; switch will look for case which returns false . In your case that would be first case :? Also, you...
- Mon May 07, 2012 12:38 pm
- Forum: PHP coding => General
- Topic: Radio Button Array
- Replies: 19
- Views: 1897
Re: Radio Button Array
Radio buttons are grouped by same name. If two radio buttons have same name - only one of them can be selected.
So it's normal that you have such data sent via POST.
So it's normal that you have such data sent via POST.
- Mon May 07, 2012 12:21 pm
- Forum: mySQL & php coding
- Topic: MySQL select statement not working
- Replies: 4
- Views: 1520
Re: MySQL select statement not working
Code seems to be fine.
If you have PhpMyAdmin or anything similar, could you make screen-shots of table structures?
If you have PhpMyAdmin or anything similar, could you make screen-shots of table structures?
- Sat May 05, 2012 5:36 am
- Forum: PHP coding => General
- Topic: Option value to display field 2
- Replies: 8
- Views: 987
Re: Option value to display field 2
You seem to miss the point about what PHP is.
From PHP code a HTML is generated and is passed to browser.
When HTML is sent to browser - PHPs work is done.
If you want to handle events on browser, you have to use different language.
DOM events
From PHP code a HTML is generated and is passed to browser.
When HTML is sent to browser - PHPs work is done.
If you want to handle events on browser, you have to use different language.
DOM events
- Wed May 02, 2012 12:24 pm
- Forum: PHP coding => General
- Topic: Best editor for PHP
- Replies: 209
- Views: 173665
Re: Best editor for PHP
I had to change to Linux. There are many editors which I tried out, but non of them I had everything what is important to me. Except for 'Netbeans' which I still don't like, because of crappy laptop. So right now I'm using 'Geany'. It loads fast, has a folding, line marking, compiling features. Fold...
- Tue May 01, 2012 2:55 pm
- Forum: PHP coding => General
- Topic: php help
- Replies: 8
- Views: 1474
Re: php help
I think it should look like this if(empty($fn) && empty($ln) && empty($address) && empty($city) && empty($state) && empty($zip) && empty($phone) && empty($email)) { /*show the form*/ $message = 'Fill in areas in red!'; $aClass = 'errorClass'; } else { /*this is where the creating of the csv take...
- Tue May 01, 2012 12:52 pm
- Forum: Free time
- Topic: New Free FPS - Tribes
- Replies: 5
- Views: 3306
Re: New Free FPS - Tribes
5GB =D not worth freeing space just to check it out.
I hardly have 3GB free space
And there's no way I'm deleting my only game - Call of Duty 4: MW
I hardly have 3GB free space

- Tue May 01, 2012 12:47 pm
- Forum: PHP coding => General
- Topic: php help
- Replies: 8
- Views: 1474
Re: php help
if(empty($fn) empty($ln) ...
to
if(empty($fn) && empty($ln) ...
to
if(empty($fn) && empty($ln) ...