Search found 236 matches

by minimihi
Fri Jun 22, 2012 12:10 pm
Forum: Server installation and configuration
Topic: Server directories configuration
Replies: 1
Views: 1790

Re: Server directories configuration

You have to change DocumentRoot in you apache settings
by minimihi
Fri Jun 22, 2012 11:42 am
Forum: JavaScript
Topic: Populating selectboxes with jQuery / Ajax problem in IE
Replies: 2
Views: 1246

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
by minimihi
Wed Jun 20, 2012 12:19 pm
Forum: PHP coding => General
Topic: File upload in chrome
Replies: 1
Views: 341

Re: File upload in chrome

If you want anyone to help you, be more specific about what doesn't work and post your code
by minimihi
Sat May 19, 2012 1:41 pm
Forum: Server installation and configuration
Topic: seo and htaccess question
Replies: 2
Views: 1461

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,...
by minimihi
Sat May 19, 2012 12:56 pm
Forum: mySQL & php coding
Topic: mySQL PHP Problem viewing data
Replies: 0
Views: 445

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.
by minimihi
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: 955

Re: Getting Some PHP Message Insted Of My Website On My Doma

Woah.. this problem was worth to ignore :offtopic:
nice one, macek :oops:
by minimihi
Sat May 19, 2012 3:23 am
Forum: PHP coding => General
Topic: Site returning a different page when accessed by php
Replies: 1
Views: 443

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;
?>
by minimihi
Sat May 19, 2012 2:46 am
Forum: PHP coding => General
Topic: Delay redirection in php
Replies: 4
Views: 673

Re: Delay redirection in php

Its not possible in PHP
by minimihi
Sat May 19, 2012 1:40 am
Forum: PHP coding => General
Topic: Find and Replace with Preg?
Replies: 0
Views: 239

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...
by minimihi
Fri May 18, 2012 2:27 pm
Forum: JavaScript
Topic: Check if javascript works
Replies: 2
Views: 1039

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...
by minimihi
Fri May 11, 2012 1:24 pm
Forum: PHP coding => General
Topic: Radio Button Array
Replies: 19
Views: 1637

Re: Radio Button Array

1st. Array indexes are case sensitive. So it should be:
$_POST['Venue_ID' . $iLine];
by minimihi
Fri May 11, 2012 8:29 am
Forum: PHP Scripts
Topic: How to convert 2-demensional array in 1-demednsional array?
Replies: 6
Views: 1265

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 } }...
by minimihi
Fri May 11, 2012 8:12 am
Forum: PHP General
Topic: PHP editor for separate code.
Replies: 11
Views: 1106

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...
by minimihi
Fri May 11, 2012 7:58 am
Forum: phpMyAdmin
Topic: The phpMyAdmin configuration storage is not completely confi
Replies: 1
Views: 3058

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.
by minimihi
Thu May 10, 2012 12:14 pm
Forum: phpMyAdmin
Topic: The phpMyAdmin configuration storage is not completely confi
Replies: 1
Views: 3058

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...
by minimihi
Thu May 10, 2012 11:08 am
Forum: PHP coding => General
Topic: pagination
Replies: 0
Views: 327

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-...
by minimihi
Mon May 07, 2012 2:51 pm
Forum: PHP coding => General
Topic: Option value to display field 2
Replies: 8
Views: 724

Re: Option value to display field 2

:offtopic:
Helikaon wrote:Yes I know that
No you don't.

"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.
by minimihi
Mon May 07, 2012 2:13 pm
Forum: PHP coding => General
Topic: boolean and comparison operators in switch
Replies: 3
Views: 626

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...
by minimihi
Mon May 07, 2012 12:38 pm
Forum: PHP coding => General
Topic: Radio Button Array
Replies: 19
Views: 1637

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.
by minimihi
Mon May 07, 2012 12:21 pm
Forum: mySQL & php coding
Topic: MySQL select statement not working
Replies: 4
Views: 1268

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?
by minimihi
Sat May 05, 2012 5:36 am
Forum: PHP coding => General
Topic: Option value to display field 2
Replies: 8
Views: 724

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
by minimihi
Wed May 02, 2012 12:24 pm
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 203
Views: 166350

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...
by minimihi
Tue May 01, 2012 2:55 pm
Forum: PHP coding => General
Topic: php help
Replies: 8
Views: 1077

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...
by minimihi
Tue May 01, 2012 12:52 pm
Forum: Free time
Topic: New Free FPS - Tribes
Replies: 5
Views: 2912

Re: New Free FPS - Tribes

5GB =D not worth freeing space just to check it out.
I hardly have 3GB free space :D And there's no way I'm deleting my only game - Call of Duty 4: MW
by minimihi
Tue May 01, 2012 12:47 pm
Forum: PHP coding => General
Topic: php help
Replies: 8
Views: 1077

Re: php help

if(empty($fn) empty($ln) ...
to
if(empty($fn) && empty($ln) ...