|
you are making this page as utf-8
make sure the files are without BOM
|
|
|
|
|
where is the BOM in this page?
http://www.rmc.bh/dept[^]
Also, one more question Johny...
I am currentlly testing the above page and it's fine then I will apply on all pages but I have noticed it's all somehow the same exvept big difference in IE.in positioning the contents when I use different browsers?
Here is the print screen of the same page on different browsers (browser name is the file name).
How can I fix it?http://www.rmc.bh/temp/dept.zip[^]
Thanks,
Jassim
|
|
|
|
|
In general there is some difference from browser to browser. the differences are mostly in Javascript and css.
But one thing you must have to notice you must have to close all the tag that has ending. as example div has start tag and closing tag, if you miss closing tag some browser will not make any trouble but some browser will fail
|
|
|
|
|
I'm doing a mini project on reading messages from forum using TTS.
I have tried searching many resources but I still couldn't find any free tts software. I'm just trying to implement in my mini project, not commercializing it or anything.
This link, http://www.phpclasses.org/package/4097-PHP-Convert-test-to-speech-using-Expressivo-service.html I thought it might work, but as soon as I used it, I got an error about the code about some unknown txt variable, although it was declared. Someone commented this is a paid service so I guess it doesn;t work now.
Can anyone help me in this matter? I'm using Dreamweaver CS5 and XAMPP's PHPMyAdmin as my database.
|
|
|
|
|
I wont answer your problem,
Just inform you that phpmyadmin is not your database.........
you are using xamp, it mean you are using MySQL as database.
|
|
|
|
|
Hi,
I am trying the URL rewriting for the first time on mysql server (Dreamhost).
I have create .htaccess file with the following:
RewriteEngine on
RewriteRule ^contact$ /contact.php [L]
RewriteRule ^team$ /team.php [L]
I suppose this will show www.mydomain.com/contact.php as www.mydomain.com/contact (without the extension) and that's what I want..
and it's working fine.. when I type www.mydomain.com/contact I am getting the page BUT.... I also get www.mydomain.com/contact.php when I type? so is there anyway NOT to show it with .php and just /contact?
hope i explained it well..
|
|
|
|
|
First of you might wanna read a bit on the Apache rewrite mod, which tells you everything you will ever need to know about rewriting URL's. But to get you started you need to look into the NC option as well as the QSA option in your rewrite rules.
|
|
|
|
|
Thanks for your reply..
This works fine But.....
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^home$ index.php [NC,QSA]
RewriteRule ^contact$ /contact.php [NC,QSA]
RewriteRule ^team$ /team.php [NC,QSA]
RewriteRule ^about$ about.php [NC,QSA]
The user can go to contact page using /contact and /contact.php
How can I force /contact only (without the .php)?
and /home only (not /index.php)?
etc..
|
|
|
|
|
Hi,
can anyone recommend a news headline component for PHP to display news, perhaps something similar to the news.google.com..
Thanks,
Jassim
|
|
|
|
|
|
Which Linux distribution is better for a windows developer to start learning Linux? and why?
|
|
|
|
|
Take a look here[^] for some information of the most popular distributions. The 'best' is the one that you feel comfortable with. If you know command line usage, application and hardware setup and C/C++, then you will probably feel comfortable with any of these.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
|
I merely made a suggestion as to somewhere to look, it is up to you to make the final decision.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Like the timeline in the wikipedia document... I hadn't seen that before...
|
|
|
|
|
I would suggest Ubuntu... it has a huge user community (that is generally VERY helpful) and it is very easy to install and to get going with. I have multiple machines running Ubuntu (11.10 and the LTS version, 10.04). Good luck!
|
|
|
|
|
I switched using OpenSUSE, and found that installing FireFox, Mono and Wine[^] helps a lot.
Bastard Programmer from Hell
|
|
|
|
|
Is there anything in particular you like about openSUSE? I've been using Ubuntu and Fedora mostly, but I'm always curious as to why people choose certain distros.
|
|
|
|
|
Albert Holguin wrote: Is there anything in particular you like about openSUSE?
Ubuntu failed to install on my machine, some missing drivers. SUSE installed without any problems and supports all my old hardware. With SUSE and Mono both coming from Novell, it seemed like a good combination.
The only other distro that I installed is Jolicloud[^], a distro with a HTML-interface that has it's cloud in the desktop. I'm not using it much, though
Bastard Programmer from Hell
|
|
|
|
|
SUSE is a more stable (long term) distro... I'm downloading the newest Fedora release (Vern) to play with. I use Ubuntu quite a bit, but Unity actually slows down graphics quite a bit (resource hog), so I might end up parting ways from Ubuntu (although I still do like it overall).
|
|
|
|
|
When you would learn linux just learn linux don't try to compare with windows. And try start with command prompt. Do not install xwindow at all ...
|
|
|
|
|
I think this is a matter of preference to a certain degree, but personally I prefer Ubuntu Desktop 11.10 because it is the most windows like of all the distributions, and makes it very simple to add and remove modules. Also the Mono Develop Software Development Application makes it easier to develop applications in Linux environment for developers without a deep knowledge of the Operating System which makes a difference for some.
Pete
Pete Soheil
DigiOz Multimedia
http://www.digioz.com
|
|
|
|
|
Well, actually, they're all moving in a more user friendly direction (except of course server versions). A lot of it has to do with the direction that GNOME is choosing to take, which is a more user friendly and visually appealing desktop environment.
|
|
|
|
|
I'm a little late to this thread I think... anyway, here goes;
I recommend using Debian Lenny as a first distribution. Debian is a very stable distro, and it's great to start with. Some people recommend using Ubuntu, which has a Debian base. Debian has all the similarities people look for in Ubuntu (apt-get, synaptic, gnome, etc.).
It is a great distro, especially for stability. The reason I think it is a good start is because it's quick to get up and running, and good to get comfortable using linux with. Eventually you will get more daring and want to do "newer" things. Debian provides the stability to get used to things, and the challenge of learning to upgrade, fetch dependancies, and compile things from source. It is a little out dated, so when you start getting more daring then you have to do system stuff to bring it up to date. These things are easy to find online because debian has been around for a while.
Id probably start with a vm, move to dual booting or a kvm switch, and then eventually go to an install. I use gentoo now, but I have tried out several distro's.
|
|
|
|
|
Hello friends,
I am learning google API I want to retrieve google contacts using Authsub. And second thing is that i want to use secure token. I have X.509 certificate with private key.
In first step I got token but in second step (To get AuthSubSessionToken) I got error : Invalid AuthSub token. Here my code. please, anybody have idea ?
Help me....
$url = "https://www.google.com/accounts/AuthSubSessionToken";
$token = $token;
$param['sigalg'] = "rsa-sha1";
$nonce = "15948".time()."49418";
$param['data'] = "GET https://www.google.com/accounts/AuthSubSessionToken ".time()." ".$nonce;
$private_key = "MY_PRIVATE_KEY";
$kvpairs = array();
foreach ($param as $k => $v) {
array_push($kvpairs, ($k . '=' . $v));
}
$query_string = '';
$query_string = implode('&', $kvpairs);
$base_string = 'GET'.'&'.$url .'&'.$query_string;
$param['sig'] = base64_encode(hash_hmac('sha1', $base_string, $private_key, true));
uksort($param, 'strcmp');
$header = 'Authorization: AuthSub token="'.$token.'" ';
foreach ($param as $k => $v)
{
$header .= $k . '="' .$v. '" ';
}
$header = trim($header," ");
$headers[]= $header;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$responce = curl_exec($ch);
curl_close($ch);
|
|
|
|