Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

551.

Solve : How Can I Customize Theme Using Vista?

Answer»
 Hello, HOPE anyone can help me in my problem I’m just new in wordpress. I got an account in the vista, a free hosting site. Then I encounter problem in customize my theme using semiologic reloaded theme even the other built in theme in wordpress cannot apply. Is there ANYTHING I will SET up first? Take note its vista. Thanks ill wait for the reply.
 I'd recommend posting on the WP forum for SPECIALISED support.

http://wordpress.org/support/  He's talking about a wordpress blog, not customizing a windows theme.Yeah, he's already been warned about his inisghtful posts.Wordpress is a great solution for web design and easy to work with - unfortunately without specific info regarding any error message etc I can't provide step-by-step help but here are a few suggestions:

1) contact the hosting support to see if they can help

2) try ANOTHER theme to see if the problem is theme specific

3) there are many free wordpress tutorials out there - you might want to get up to speed

A couple of other thoughts - remember you get what you pay for - you may have to upgrade to a pay account to be able to make certain things work

One word of warning - when I accessed the site my Norton 360 informed me that the site was not safe - you might want to try another hosting company. Quote from: totalmartialarts on November 08, 2010, 05:35:21 AM
... I’m just new in wordpress. I got an account in the vista, a free hosting site..
I  have not used WordPress but the statement above does not make sense.  Exactly what is the web address for your hosting site?

Quote from: dfmillington on November 28, 2010, 05:58:03 AM
One word of warning - when I accessed the site my Norton 360 informed me that the site was not safe - you might want to try another hosting company.
What site?
552.

Solve : Web Page Size?

Answer»

I'm having trouble with a web site I'm designing. I'm nearly done but my pages dont always look good in 100% zoom on web browsers haft the information is getting cut off. What is the best way to make my page good ENOUGH in most web browsers to see all the information. did you try to put everything inside a table?






put your information here




I do it all the time i design on a square monitor 800*600 than after i am done with the design, if i open it on a larger setting or a wide screen monitor the function "width =100%" places everything in  that screen without losses


If you want your information centered in the middle than you can add those comands like follows:












it keeps it all at the top middle of a screen no matter how wide or small the settings are as long as they dont go smaller than 800*600 but i dont think anyone would.



I would not recommend using tables to format design. It is against  the separation of styles and content. CSS is more than capable of handling this problem. If you html code is correctly structured you shouldn't have any problems.
Can you post some code to show what you are doing?The relatively new flat screen monitors are generally wider and I've FOUND that using 100% width will stretch the page a great deal. I've found that a width of 900-1000px WORKS well on all monitors.Using tables is the correct idea, but will slow down the users experience with the website (as it has to fully load before displaying).

Try using divs and css instead if possible with a liquid center (so it adjusts to screen resolution as best as possible without too much white space). The issue with this is getting them to float correctly in place with DIFFERENT resolutions (not wrapping) and making sure it's still cross-browser COMPATIBLE (IE support, Firefox, etc). Table are so much easier in this case, as Firefox and IE sometimes treat HTML differently, however divs are faster and more SEO friendly (specially when reordering main content).

As freedom said, 800x600 to 1024x7678 would be the best resolutions to focus on.

Depending on what your trying to layout you could try something like: http://matthewjamestaylor.com/blog/perfect-3-column.htmI mainly just design my site with a width of 1000px. I found its one less thing to think about and check as to when using a %. Also 100px seems to fit well in most monitors.
553.

Solve : Calling process on website.?

Answer» HI everybody,

I recently discovered that when you TRY to JOIN a 'server' on ROBLOX (www.roblox.com) it loads the "Roblox.exe" process onto your computer.
I am making a Java game but also NEED a process to be ran. Anyone have clues on how to do this?

Thanks in advance,
BAILEY McAfee
554.

Solve : Using javascript in an iframe.?

Answer»

Hi all,
I have an IFRAME and need to run javascript inside of it.
My current CODE is:
Code: [SELECT] var frame = document.getElementById('stsltlwamgor6frmae');
frame.src = "javascript:document.getElementById('ctl00_cphRoblox_lRobloxLogin_UserName').value='"+usern+"';VOID(0);";
frame.src = "javascript:document.getElementById('ctl00_cphRoblox_lRobloxLogin_Password').value='"+passw+"';void(0);";
All that happens is the PAGE the iframe is on spins (in IE)

Thanks.

555.

Solve : URL Redirect?

Answer»

Hi all, how do I make my home page REDIRECT to my blog page? My blog page is a SUBDIRECTORY of the index page. Any help WOULD be greatly APPRECIATED. Thanks!It is a meta tag. It is the refresh meta.
Read this:
http://www.netmechanic.com/news/vol4/promo_no15.htm

Note there is a possible issue for search engines.If your webhost is using apache which supports htaccess, use this method.

Create a FILE in the public_html/www folder on your site called .htaccess and add this text to it:
Code: [Select]Options +FollowSymLinks
RewriteEngine On

RewriteRule ^(.*)$ /change_subdirectory_here/$1 [NC]

556.

Solve : browser issues?

Answer» HELLO,

Need help I have created a page and align it to center using css. my problem is it wont align to center in browser mozilla firefox but it centered with internet EXPLORER. any ideas would GREATLY help..

my code for firefox is body {text-align: center}


ThanksWould need your full code, the example you gave above is only probably part of your CSS code.

If you're PUTTING your contents of your page in a div tag TRY doing align="center" in the div as shown below.


Your text here


You could also used Your text here
557.

Solve : links and text help?

Answer»

I would like to put some photos on my page say in the middle top to bottum and center them. And I camn do this and it works great and looks good.

Then I would like to have all my links on the Left hand side of the page top to bottum.

Now all my links I can get to go to the Left hand side but the all start under were the last photo ends that is in the middle of the page. I get this this is how the page works but Default.

But I see things on the net about how you can have your links all go to the left hand side of the page and still start at the top  even if there is things in the Middle center of the page.  You use the DiV Align tags.

I read and read on the net and I get myself more and more mixed up.

So I will sow you what I do now.

If I have a photo and I want it to go to the center of the page but place it at the top of the page I do this.      NAME of photo

And it works now if I want my links to go to the left of the page but start at the top also  they say you can use Div  also.  but how???You really need help with css! You need to make a CONTAINER that will contain those things together, have a look at the following site for more help:

http://www.w3schools.com/css/default.asp

I suggest you look through all the examples and by the end you will probably be able to do what you want.nymph4, I'm asking a genuine question here, but do you have learning difficulties?

I'm asking because I have linked you to the w3schools site time and time again. You need to start from the beginning at the link above in the last post. Forget everything you have learned up to now.

The only way to learn CSS properly is to try the examples in the TryIt sections of the tutorials and customise them yourself to see what you can do with the code. You also need to stop asking "what happens if..." - try it yourself and see what happens. It's how you learn.

The final thing you need to do is stop trying to do it all at once. This thread is an example. You basically want a complete page template designed for you. You need to start with the basics, as mentioned, and work from there.I do go thee but the site does not work for me.

Quote from: boating on November 02, 2010, 09:56:47 AM

You really need help with css! You need to make a container that will contain those things together, have a look at the following site for more help:

http://www.w3schools.com/css/default.asp

I suggest you look through all the examples and by the end you will probably be able to do what you want.

This is what I am looking for.. Thanks! Quote from: nymph4 on November 02, 2010, 06:04:09 PM
I do go thee but the site does not work for me.
Why?there are few ways to do it.

1.) use a table to divide your links on the left hand side and the image on the right hand side
2.) use CSS FLOAT option where the images can be hung on the other side of a web page.Your concern is almost a MONTH to date, may i know if you have already solve your problem with the six colleagues who have shared opinion what you should do to your picture links? Quote from: boating on November 02, 2010, 09:56:47 AM
You really need help with css! You need to make a container that will contain those things together, have a look at the following site for more help:

http://www.w3schools.com/css/default.asp

I suggest you look through all the examples and by the end you will probably be able to do what you want.

Absolutely brilliant.  Thank you.  Not sure why it wasn't working for others but it was exactly what I was looking for.  Cheers
558.

Solve : How to align (position) a picture as a background in HTML?

Answer» HELLO,

I created a little website with three frames (columns). The FAR LEFT and the far right are "extensions" to the middle one, this is why they must be positioned properly. In both outer frames I am using a .jpg as the background and nothing else. The PROBLEM is that I cannot align the .jpg background to the right edge of the frame (there is white gap between left and middle frame. Is there an easy way to do it?

Here is the SCRIPT for the left  frame:


BACKGROUND="Untitled1.jpg" style="background-repeat: repeat-y;" >



Any help will be much appreciated.

Best regards!In the meantime I managed to do it, however with CSS:



559.

Solve : Dreamweaver newbie needing some help?

Answer»

Hello my name is Chris and im trying to build myself a website with adobe dreamweaver cs4. So far i have managed to nail down a lot of the basics at least i think lol. I keep hitting road blocks that are slowing me down big time. Im looking for a person who knows their way around dreamweaver and would be willing to allow me to talk with them preferablly through a instant messenger.. I use yahoo so my Id is be_direct2002 i could really use some help and i promise not to bug ya to much.. my email is croweboy1980[at]gmail[dot]com if you would like to send me an email first or what ever.. thank you so much for your help and have a great day one problem im haveing is that i cant seem to get a slide show to work,,, it looks fine in dreamweaver but when i try to upload it to my host and look at it online it either has x's where the images would be or does nothing at all i dont know what to do Hi! please check your disk bytes capacity to your hosting company maybe you overloaded the disk, second check carefully where you uploaded your files sometimes we intentionally put it to ftp folder or public_html folder that may cause your bytes overloaded.

Please check too if your dreamweaver is a license software or you just use their trial period of 30 days, beyond that dreamweaver will recognize your MACHINE using their acrobat 9 software.im not exactly sure what you mean by overloading the disk if you could elaborate i would be willing to go find out what limitations they may be placeing on me (?) Did you able to check your hosting company how much of disk capacity you availed. Ask your hosting company for you to know. In case your disk space is sufficient enough to upload your files to root folder check your browsing width pixels. If you have SIDEBAR either left or right include it to your pixel computation in your container. In case still nothing happened clear your FLOATING both left and right. That time your container will clear that space. Chris, try to check also your source of documents sometimes your local files is not matching to your source in dreamweaver the source must be the same. Check that Cris, you will notice your source document during inserting image you will saw different files their either relative to site folder or relative to site documents.One thing you should be AWARE of - posting your email address on a public forum (as you have by using it as your user name) will eventually lead to a significant increase in spam in your inbox. There are 'bots' that do nothing but scour the web for email addresses, which are then sold to spammers. Quote from: [email protected] on November 06, 2010, 09:03:24 PM

one problem im haveing is that i cant seem to get a slide show to work,,, it looks fine in dreamweaver but when i try to upload it to my host and look at it online it either has x's where the images would be or does nothing at all i dont know what to do


Try to use a flash player when creating a slideshow. Its easy to use and embed on your WEBPAGE.
560.

Solve : Switching from Frontpage 2003?

Answer»

I have been using FP 2003 for my web site, and now am encountering all kinds of problems that can't be fixed.  Is there a program that I can switch to which will download my current files without me having to redesign all my web site pages?  I have a desktop HP with Windows 7 operating system, and use Ipower as my server.  Will Expressions Web work?  thanks.I'd imagine ExpressionsWeb would work as it is another product from MS, but I'd recommend contacting them before purchasing.I would switch to Dreamweaver... it shouldn't be all that bad in making the necessary fixes to get your page right... I've used FP, EW and Dreamweaver... Prefer Dreamweaver!! Like BenFranklin SAID, Adobe Dreamweaver is the the best. Here is a comparison of POPULAR if HTML editors:
http://en.wikipedia.org/wiki/Comparison_of_HTML_editorsIt may be the best, but it's not always that EASY to get (i.e. pay for) for some peopleThe best HTML editor is a text editor.

Dreamweaver provides a HTML editor but most people recommend it not for it's HTML editing but for it's HTML designing; that is, the WYSIWYG HTML designer it uses."Expression Web 4" is the newest version but a sister product would be "Microsoft Office SharePoint Designer 2007" the download is FREE and the link is
http://www.microsoft.com/downloads/en/details.aspx?FamilyId=BAA3AD86-BFC1-4BD4-9812-D9E710D44F42&displaylang=en

Do not do 2010 unless you have the whole sharepoint package on a server or else it will not function.

561.

Solve : how to make with captcha?

Answer» HELLO I have been looking through google and cant find it anywhere.

Does ANYONE KNOW how to make a captcha form
http://www.google.com/recaptchaok i'll try that thanksI cant get onto that website i need one for FLASH
562.

Solve : login window?

Answer»

hi how can i make a login window for a single user so when they LOG in they can change some variables withing the JavaScript?LOGGING in with javascript isn't very secure. The normal WAY to do it would be with PHP and a simple database.first you known
 serve side script then make login PAGE
and JavaScript only for client side scripting not for login controlsso how would i do it then?This could help
http://www.phpeasystep.com/phptu/6.html

563.

Solve : Creating a brief, text pop up information box?

Answer»
HI,

The code below is on various buttons that when clicked send the USER to the relevant page. It is on a primary school's web SITE. Is there any way a small coloured information TEXT box can be POPPED up when the mouse is moved over the relevant image? I don't program but they have turned to me for help   Any assistance will be very gratefully received.

John


Code: [Select]<!-- Information image code -->
<a href="http://www.school-portal.co.uk/GroupHomepage.asp?GroupID=971774"><img border=0 src="http://www.school-portal.co.uk/platforms/959805/971774/Images/NavbarImage.jpg" /></a><br />

<!-- Staff image code -->
<a href="http://www.school-portal.co.uk/GroupHomepage.asp?GroupID=971778"><img border=0 src="http://www.school-portal.co.uk/platforms/959805/971778/Images/NavbarImage.jpg" /></a><br />

<!-- e Safety image code -->
<a href="http://www.school-portal.co.uk/GroupHomepage.asp?GroupID=971783"><img border=0 src="http://www.school-portal.co.uk/platforms/959805/971783/Images/NavbarImage.jpg" /></a><br />
564.

Solve : Choosing Template??

Answer»

Hi All . . .
RECENTLY i have LAUNCHED my website.
I want to KNOW how to APPLY a template to site in pure HTML?How do you mean "apply" a template?

566.

Solve : help with flash form?

Answer»

Hello, I have a FLASH form for my WEBSITE. But I when i do the test i CANT put numbers in the box or the sign. ANYONE know why

567.

Solve : Regular Expresion for match cyrillic character?

Answer»

Hi,

Can anyone HELP with a php regular EXPRESION for match any cyrillic character form a string?


Thank's CODE: [SELECT]<?php

$match = preg_match("\p{IsCyrillic}", $string);

?>

568.

Solve : Webdesign to web publish?

Answer»

I have created website but I do not know how to publish it steps
Have you GOT a domain name and HOSTING?I use MediaTemple for my WEBSITES and it is OK. It is useful to look for a virtual cloud server if you think to grow FAST.

569.

Solve : Submitting on ENTER and hiding passwords in source code?

Answer»

I know this isn't the most secure login script, but I'd like to add one more step of security. Is there any way I can link the first part of the code to a public file instead of including the whole thing? Right now PEOPLE can just look at the source code to see my list of clients. The info isn't top secret, but I'd like one more layer of protection if possible.

Also, I want to know how to be able to submit the form with the press of the ENTER button. keycode13 is involved, but I have no clue of where to place it.

Any HELP with either of these would be great. The code is below. Thank you.


Code: [Select]<SCRIPT LANGUAGE='JavaScript'>

<!-- Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();



if (username=="user1" && password=="password1") { window.location="URL1"; done=1; }

if (username=="user2" && password=="password2") { window.location="URL2"; done=1; }

if (username=="user3" && password=="password3") { window.location="URL3"; done=1; }

if (username=="user4" && password=="password4") { window.location="URL4"; done=1; }


if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>

<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><TD colspan=2><center><font size="+2"><b>Client Login</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=password name=password></td></tr>
<tr><td colspan=2 align=center><input type=button value="click here to view your credit account" onClick="Login()"></td></tr>
</table>
</form>

Javascript alone cannot hide usernames and passwords. Have you considered/tried using PHP? QUOTE from: kpac on August 19, 2010, 12:32:35 PM

Javascript alone cannot hide usernames and passwords. Have you considered/tried using PHP?


How would I implement that? Is that just saving the file as a text, then uploading it onto the internet with a public link?No, saving it as text means it's open for anyone to view, just like JS. See here: http://w3schools.com/php/php_post.asp Quote from: kpac on August 19, 2010, 03:23:30 PM
No, saving it as text means it's open for anyone to view, just like JS. See here: http://w3schools.com/php/php_post.asp


Thanks for the link. Looks pretty tough, but I'll give it a go. Do you have any info on how to make my form above recognize the PRESSING of ENTER? (keycode13???)Specifying an "action=" attribute should to the trick.
570.

Solve : Reload Page?

Answer» HI:
I'm TRYING to put this code on my website ... in explorer 8 work,  but in  Mozilla FIREFOX, not, why?





Thank You Code: [Select]&LT;form>
  <input type="button" VALUE="Reload Page" onclick="window.location.reload()" />
</form>
Thank You very much....
571.

Solve : cycle images?

Answer»

Hi All,
I am looking for a way to cycle though a few images with each PAGE load. In other words when you load a page you SEE one image but the next time you load the page you see ANOTHER image

I was looking for a javascript to handle this. Is there another way to do this?

Thanks
Did you find JavaScript to do this?  Here's one reference on using JavaScript: http://mtsu32.mtsu.edu:11075/JavaScript/JavaScript_Image_Cycle.htm.  I don't know of a way to do it without JavaScript.  It certainly can't be done with just HTML, so I believe JavaScript is your only option. Server-Side script is a MUCH more versatile solution if it's possible.

572.

Solve : Add a game?

Answer»

I want to add a game to my site. One that can keep scores of members that play and a game that allows me CONTROL over resetting the high scores. Unfortunately I don't know how to do this. Flash games are fine. Any help WOULD be appreciated.

ps: I don't have the SKILLS to create a game.

Thanks.This is not something EASILY accomplished. This idea would require a server-side programming language and database. If you're THINKING about flash, then ActionScript would be needed also.

573.

Solve : Inserting foto in html document??

Answer»

I am designing a WEBSITE using html. My website is not yet on line!
How do I insert a foto STORED at my desktop in my html document?

P. s. I have an Apple Macintosh computer!

EduardYou need to copy the image into (e.g.) the same folder as the HTML file.

Then link to it LIKE this:
CODE: [Select]<IMG src="image.jpg" height="565" width="530" />

etc...
Additional information can be found here -

http://www.w3schools.com/

574.

Solve : Hosting?

Answer»

Hi All,
I am looking for a site to host a domain for me. It will be very low traffic and I don't need much to make it work for me.

Anyone suggest a hosting company?

Thanks
Do you want/have your own domain name or does it matter?I would need them to register the domain name but I would own it.

Right now I don't have a domain name.

try
http://www.123-reg.co.uk/
thats were got my domain name im lucky because my boyfriend hosts my website for me on his own server but  123 reg can host it for you for cheapThanks but I am in the USA. Do you know of anything that is in dollars?

Thanks
GoDaddy.com is probably one of the BEST value and well-known hosters and registrars.Thanks....I will check them out.

Personally I'd check around over at WebHostingTalk.com - they're the biggest independent hosting forums.

I wouldn't recommend GoDaddy.com though - they seem okay for domains, but their hosting tends to be over-priced and OVERLOADED (I once seen one of their shared hosting servers with 1,500 websites on it; it wasn't a high powered server either and the server loads averaged at over 20  )

What's your budget, by the way?

Just throwing some hosts out there who I've either used or know to have a good reputation: ASmallOrange.com, HostGator, HawkHost, MDDHostingBudget is as low as I can get with ok service. I am ok with spending about 10.00 per month. Or is this to low?

I will check out the sites you suggested...

Thanks
Just checked out ASmallOrange.com  Looks like thats what I am looking for!

Thanks
there's plenty of hosts in the US, plenty of good ones so you shouldn't have problems finding good home for your site. Just be careful to research options before you choose.
Some of my favorite places to check for good hosts are:
http://webhostinggeeks.com/
http://www.thetop10bestwebhosting.com/
http://webmasterformat.com/find-a-host/poll-who-is-the-best-host
http://www.webhostingtalk.com/

I agree with TristanPerry, Godaddy is excellent domain REGISTRAR, but I othen herad that their servers are overcorwded so not so good choice for hosting.
I would recommend godaddy.com for domain registration but not for hosting.  These two functions need not be done with the same provider.  Godaddy.com started strictly as a domain name registrar and later EXPANDED their services to include web hosting.  I'm quite sure they are the largest domain name registrar.I register all my domains at Go Daddy.  And I do all my hosting at HostGator.  They are very affordable and their customer service is excellent, at least that has been my experience.Although still a beginner to the Internet I have buildt a number of sites to the point where I have found it most cost effective to have a resellers account and then rent out sites to my friends a VERY competitive prive and in this way I get all of my websites and as namy new ones that I build for free and also make a small PROFIT into the bargin.Yes, thanks for the replies. This has been solved.

575.

Solve : Codeing to make a website fade slide show?

Answer»

Hello

i have been looking for the past week for a good and free WEBSITE slide show it need to be  something like JAVA as i don't have flash (cant afford it yet).
Anyone ABLE to helpHi,

You can try kizoa.com. Its free and does a good job.Have you looked into a slide code CALLED Nivo Slide? I have used it in the past and it has various effects and works really well.

576.

Solve : CSS Class not implementing?

Answer»

I am fairly new at using CSS and am having trouble with getting a class to work.  In a table I have text areas and picture areas so I created two classes, td.text and td.pic.  My problem is coming in getting them to work.  My td. pic class is:

Code: [Select]td.pic {text-align:center;vertical-align:center;padding:10px;height:380px;}
Everything is going smoothly except the cells aren't showing the correct height.  Basically, the point of using this class is to separate the PICTURES vertically without using padding (I don't want extra space on the left and right).  In the table I have:

Code: [Select]<td class="pic"><p><img src="pillow1.jpg" width=360 height=270 border=0></p></td>
The problem is that the CELL is not giving me the extra 50 pixels I am looking for.  I am using notepad to edit the css file and Amaya to edit the pages themselves.  Any ideas?  When you set padding to something, you need to take that value from the height and width...have you done that? For EXAMPLE, you have the padding to 10px and the height to 380px - this gives a total height of 400px.

I think the problem is possibly with the

inside the table. Try removing that or creating a new CSS rule for it.
Code: [Select]td.pic p {
  margin: 0;
  padding: 0;
}
I did consider the padding in it.  I wanted 10px on the sides and the top and bottom at 65px.  How do I then have the picture and any text inside the cell if I remove the

.  I was under the impression that I need a

tag before an tag.  Also, if I use the code

Code: [Select]<td style="text-align:center;vertical-align:center;padding:10px;height:380px;">
everything works fine. Quote

I was under the impression that I need a <p> tag before an <img> tag.
NOPE, it just adds extra space around it. If you had, for example, 2 rows of images with 3 images in each row, then you might put the two rows in paragraphs so the pics won't be on top of each other.

Quote from: toomuchespresso on October 26, 2010, 02:43:02 PM
Also, if I use the code

Code: [Select]<td style="text-align:center;vertical-align:center;padding:10px;height:380px;">
everything works fine.
OKAY.....try using an id instead of class.

Code: [Select]<td id="pic">...</td> Code: [Select]td#pic { ... }

Oh, and what browser are you using to view it?Ok.  And lastly, do you have any good tricks to add a caption? Right now I have it set as

Code: [Select]<img>
<p>caption</p> Quote from: kpac on October 26, 2010, 02:48:02 PM
Oh, and what browser are you using to view it?

Firefox 3.6.10.  Also doing pre-view in Amaya.Did that work?


An example of captions would be like this:
HTML
Code: [Select]<table class="gallery">
  <tr>
    <td>
      <div id="image"><img src="../image.jpg" /></div>
      <div id="caption">Image Caption</div>
    <td>
    <td>
      <div id="image"><img src="../image2.jpg" /></div>
      <div id="caption">Image Caption 2</div>
    <td>
  </tr>
</table>

CSS
Code: [Select]table.gallery td {
  width: 500px;
  height: 600px;
  overflow: hidden;
  text-align: center;
  border: 1px solid #000;
}
td div#image {
  padding: 0;
  margin: 0;
  height: 570px;
  width: 500px;
}
td div#caption {
  padding: 5px;
  margin: 0;
  height: 20px;
  width: 490px;
}

That may need some tweaking.


Quote from: toomuchespresso on October 26, 2010, 03:04:12 PM
Firefox 3.6.10.  Also doing pre-view in Amaya.
Ok...I'm not sure why the class isn't working. Can you post or attach all the code in the file? (CSS+HTML)


More info: http://www.elated.com/articles/styling-tables-with-css/What helped most was the reminder to view it in the browser (I was only looking at it in the writer software).  Like I said, I'm new at this.  Thanks for the help. Quote
(I was only looking at it in the writer software)
Yeah, sometimes those don't tend to be that accurate. You're better off checking it in the most popular browsers...IE, Firefox, Opera, Chrome and Safari.
To do that there are websites such as https://browserlab.adobe.com/en-us/index.html (requires sign-in) and http://browsershots.org/. Obviously both require the site to be online somewhere.

Quote
Thanks for the help.
No problem

577.

Solve : Draw custom flow chart in java Applet.?

Answer» HI,

I am TRYING to draw a CUSTOM flowchart in an Applet and once that is DONE I would like to call this in a jsp.

Kindly help. Its urgent.
578.

Solve : photo help?

Answer»

When I put my photos on my web page I do this









One thing I don't understand is my first 2. photos are going right next to one another and then the 3. photo goes on the next line?

I did put a   
  tag  after my first photo as you can see but they are going  right next to EACHOTHER why??
Well, for one thing, the Code: [Select]<br> tag is intended for lines of text, not for images.  So, forget using it here.

A table would be one WAY of arranging the photos the way you want.  There may be a more sophisticated method using CSS but I'm not prepared to GET into that.  But, ANYWAY, you could use a table. Quote

tag is intended for lines of text, not for images.  So, forget using it here.

 will actually work with images.

Quote
my first 2. photos are going right next to one another and then the 3. photo goes on the next line?
Are you floating the images in your CSS by any chance?
579.

Solve : CGI?

Answer»

Im CREATING a website FORM, and i need to create a cgi. Are there any tutorials on how to create CGI. I must create it myself. I have no programming experience, so i need it to be very explanatory of the steps.
http://info.eps.surrey.ac.uk/FAQ/cgitutor/

http://free.beyonddream.com/CGITutorial/

http://www.google.com/support/websearch/bin/answer.py?hl=en&answer=134479

I've also ADDED a 'how to use google' LINK

580.

Solve : HTML Question About A Hyperlink Code?

Answer»

I WANT this link to open in a NEW window.  What should I add to it and WHERE?  I've been trying to insert target="_blank" but it's not working, so I'm either using the wrong code or inserting it in the wrong place.  Help, please??

The link is:

Code: [Select]<iframe src="http://affiliate.godaddy.com/ad/F8001203EB7CDE3D2D2B02D72A71BC33DA2EBC9BE99859C7BB15E56009D48B40" width="120" height="600" FRAMEBORDER="0" scrolling="no" marginwidth="0" marginheight="0" hspace="0" allowtransparency="true"></iframe>This may help: http://www.ahfb2000.com/webmaster_help_desk/showthread.php?t=3192Wouldn't it be great if the forum didn't filter iframes? Every time SOMEONE looked at this page, you'd get a referral. Very smart THINKING, though. Please use the code BBC tag in future.

581.

Solve : HTML help- Using Vertical Response for an email campaign?

Answer»

Hi All,

New here and hope you can help. I am sure these are easy fixes but I have never used html before.

I created an email campagin in Veritcal Response in a graphic editor. It looks FINE BUT when I run it through "Email on ACID" I get the following errors:

Warning Line 15, Column 8: attribute name "_fck_bookmark" (value="1") is invalid
Warning Line 15, Column 395: attribute name "_fck_bookmark" (value="1") is invalid
Warning Line 87, Column 67: nested EMPHASIS
Warning Line 87, Column 121: nested emphasis
Warning Line 89, Column 93: attribute name "_fck_bookmark" (value="1") is invalid
Warning Line 89, Column 365: attribute name "_fck_bookmark" (value="1") is invalid
Warning Line 179, Column 107: attribute value "absMiddle" MUST be lower case for XHTML
Warning Line 179, Column 107: proprietary attribute value "absmiddle"

Any help is greatly apprciated. The Vertical Response people were no help at all.

Thank you!!

582.

Solve : Filler Content?

Answer»

Hi All,
I am putting TOGETHER a SMALL web site. I have written most of the content but the pages seem to be LACKING information.

I am looking for a few places I could grab some text and paste it into the pages. Also if anyone has a good place to grab SOMETHING like scrolling news feed or weather that WOULD help also.

The bottom line is I am doing this for a friend but I don't want to spend a ton of time on the site.

Thanks
What is the theme of the site?Package store.....

very small mom and pop place

older historic area

583.

Solve : Looking for free templetes?

Answer»

Hi All,
I am LOOKING for a WEB site templete. I don't need anything but a few STATIC pages and maybe a menu bar. Its going to be a simple store site with no shopping cart.

Anyone know of a GOOD place to grab a free download?

Thanks
I would start by doing a Google search on web page templates.  I can't recommend any specific sources since I haven't used any of them. I THINK I found what I needed.....

Thanks!

584.

Solve : spacing help?

Answer»

I know if I want more then 1. space between words I have to do it with code like so

Dark &bnsp Poems

And if I want to AD say 5. spaces I do this code 5. times.
But is there an easyer way with  CSS  or is it the same this?

I know with CSS you can SETUP how you want all the text to space and look. But I just want to know how you would do this off and on with text that you want?http://www.w3schools.com/css/pr_text_word-spacing.aspI see it goes like this
p
{
word-spacing:30px;
}

can I not do this right beor th word


word-spacing:30px;



Dark Poem
Just try it.

Why post, waiting for someone else to answer, when you can just try it yourself.

Experiment Quote from: NYMPH4 on October 19, 2010, 05:56:39 PM
can I not do this right beor th word
What?


This is CSS. It goes in this head, inline in the style attribute, or in the external CSS, just like you've been shown over and over again.
585.

Solve : online php form displaying password in url?

Answer»

So i have created a online form that requests a PASSWORD.<BR>when you type in the correct password and it goes to the next page the password awnser is displayed in the URL how can i stop this from happening?use a POST request rather then using GET.

for example:

Code: [SELECT]<form action="testpost.php" method="post">
password: <input type="text" size="65" name="password"><br>
<input type="submit" /><br>
</form>


and then in testpost.php (or whichever) you would access the input VALUE via $_POST['password'].
thanks that worked

586.

Solve : uploading?

Answer»

I have a website that I WOULD like to upload a Paypal "Buy Now" button. I have the CORRECT code from Paypal and have it installed on Komposer. When I try to upload from Komposer to my website through Filezilla, it doesn't show up on my website. Anyone know what I'm doing wrong? Any help will be appreciated.
Thank you
JohnYou have to include it in you page HTML template.Thank you for your help. I'm not quite sure I know how to do that as I'm quite new at this but I will give it a shot.
Thanks again
JohnDid you create that web page?
Can you provide a link to it?

Quote

When I try to upload from Komposer to my website through Filezilla
How EXACTLY are you doing it?I THINK Broni is asking when you created your web page did you use a template through 'Kompozer'? Or have you created the web page yourself?
To add the 'paypal' button, provided you have created through kompozer, you will have to edit the page you want to add it to using a HTML editor which should/may be AVAILABLE through the back end of your site.
Also you may be able to add the Paypal button by adding a module/extension through Kompozer, but you would have to search through there extensions for this.
As I have no experience with Kompozer I can only offer advice that is relevant to my own website.
Hope that helps some what.
587.

Solve : a count down clock form UTC time?

Answer»

hi i am trying to make a Turn clock this is how it works... it gets the current time from the time zone UTC-6 then it CALCULATES how long it takes for 30mins to past and displays the time e.g. if the UTC-6 time says 1:00:00 am the turn time will DISPLAY 30:00 it will then start counting down until the UTC-6 time says 1:30:00 am this is when the turn time will reset itself back to 30:00 and then continue counting down until the next cycle.. here is the script i use to work out the UTC-6 time :



function TS(){ x=new Date(tN().getUTCFullYear(),tN().getUTCMonth(),tN().getUTCDate(),tN().getUTCHours(),tN().getUTCMinutes(),tN().getUTCSeconds()); x.setTime(x.getTime()-21600000); return x; }
function tN(){ return new Date(); }
function lZ(x){ return (x>9)?x:'0'+x; }
function tH(x){ if(x==0){ x=12; } return (x>12)?x-=12:x; }
function dT(){ if(fr==0){ fr=1; document.write('<span id="tP">'+eval(oT)+'</span>'); } document.getElementById('tP').innerHTML=eval(oT); setTimeout('dT()',1000); }
function aP(x){ return (x>11)?'pm':'am'; }
var fr=0,oT="tH(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+aP(tS().getHours())";


Game Time : dT();



so could you help pleaseplease can some one help... i have tryed to fidure out how to do it but with no sucsess :/See herei have finaly figured it out T.T

i now need help with an ajax REQUEST.

how do i send a ajax request and then how to i save the responses and variables?
when i visit the url for the ajax request this is what is DISPLAYED : {"untrainedSold":"1315","attackTurns":"30","gold":"1117417850","gameTime":"10:21:12AM","nextTurn":"09:01"}

i need each saved as there own variable so please help

588.

Solve : building a website in french help?

Answer»

I am building a website in french. The problem that I am facing is special characters. I know that I can enter the code number (eg \) but that is very time consuming and not PRACTICAL because the SITE will be dynamic so the user can modify CONTENTS. Does ANYBODY have any solution.  What are you using to build the website with?

Some programs and web-based software will be UTF-8 ('special character') compliant anyway so this shouldn't be an issue. But YEAH, knowing how you are building the website should help Thanks for your answer. I am building the website with php and mysql database. So far this has helped "". I havent started coding in php yet or built the database  but so far this has resolved the issue.

589.

Solve : Changing forums?

Answer»

Hello,

Does anyone know how i can change forum powered by companys etc (i hope you know what i mean) the forum IM useing now the control panel and other things are complicated from me. What is the forum software called?PHBB - SMF Quote from: Typhoon on September 29, 2010, 10:27:34 AM

PHBB - SMF

it's either PHPBB or it's SMF... I don't think you can have both running at once in a single forum!

Or are you switching from PHPBB to SMF?If you mean you WANT to change from phpBB to SMF, check this out as a starter GUIDE:

http://www.simplemachines.org/community/index.php?topic=273509.0
590.

Solve : changing the name of a robot?

Answer»

is their anyway of changing the NAME of a robot that sends emails via php.
the only thing is that i don t have ADMIN rights to the server that is hosting my website is their anyway to do it with out or will i have to contact my server administrator.
any replies will be helpfull as i am quite new to php and would really appreciate any advice.I ASSUME you MEAN the name of who the e-mail is coming from. If this is the case it's all depends on how the PHP script is written. I'd imagine if you can edit the PHP script, that in the source code you should be able to see a section that lists the name you wish to change.If the PHP script is on the server and you do not have permission to edit it, you'll probably have to ask the SITE administrator to edit the script, or edit it yourself then ask the administrator to publish it for you.

And as Nathan said (Is that his name? I haven't been here for a while  ), it depends on how the script is written.You remember correctly Dairyman.

591.

Solve : can t email my php form from local host ??

Answer»

i can t email my php form from local host how do i do this ?just thought that i should add that i have try ed to follow other posts from other sites telling me to edit the php ini file on my wampserver which i changed to port 25 as stated without any luck.
if i change if to anything other then port 80 i cannot get localhost to work i am trying to do this on OS windows xp.
also on my wamp server i cannot get phpmyadmin to work so i am wondering if this has anything to do with it.
Has anyone got any ideas?
Unless you have an SMTP server set up then it won't work.how do i set up a smtp server or identify if i have one ?Well, I use the XAMPP home server set up instead of WAMP which has a built-in SMTP server. To be honest it can be awkward to configure properly so I usually just upload the page to a test site online (which has a working mail server) and try it from there. I'm trying to make a web page that can only be accessed by local host i never want it to go on line below is my php ini file can anyone tell me where i am going wrong?

[PHP]

;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
;
; Expressions in the INI file are limited to bitwise operators and parentheses:
; |        bitwise OR
; &        bitwise AND
; ~        bitwise NOT
; !        boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the equal
; sign, or by using the None keyword:
;
;  foo =         ; sets foo to an empty string
;  foo = none    ; sets foo to an empty string
;  foo = "none"  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend extension),
; you may only use these constants *after* the line that loads the extension.
;
;
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This is the recommended, PHP 5-style version of the php.ini-dist file.  It
; sets some non standard settings, that make PHP more efficient, more secure,
; and encourage cleaner coding.
;
; The price is that with these settings, PHP may be incompatible with some
; applications, and sometimes, more difficult to develop with.  Using this
; file is warmly recommended for production sites.  As all of the changes from
; the standard settings are thoroughly documented, you can go over each one,
; and decide whether you want to use it or not.
;
; For general information about the php.ini file, please consult the php.ini-dist
; file, included in your PHP distribution.
;
; This file is different from the php.ini-dist file in the fact that it features
; different values for several directives, in order to improve performance, while
; possibly breaking compatibility with the standard out-of-the-box behavior of
; PHP.  Please make sure you read what's different, and modify your scripts
; accordingly, if you decide to use this file instead.
;
; - register_long_arrays = Off     [Performance]
;     Disables registration of the older (and deprecated) long predefined array
;     variables ($HTTP_*_VARS).  Instead, use the superglobals that were
;     introduced in PHP 4.1.0
; - display_errors = Off           [Security]
;     With this directive set to off, errors that occur during the execution of
;     scripts will no longer be displayed as a part of the script output, and thus,
;     will no longer be exposed to remote users.  With some errors, the error message
;     content may expose information about your script, web server, or database
;     server that may be exploitable for hacking.  Production sites should have this
;     directive set to off.
; - log_errors = On                [Security]
;     This directive complements the above one.  Any errors that occur during the
;     execution of your script will be logged (typically, to your server's error log,
;     but can be configured in several ways).  Along with setting display_errors to off,
;     this setup gives you the ability to fully understand what may have gone wrong,
;     without exposing any sensitive information to remote users.
; - output_buffering = 4096        [Performance]
;     Set a 4KB output buffer.  Enabling output buffering typically results in less
;     writes, and sometimes less packets sent on the wire, which can often lead to
;     better performance.  The gain this directive actually yields greatly depends
;     on which Web server you're working with, and what kind of scripts you're using.
; - register_argc_argv = Off       [Performance]
;     Disables registration of the somewhat redundant $argv and $argc global
;     variables.
; - magic_quotes_gpc = Off         [Performance]
;     Input data is no longer escaped with slashes so that it can be sent into
;     SQL databases without further manipulation.  Instead, you should use the
;     function addslashes() on each input element you wish to send to a database.
; - variables_order = "GPCS"       [Performance]
;     The environment variables are not hashed into the $_ENV.  To access
;     environment variables, you can use getenv() instead.
; - error_reporting = E_ALL        [Code Cleanliness, Security(?)]
;     By default, PHP suppresses errors of type E_NOTICE.  These error messages
;     are emitted for non-critical errors, but that could be a symptom of a bigger
;     problem.  Most notably, this will cause error messages about the use
;     of uninitialized variables to be displayed.
; - allow_call_time_pass_reference = Off     [Code cleanliness]
;     It's not possible to decide to force a variable to be passed by reference
;     when calling a function.  The PHP 4 style to do this is by making the
;     function require the relevant argument by reference.
; - short_open_tag = Off           [Portability]
;     Using short tags is discouraged when developing code meant for redistribution
;     since short tags may not be supported on the target server.

;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;

; Enable the PHP scripting language engine under Apache.
engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compatibility_mode = on

; Allow the tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision    =  14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = On

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.  If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On', as
; a value for this directive (e.g., output_buffering=4096).
output_buffering = 4096

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "mb_output_handler", character
; encoding will be transparently converted to the specified encoding.
; Setting any output handler automatically turns on output buffering.
; Note: People who wrote portable scripts should not depend on this ini
;       directive. Instead, explicitly set the output handler using ob_start().
;       Using this ini directive may cause problems unless you know what script
;       is doing.
; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
;       and you cannot use both "ob_gzhandler" and "zlib.output_compression".
; Note: output_handler must be empty if this is set 'On' !!!!
;       Instead you must use zlib.output_handler.
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
;       outputs chunks that are few hundreds bytes each as a result of
;       compression. If you prefer a larger chunk size for better
;       performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
;       output_handler, or otherwise the output will be corrupted.
zlib.output_compression = Off
;zlib.output_compression_level = -1

; You cannot specify additional output handlers if zlib.output_compression
; is activated here. This setting does the same as output_handler but in
; a different order.
;zlib.output_handler =

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; The unserialize callback function will be called (with the undefined class'
; name as parameter), if the unserializer finds an undefined class
; which should be instantiated.
; A warning appears if the specified function is not defined, or if the
; function doesn't include/implement the missing class.
; So only set this entry, if you really want to implement such a
; callback-function.
unserialize_callback_func=

; When floats & doubles are serialized store serialize_precision significant
; digits after the floating point. The default value ensures that when floats
; are decoded with unserialize, the data will remain the same.
serialize_precision = 100

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = Off

;
; Safe Mode
;
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note:  If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; open_basedir, if set, limits all file operations to the defined directory
; and below.  This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
;open_basedir =

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =

; This directive allows you to disable certain classes for security reasons.
; It receives a comma-delimited list of class names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_classes =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; ?"> would work.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000

; If enabled, the request will be allowed to complete even if the user aborts
; the request. Consider enabling it if executing long request, which may end up
; being interrupted by the user or a browser timing out.
; ignore_user_abort = On

; Determines the size of the realpath cache to be used by PHP. This value should
; be increased on systems where PHP opens many files to reflect the quantity of
; the file operations performed.
; realpath_cache_size=16k

; Duration of time, in seconds for which to cache realpath information for a given
; file or directory. For systems with rarely changing files, consider increasing this
; value.
; realpath_cache_ttl=120

;
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
expose_php = On


;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30     ; Maximum execution time of each script, in seconds
max_input_time = 60   ; Maximum amount of time each script may spend parsing request data
;max_input_nesting_level = 64 ; Maximum input variable nesting level
memory_limit = 128M      ; Maximum amount of memory a script may consume (8MB)


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; error_reporting is a bit-field.  Or each number up to get desired error
; reporting level
; E_ALL             - All errors and warnings (doesn't include E_STRICT)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
;
; Examples:
;
;   - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE
;
;   - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
;
;   - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
;
;   - Show all errors, except coding standards warnings
;
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

; Print out errors (as a part of the output).  For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below).  Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
;
; possible values for display_errors:
;
; Off          - Do not display any errors
; stderr       - Display errors to STDERR (affects only CGI/CLI binaries!)   
; On or stdout - Display errors to STDOUT (default)

; To output errors to STDERR with CGI/CLI:             
;display_errors = "stderr"
;
; Default
;
display_errors = On

; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed.  It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = On

; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
log_errors_max_len = 1024

; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off

; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
ignore_repeated_source = Off

; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

;report_zend_debug = 0

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off

; Disable the inclusion of HTML tags in error messages.
; Note: Never use this feature for production boxes.
;html_errors = Off

; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot.
; Note: Never use this feature for production boxes.
;docref_root = "/phpmanual/"
;docref_ext = .html

; String to output before an error message.
;error_prepend_string = ""

; String to output after an error message.
;error_append_string = ""

; Log errors to specified file.
error_log = c:/wamp/logs/php_error.log

; Log errors to syslog (Event Log on NT, not valid in Windows 95).
;error_log = syslog


;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3

; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&"

; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"

; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC).  Registration is done from left to right, newer
; values override older values.
variables_order = "GPCS"

; Whether or not to register the EGPCS variables as global variables.  You may
; want to turn this off if you don't want to clutter your scripts' global scope
; with user data.  This makes most sense when coupled with track_vars - in which
; case you can access all of the GPC variables through the $HTTP_*_VARS[],
; variables.
;
; You should do your best to write your scripts so that they do not require
; register_globals to be on;  Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals = Off

; Whether or not to register the old-style input arrays, HTTP_GET_VARS
; and friends.  If you're not using them, it's recommended to turn them off,
; for performance reasons.
register_long_arrays = Off

; This directive tells PHP whether to declare the argv&argc variables (that
; would contain the GET information).  If you don't use these variables, you
; should turn it off for increased performance.
register_argc_argv = Off

; When enabled, the SERVER and ENV variables are created when they're first
; used (Just In Time) instead of when the script starts. If these variables
; are not used within a script, having this directive on will result in a
; performance gain. The PHP directives register_globals, register_long_arrays,
; and register_argc_argv must be disabled for this directive to have any affect.
auto_globals_jit = On

; Maximum size of POST data that PHP will accept.
post_max_size = 8M

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

; Automatically add files before or after any PHP document.
auto_prepend_file =
auto_append_file =

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header.  To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"

; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On


;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues.  The alternate is to use the
; cgi.force_redirect configuration below
doc_root =

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:/wamp/bin/php/php5.2.6/ext/"

; Whether or not to enable the dl() function.  The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
; cgi.force_redirect = 1

; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
; every request.
; cgi.nph = 1

; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP's
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix it's paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
; cgi.fix_pathinfo=1

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
; fastcgi.impersonate = 1;

; Disable logging through FastCGI connection
; fastcgi.logging = 0

; cgi.rfc2616_headers configuration option tells PHP what type of headers to
; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
; is supported by Apache. When this option is set to 1 PHP will send
; RFC2616 compliant header.
; Default is zero.
;cgi.rfc2616_headers = 0


;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "c:/wamp/tmp"

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On


; Define the anonymous ftp password
from="[email protected]"

; Define the User-Agent string
; user_agent="PHP"

; Default TIMEOUT for socket based streams (seconds)
default_socket_timeout = 60

; If your scripts have to deal with files from Macintosh systems,
; or you are running on a Mac and need to deal with files from
; unix or win32 systems, setting this flag will cause PHP to
; automatically detect the EOL character in those files so that
; fgets() and file() will work regardless of the source of the file.
; auto_detect_line_endings = Off


;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here.  Specify the location of the extension with the
; extension_dir directive above.


; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
;extension=php_zip.dll

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
;date.timezone =

;date.default_latitude = 31.7667
;date.default_longitude = 35.2333

;date.sunrise_zenith = 90.583333
;date.sunset_zenith = 90.583333

[filter]
;filter.default = unsafe_raw
;filter.default_flags =

[iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1

[sqlite]
;sqlite.assoc_case = 0

[xmlrpc]
;xmlrpc_error_number = 0
;xmlrpc_errors = 0

[Pcre]
;PCRE library backtracking limit.
;pcre.backtrack_limit=100000

;PCRE library recursion limit.
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
;pcre.recursion_limit=100000

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables  = Off

[mail function]
; For Win32 only.
SMTP = post.demon.co.uk
smtp_port = 25

; For Win32 only.
sendmail_from = [email protected]
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = /usr/sbin/sendmail -t -i


; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

[SQL]
sql.safe_mode = On

[ODBC]
;odbc.default_db    =  Not yet implemented
;odbc.default_user  =  Not yet implemented
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysql.default_port =3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket =

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host = matthew1471.co.uk

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =jo

; Default password for mysql_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
mysql.default_password =

; Maximum time (in seconds) for connect timeout. -1 means no limit
mysql.connect_timeout = 60

; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
; SQL-Errors will be displayed.
mysql.trace_mode = Off

[MySQLi]

; Maximum number of links.  -1 means no limit.
mysqli.max_links = -1

; Default port number for mysqli_connect().  If unset, mysqli_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysqli.default_port = 3306

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysqli.default_socket =25

; Default host for mysql_connect() (doesn't apply in safe mode).
mysqli.default_host =matthew1471.co.uk

; Default user for mysql_connect() (doesn't apply in safe mode).
mysqli.default_user =jo

; Default password for mysqli_connect() (doesn't apply in safe mode).
; Note that this is generally a *bad* idea to store passwords in this file.
; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
; and reveal this password!  And of course, any users with read access to this
; file will be able to reveal the password as well.
mysqli.default_pw =

; Allow or prevent reconnect
mysqli.reconnect = Off

[mSQL]
; Allow or prevent persistent links.
msql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
msql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
msql.max_links = -1

[OCI8]
; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
;oci8.privileged_connect = Off

; Connection: The maximum number of persistent OCI8 connections per
; process. Using -1 means no limit.
;oci8.max_persistent = -1

; Connection: The maximum number of seconds a process is allowed to
; maintain an idle persistent connection. Using -1 means idle
; persistent connections will be maintained forever.
;oci8.persistent_timeout = -1

; Connection: The number of seconds that must pass before issuing a
; ping during oci_pconnect() to check the connection validity. When
; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
; pings completely.
;oci8.ping_interval = 60

; Tuning: This option enables statement caching, and specifies how
; many statements to cache. Using 0 disables statement caching.
;oci8.statement_cache_size = 20

; Tuning: Enables statement prefetching and sets the default number of
; rows that will be fetched automatically after statement execution.
;oci8.default_prefetch = 10

; Compatibility. Using On means oci_close() will not close
; oci_connect() and oci_new_connect() connections.
;oci8.old_oci_close_semantics = Off

[PostgresSQL]
; Allow or prevent persistent links.
pgsql.allow_persistent = On

; Detect broken persistent links always with pg_pconnect().
; Auto reset feature requires a little overheads.
pgsql.auto_reset_persistent = Off

; Maximum number of persistent links.  -1 means no limit.
pgsql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
pgsql.max_links = -1

; Ignore PostgreSQL backends Notice message or not.
; Notice message logging require a little overheads.
pgsql.ignore_notice = 0

; Log PostgreSQL backends Noitce message or not.
; Unless pgsql.ignore_notice=0, module cannot log notice message.
pgsql.log_notice = 0

[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; Minimum error severity to display.
sybase.min_error_severity = 10

; Minimum message severity to display.
sybase.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings.  This
; compatibility mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
sybct.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
sybct.max_links = -1

; Minimum server message severity to display.
sybct.min_server_severity = 10

; Minimum client message severity to display.
sybct.min_client_severity = 10

[bcmath]
; Number of decimal digits for all bcmath functions.
bcmath.scale = 0

[browscap]
;browscap = extra/browscap.ini

[Informix]
; Default host for ifx_connect() (doesn't apply in safe mode).
ifx.default_host =

; Default user for ifx_connect() (doesn't apply in safe mode).
ifx.default_user =

; Default password for ifx_connect() (doesn't apply in safe mode).
ifx.default_password =

; Allow or prevent persistent links.
ifx.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
ifx.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
ifx.max_links = -1

; If on, select statements return the contents of a text blob instead of its id.
ifx.textasvarchar = 0

; If on, select statements return the contents of a byte blob instead of its id.
ifx.byteasvarchar = 0

; Trailing blanks are stripped from fixed-length char columns.  May help the
; life of Informix SE users.
ifx.charasvarchar = 0

; If on, the contents of text and byte blobs are dumped to a file instead of
; keeping them in memory.
ifx.blobinfile = 0

; NULL's are returned as empty strings, unless this is set to 1.  In that case,
; NULL's are returned as string 'NULL'.
ifx.nullformat = 0

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
;
; As of PHP 4.0.1, you can define the path as:
;
;     session.save_path = "N;/path"
;
; where N is an integer.  Instead of storing all the session files in
; /path, what this will do is use subdirectories N-levels deep, and
; store the session data in those directories.  This is useful if you
; or your OS have problems with lots of files in one directory, and is
; a more efficient layout for servers that handle lots of sessions.
;
; NOTE 1: PHP will not create this directory structure automatically.
;         You can use the script in the ext/session dir for that purpose.
; NOTE 2: See the section on garbage collection below if you choose to
;         use subdirectories for session storage
;
; The file storage module creates files using mode 600 by default.
; You can change that by using
;
;     session.save_path = "N;MODE;/path"
;
; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
session.save_path = "c:/wamp/tmp"

; Whether to use cookies.
session.use_cookies = 1

;session.cookie_secure =

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
; session.use_only_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0

; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0

; The path for which the cookie is valid.
session.cookie_path = /

; The domain for which the cookie is valid.
session.cookie_domain =

; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
session.cookie_httponly =

; Handler used to serialize data.  php is the standard serializer of PHP.
session.serialize_handler = php

; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.

session.gc_probability = 1
session.gc_divisor     = 1000

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440

; NOTE: If you are using the subdirectory option for storing session files
;       (see session.save_path above), then garbage collection does *not*
;       happen automatically.  You will need to do your own garbage
;       collection through a shell script, cron entry, or some other method.
;       For example, the following script would is the equivalent of
;       setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
;          cd /path/to/sessions; find -cmin +24 | xargs rm

; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 0
session.bug_compat_warn = 1

; Check HTTP Referer to INVALIDATE externally stored URLs containing ids.
; HTTP_REFERER has to contain this substring for the session to be
; considered as valid.
session.referer_check =

; How many bytes to read from the file.
session.entropy_length = 0

; Specified here to create the session id.
session.entropy_file =

;session.entropy_length = 16

;session.entropy_file = /dev/urandom

; Set to {nocache,private,public,} to determine HTTP caching aspects
; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache

; Document expires after n minutes.
session.cache_expire = 180

; trans sid support is disabled by default.
; Use of trans sid may risk your users security.
; Use this option with caution.
; - User may send URL contains active session ID
;   to other person via. email/irc/etc.
; - URL that contains active session ID may be stored
;   in PUBLICALLY accessible computer.
; - User may access your site with the same session ID
;   always using URL stored in browser's history or bookmarks.
session.use_trans_sid = 0

; Select a hash function
; 0: MD5   (128 bits)
; 1: SHA-1 (160 bits)
session.hash_function = 0

; Define how many bits are stored in each character when converting
; the binary hash data to something readable.
;
; 4 bits: 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, "-", ","
session.hash_bits_per_character = 5

; The URL rewriter will look for URLs in a defined set of HTML tags.
; form/fieldset are special; if you include them here, the rewriter will
; add a hidden field with the info which is otherwise appended
; to URLs.  If you want XHTML conformity, remove the form entry.
; Note that all valid entries require a "=", even if no value follows.
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
; Allow or prevent persistent links.
mssql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent).  -1 means no limit.
mssql.max_links = -1

; Minimum error severity to display.
mssql.min_error_severity = 10

; Minimum message severity to display.
mssql.min_message_severity = 10

; Compatibility mode with old versions of PHP 3.0.
mssql.compatability_mode = Off

; Connect timeout
;mssql.connect_timeout = 5

; Query timeout
;mssql.timeout = 60

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textlimit = 4096

; Valid range 0 - 2147483647.  Default = 4096.
;mssql.textsize = 4096

; Limits the number of records in each batch.  0 = all records in one batch.
;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned
; On => Returns data converted to SQL server settings
; Off => Returns values as YYYY-MM-DD hh:mm:ss
;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server
mssql.secure_connection = on

; Specify max number of processes. -1 = library default
; msdlib defaults to 25
; FreeTDS defaults to 4096
;mssql.max_procs = -1

; Specify client character set.
; If empty or not set the client charset from freetds.comf is used
; This is only used when compiled with FreeTDS
;mssql.charset = "ISO-8859-1"

[Assertion]
; Assert(expr); active by default.
;assert.active = On

; Issue a PHP warning for each failed assertion.
;assert.warning = On

; Don't bail out by default.
;assert.bail = Off

; User-function to be called if an assertion fails.
;assert.callback = 0

; Eval the expression with current error_reporting().  Set to true if you want
; error_reporting(0) around the eval().
;assert.quiet_eval = 0

[COM]
; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
;com.typelib_file =
; allow Distributed-COM calls
;com.allow_dcom = true
; autoregister constants of a components typlib on com_load()
;com.autoregister_typelib = true
; register constants casesensitive
;com.autoregister_casesensitive = false
; show warnings on duplicate constant registrations
;com.autoregister_verbose = true

[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_encoding = Off

[FrontBase]
;fbsql.allow_persistent = On
;fbsql.autocommit = On
;fbsql.show_timestamp_decimals = Off
;fbsql.default_database = alternative
;fbsql.default_database_password =
;fbsql.default_host = matthew1471.co.uk
;fbsql.default_password =
;fbsql.default_user = "_SYSTEM"
;fbsql.generate_warnings = Off
;fbsql.max_connections = 128
;fbsql.max_links = 128
;fbsql.max_persistent = -1
;fbsql.max_results = 128

[gd]
; Tell the jpeg decode to libjpeg warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;gd.jpeg_ignore_warning = 0

[exif]
; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
; With mbstring support this will automatically be converted into the encoding
; given by corresponding encode setting. When empty mbstring.internal_encoding
; is used. For the decode settings you can distinguish between motorola and
; intel byte order. A decode setting cannot be empty.
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel    = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel    = JIS

[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg

; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off

[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400

; Local Variables:
; tab-width: 4
; End:
so has anyone got any ideas ?Assuming you've got a SMTP server already (be it via your ISP or your own), check this out:

http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.htmlthanks for the post but that is exacly what i have done and it still does not seem to work Quote from: silverpersian on September 27, 2010, 05:20:08 AM

thanks for the post but that is exacly what i have done and it still does not seem to work
What SMTP server are you using?

And if you've got a firewall (I assume you do), have you ensured the relevant port(s) are open?im using outlook to send the mailIf I understand you correctly you're trying to mail your localhost computer in PHP. If this is the case as mentioned above you're going to need some type of mail server running on the computer. Using PHP by itself will not be able to send or receive e-mail. PHP is simply a scripting language, you may have a script that is capable of handing the e-mail once received, but the job of actually sending out and receiving e-mail is handled by a different program.

If you're running Windows and wanting to send mail using a script using sendmail may be a better option.
http://glob.com.au/sendmail/

If you're just wanting to create a web page like you mentioned above that can only be accessed in a local Intranet, you'll need to setup a web server. Again PHP is just a scripting program, it's not going to be able to share out web pages. A very simple to setup web server although kind of old is Foxserv.
http://glob.com.au/sendmail/

Alternatively you would need to setup Apache on Windows, to act as the webserver to distribute web pages or allow you to run a PHP page locally.

If that doesn't help maybe you could give additional details on what exactly you're trying to accomplish.I'm trying to create a form on a localhost web page that will enable me to send messages to people in the buildings emails.
i have installed WAMP 2.0 Server onto my computer and that includes Apache mysql and php combined Ok, WAMP would be fine (although above I see you said you had xampp) from what I read doesn't require a mail server to send e-mails. However, since you're not able to access myphpadmin I think you may have other issues. Are you able to open just a standard test web page (e.g. if you were to open your browser and type http:// and enter does it open a page?

As was mentioned above if none of this is working it could all be due to a firewall permission, make sure all firewalls including the Windows Firewall is disabled.
592.

Solve : How to include data from other ftp site??

Answer»

I wish to display a part of numerical data from a ftp site into my WEBSITE ( phpbb3) http://earth-station-forum.stationforum.com/ .

How do I do that?

Enclosing the whole page is easy but how to reproduce only a small data?

In particular how can I reproduce only the bold text "Solar flux = 83 " form the webpage :http://www.swpc.noaa.gov/ftpdir/latest/wwv.txt

Quote



:Product: Geophysical Alert Message wwv.txt
:Issued: 2010 Sep 21 0906 UTC
# Prepared by the US Dept. of Commerce, NOAA, Space Weather Prediction Center
#
# Geophysical Alert Message
#
Solar-terrestrial indices for 20 September follow.
Solar flux 83 and mid-latitude A-index 2.
The mid-latitude K-index at 0900 UTC on 21 September was 2 (18 nT).

No space weather storms were observed for the past 24 hours.

No space weather storms are expected for the next 24 hours.

I am not a professional software PERSON ... but have attempted a few complex programs in C BASIC etc.

Just a very preliminary code will do .. I will try to refine it.

I tried $string.. $ SUBSTR etc but could not succeed.

Thanks in advance.

==========

S S SalviAre you happy with regex? If so perhaps use curl to fetch the HTML VIA HTTP, then regex the data out?

So:

Code: [Select]$connect = curl_init();
    curl_setopt($connect, CURLOPT_URL, 'http://pageurl.com');
    curl_setopt($connect, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($connect, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
    curl_setopt($connect, CURLOPT_POST, TRUE);
    curl_setopt($connect,CURLOPT_CONNECTTIMEOUT,2);
    curl_setopt($connect,CURLOPT_TIMEOUT,2);
    //curl_setopt($connect, CURLOPT_POSTFIELDS, 'Post content. Probably not needed');
    $response_content =  curl_exec($connect);
    $response = curl_getinfo($connect);
Then use a simple regular expression on $response to get the required data?Thanks TristanPerry,

Actually HTML, PHP  etc are all equally alien to me.

Regex is also same.

So I can just go to basics of it and try to adapt the code for my use.


Thanks for the input ...  will come back and REPORT the happenings .

=====
sssalvi
593.

Solve : Web site editor?

Answer»

Hi All,
What is everyone using these days to write and manage a web SITE? Anything good free programs out there?

Thanks
My opinions...
Best plain text editor: Notepad++
Best WYSIWYG editor: DreamweaverI used Dreamweaver about 8 years AGO.....I haven't done much web stuff since then. I really am looking for a WYSIWYG editor that is free to START to get my feet WET again. That and I am only going to setup a small web site for a friend.

Thanks
For a free one, try Kompozer.

http://www.kompozer.net/Thanks....I will give it a try.

Personally been using Microsoft EXPRESSION Web for all HTML content and then for editing scripts use TextPad.

594.

Solve : Links do not work?

Answer»

Hi,

I've been creating a mini design for a web-page as a side task.
I'm always strict on standards COMPLIANCE, but it has to render correctly in all browsers - personal preference I guess.

I created this page (sorry if there are any errors in compliance, I review when I'm done, after I'm done getting the design and functionality), but the links aren't working.
I ran it through the validator and it's supposedly VALID.  The reason I'm wondering is because it renders correctly in IE, Firefox, Safari, etc.
Links only work in IE however, which from what I know hasn't always been the best browser for standards compliance.  This is why I'm wondering whether it's something with my code?  I checked the reference and all attributes that I used are allowed.

All links don't seem to be working.  I put one in the main part of the page to see and it's not working either.

The main part is the menu.  I can't get it to pop out.  And when it does, the mouseout isn't quite working the way I want it to, but that's probably my fault.  It only works in IE.

Here's the HTML page:
Code: [Select]<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link rel="stylesheet" href="main.css" type="text/css" />
<script type="text/javascript" src="main.js"></script>
</head>

<body onload="hideMenu()">
<div id="container">
    <div id="header">
    Welcome to the Test Webpage
    </div>
    <div id="menu">
        <a href="javascript:void()" onmouseover="showMenu()" class="menuopener">>>></a>
        <div id="MenuDiv">
            <div id="MenuContainer" onmouseout="hideMenu()">
                <a href="index.html" class="menuitem">Home</a>
                <a href="index.html" class="menuitem">Trevor</a>
            </div>
        </div>
    </div>
    <div id="container2">
        <div id="content">
            TEST
        </div>
        <div id="footer">
            <p>&AMP;copy; 2010 Trevor Profitt</p>
        </div>
    </div>
</div>
</body>

</html>

and here's the stylesheet:

Code: [Select]body {
    background-color:#006600;
    text-align:center;
    margin-top:5px;
}

/*Container Div*/
div#container {
    width:750px;
    margin:0px auto auto auto;
    margin-top:0px;
    text-align:left;
    background-color:#006600;
    position:RELATIVE;
    z-index:-1;
}

/*Content DIVs*/
div#header {
    background-color:#FFFFAA;
    padding-left:10px;
    padding-right:10px;
    padding-bottom:10px;
    font-size:2em;
    color:#006600;
}

div#menu {
    position:fixed;
    background-color:#FFFFAA;
    width:40px;
    color:#006600;
    text-align:left;
}

div#MenuDiv {
    position:absolute;
    top:0px;
    left:0px;
    border-style:solid;
    border-color:#006600;
    border-left-style:none;
    border-bottom-style:none;
    background-color:#FFFFAA;
    color:#006600;
    text-align:left;
}

div#menucontainer {
    position:relative;
    width:100%;
    height:100%;
    background-color:#FFFFAA;
    color:#006600;
    text-align:left;
}

div#container2 {
    background-color:#FFFFAA;
    position:relative;
    left:40px;
    top:-10px;
    width:687px;
}

div#content {
    background-color:#FFFFAA;
    padding-left:10px;
    padding-right:10px;
    border-top-style:solid;
    border-left-style:solid;
    border-color:#006600;
    border-width:3px;
    min-height:400px;
    width:687px;
    color:#006600;
}

div#footer {
    background-color:#FFFFAA;
    padding-left:10px;
    padding-right:10px;
    width:687px;
    border-top-style:dashed;
    border-left-style:solid;
    border-color:#006600;
    border-width:3px;
    color:#006600;
    height:3em;
    font-style:italic;
}

/*Menu Styles*/
a.menuitem {
    display:inline-block;
    border-bottom-style:solid;
    border-color:#006600;
    width:167px;
    height:20px;
    vertical-align:middle;
    text-align:center;
    color:#006600;
}

a.menuitem:visited {
    color:#006600;
}

.menuopener {
    display:inline-block;
    border-top-style:solid;
    width:40px;
    border-color:#006600;
    background-color:#FFFFAA;
    color:#006600;
    text-align:center;
    text-decoration:none;
}

.menuopener:hover {
    color:#99FF00;
}
Sorry if some of the styles aren't used, it was taken from another project and I haven't stripped out the unessecary styles.
I see two hyperlinks in your code.  They are:

                Home[/URL]
                Trevor[/url]

Both of them simply link to the home page, i.e. to index.html.  What, exactly, do you want to happen?Sorry, soybean
I'm still testing.  I put two hyperlinks simply to test the layout of the menu.  The page isn't in use (it may never be), it's simply a layout that I will develop further.  It's just in testing stages right now.

I figured out what was causing the hyperlinks to not work.  The z-index of the container div was set to -1 which prevented the links from being clicked.  I changed it to 0 and it solved the problem.

595.

Solve : what is a best webdesign software??

Answer»

tell me name of this software.That's a very vague question.

WYSIWYG or editor?WYSIWYG is an acronym for "what you see is what you get".  Some web design software does not display the pages as you make changes, and only let you view the HTML, CSS and JavaScript code.



The best is arguably Dreamweaver, which is sold by Adobe:

www.adobe.com/products/dreamweaver/

It's about a thousand dollars (USD), but students and teachers can get it for about $400.00, maybe less.

Others I've tried and liked that are under $100.00 or free:

Microsoft Expression Web:

www.microsoft.com/expression/products/web_overview.aspx

CoffeeCup HTML Editor:

www.coffeecup.com/html-editor/

and Microsoft Visual Studio Express:

www.microsoft.com/express/downloads/

They are in order of price (the last one being free) and they are all WYSIWYG, allowing you to view the changes of the web pages as you edit the code without having to open your web browser.  The easiest to use is CoffeeCup HTML Editor.  CoffeeCup also makes a Visual Site Designer that requires no HTML programming at all, but I don't recommend it for several reasons.
what languages are you writing software in?
I use Dreamweaver, but as stated it does cost alot, most of my college friends use Komposer, which is free

http://www.kompozer.net/I am not the only one who will say this. This is the year 2010. Forget things that were in use twenty years ago.

Coffee Cup sucks! 
Microsoft makes bloatware.
Adobe is very pricey, and very good.


Best  choice if you do not want to Adobe  or MS is:

Netfusion

It is very powerful, state of the art and can be had in a low cost version. Or even almost free.

http://netobjects.com/

If you are a CREATIVE person this is what you want.

If you just want to be a Geek, learn HTML.
Quote from: Geek-9pm on July 28, 2010, 10:27:12 AM


If you just want to be a Geek, learn HTML.

Totally AGREE with this, there is no substitute for learning HTML or XHTML Quote from: yanng1 on July 28, 2010, 10:14:26 AM
what languages are you writing software in?

HTML, DHTML, XHTML, XML, CSS, JavaScript, jQuery, ActionScript, VB, SQL, ASP.NET. Quote from: Geek-9pm on July 28, 2010, 10:27:12 AM
I am not the only one who will say this. This is the year 2010. Forget things that were in use twenty years ago.

Coffee Cup sucks! 
Microsoft makes bloatware.
Adobe is very pricey, and very good.


Best  choice if you do not want to Adobe  or MS is:

Netfusion

It is very powerful, state of the art and can be had in a low cost version. Or even almost free.

http://netobjects.com/

If you are a creative person this is what you want.

If you just want to be a Geek, learn HTML.

I agree about CoffeeCup for the most part.  The only software they make worth considering is their HTML Editor.  Have not used Netfusion, yet.  What are some of its pros?I use EditPadPro to work on my web-site; mostly because most of the WYSIWYG solutions both suck terribly when it comes to mixing server-side with client side code (they always seem to prefer client-side javascript it seems).

I haven't used a WYSIWYG web editor for ages, not since Visual Interdev was actually acceptable to use. that and a teensy bit of Dreamweaver+Fireworks... it was at that point that I realized something.

No matter what program you choose- Dreamweaver, netfusion, Visual Studio Web Developer, you NEED to learn how to use it. And they are all quite different. For example, to use Dreamweavers various features most effectively, you need to know all about slicing and other crap relating to images, for rollovers, and other various things.

The thing is, if you know HTML, CSS, and a little JS, you can do rollovers without a specific tool. Sure, it's easier to say, place tables and divs and other elements around using these wysiwyg tools, and simple effects are often easier (as long as you stick rather closely to the generic implementation). But once you get into the more "advanced" features, not only to all the various tools differ in how they do it, but generally learning the feature isn't that much easier then learning how to write it yourself. (I mean, seriously, what the *censored* does it mean to "slice" an image? you'd think that would split it into two images or something, but nope.. or maybe it does? whatever it is/was it's completely out of context when it comes to the actual web CONTENT being generated.) Quote from: BC_Programmer on July 28, 2010, 11:34:18 AM
I use EditPadPro to work on my web-site; mostly because most of the WYSIWYG solutions both suck terribly when it comes to mixing server-side with client side code (they always seem to prefer client-side javascript it seems). ...

Yes, I've used the free EditPad and liked it. Another good and free text-only editor is Notepad++.  What I like about it is you can customize the font colors for different types of code. (You can choose any color you want for numbers, and choose a different color for keywords, a different color for strings, and so on.)  It's what I frequently use for JavaScript.

http://notepad-plus-plus.org/ Quote from: reddevilggg on July 28, 2010, 10:24:25 AM
I use Dreamweaver, but as stated it does cost alot, most of my college friends use Komposer, which is free

http://www.kompozer.net/

Haven't yet decided if I want to fork out the bucks for Dreamweaver.  What do your friends like about Komposer? Quote from: spockrates on July 28, 2010, 11:39:35 AM
Yes, I've used the free EditPad and liked it. Another good and free text-only editor is Notepad++.  What I like about it is you can customize the font colors for different types of code. (You can choose any color you want for numbers, and choose a different color for keywords, a different color for strings, and so on.)  It's what I frequently use for JavaScript.

http://notepad-plus-plus.org/

the Pro Version of Editpad feature Syntax highlighting, code folding, and stuff of that nature as well.

Notepad++ would have worked fine for me, if it had a FTP plugin that even close to touching the ease of use of the Editpad pro FTP panel. All the other various features (file panel, explorer panel, file navigator, macro recording, etc are just icing on the cake. Quote from: BC_Programmer on July 28, 2010, 11:59:21 AM
the Pro Version of Editpad feature Syntax highlighting, code folding, and stuff of that nature as well.

Notepad++ would have worked fine for me, if it had a FTP plugin that even close to touching the ease of use of the Editpad pro FTP panel. All the other various features (file panel, explorer panel, file navigator, macro recording, etc are just icing on the cake.

I like that they both reside in the system tray.  How much is Editpad Pro?It looks like Adobe and Microsoft are fighting to be king of the HILL, with all the rest clawing their way to the top!

596.

Solve : Problem in PHP Calendar Event?

Answer»

Good day!

I created a webpages and i have a login page consist of Username and Department. And i encountered problem in adding event in my calendar.

This is the flow of my webpage:
First I have a separate table for the user and calendar. In my user table it has a Username, Department, and Permission. In the permission I put True or False, only one user i put True because i want that user is the one who permitted to add event or if she is login the add event link appear, but if other login the add even0t did not appear.

This is my code in login:
Code: [Select]<?php   
session_start();   
session_regenerate_id();   
 
if($_SESSION['loggedin']){   
//the user is already logged in, lets redirect them to the other page   
    header("Location:company.php");   
}   
 
//require_once 'conn.php';     
$db_name="dspi";   
 
mysql_connect("localhost", "root", "") or die("Cannot connect to server");   
mysql_select_db("$db_name")or die("Cannot select DB");      
 
 
        $department = mysql_real_escape_string($_POST['department']);      
        $username = mysql_real_escape_string($_POST['username']);   
 
        $sql=mysql_query("SELECT `Department`, `Username` FROM `tbllogin` WHERE `Department` = '{$department}' AND Username = '{$username}'") or die(mysql_error());   
        $ct = mysql_num_rows($sql);   
 
        if($ct == 1) {   
// IM guessing this means that the user is valid.   
$_SESSION['loggedin'] = true; // now that the user is valid we change the session value.   
            $row = mysql_fetch_assoc($sql);     
 
            $_SESSION['username'] = $row['Username'] ;  
            $_SESSION['department'] = $row['Department'];  
 
            $Departments=array('Accounting', 'Engineering', 'Finishing_Goods', 'HRAD', 'MIS', 'Packaging_and_Design', 'Production', 'Purchasing_Logistic', 'QA_and_Technical', 'Supply_Chain');  
 
            if (in_array($row['Department'], $Departments)){  
                    header ('Location:company.php');  
            }else{  
                    echo "Incorrect Username or Department";  
                    header ('Location:index.php');  
            }  
        }  
?>

and this is my code in calendar page:

Code: [Select]<?php
session_start();
$host = "localhost";
$username = "";
$password = "";
$dbCnx = mysql_connect($host, $username, $password) or die('Could not Connect to the database');
$dbName = 'dspi';
mysql_select_db($dbName); 
?>
 
<html>
<body>
<script>
FUNCTION goLastMonth(month, year){
// If the month is January, decrement the year
if(month == 1){
--year;
month = 13;
}
document.location.href = '<?=$_SERVER['PHP_SELF'];?>?month='+(month-1)+'&year='+year;
}
//next function
function goNextMonth(month, year){
// If the month is December, increment the year
if(month == 12){
++year;
month = 0;
}
document.location.href = '<?=$_SERVER['PHP_SELF'];?>?month='+(month+1)+'&year='+year;
}
function remChars(txtControl, txtCount, intMaxLength)
{
if(txtControl.value.length > intMaxLength)
txtControl.value = txtControl.value.substring(0, (intMaxLength-1));
else
txtCount.value = intMaxLength - txtControl.value.length;
}
function checkFilled() {
var filled = 0
var x = document.form1.calName.value;
//x = x.replace(/^\s+/,""); // strip leading spaces
if (x.length > 0) {filled ++}
var y = document.form1.calDesc.value;
//y = y.replace(/^s+/,""); // strip leading spaces
if (y.length > 0) {filled ++}
if (filled == 2) {
document.getElementById("Submit").disabled = false;
}
else {document.getElementById("Submit").disabled = true} // in case a field is filled then erased
}
</script>
<?php
//$todaysDate = date("n/j/Y");
//echo $todaysDate;
// Get values from query string
$day = (isset($_GET["day"])) ? $_GET['day'] : "";
$month = (isset($_GET["month"])) ? $_GET['month'] : "";
$year = (isset($_GET["year"])) ? $_GET['year'] : "";
//comparaters for today's date
//$todaysDate = date("n/j/Y");
//$sel = (isset($_GET["sel"])) ? $_GET['sel'] : "";
//$what = (isset($_GET["what"])) ? $_GET['what'] : "";
//$day = (!isset($day)) ? $day = date("j") : $day = "";
if(empty($day)){ $day = date("j"); }
if(empty($month)){ $month = date("n"); }
if(empty($year)){ $year = date("Y"); } 
//set up vars for calendar etc
$currentTimeStamp = strtotime("$year-$month-$day");
$monthName = date("F", $currentTimeStamp);
$numDays = date("t", $currentTimeStamp);
$counter = 0;
//$numEventsThisMonth = 0;
//$hasEvent = false;
//$todaysEvents = ""; 
//run a selec statement to hi-light the days
function hiLightEvt($eMonth,$eDay,$eYear){
//$tDayName = date("l");
$todaysDate = date("n/j/Y");
$dateToCompare = $eMonth . '/' . $eDay . '/' . $eYear;
if($todaysDate == $dateToCompare){
//$aClass = '<span>' . $tDayName . '</span>';
$aClass='class="today"';
}else{
//$dateToCompare = $eMonth . '/' . $eDay . '/' . $eYear;
//echo $todaysDate;
//return;
$sql="select count(calDate) as eCount from calTbl where calDate = '" . $eMonth . '/' . $eDay . '/' . $eYear . "'";
//echo $sql;
//return;
$result = mysql_query($sql);
while($row= mysql_fetch_array($result)){
if($row['eCount'] >=1){
$aClass = 'class="event"';
}ELSEIF($row['eCount'] ==0){
$aClass ='class="normal"';
}
}
}
return $aClass;
}
?>
<div id="Calendar_Event">
<table width="350" cellpadding="0" cellspacing="0">
<tr>
<td width="50" colspan="1">
<input type="button" value=" < " onClick="goLastMonth(<?php echo $month . ", " . $year; ?>);">
</td>
<td width="250" colspan="5">
<span class="title" style="color:#FFFFFF"><?php echo $monthName . " " . $year; ?></span><br>
</td>
<td width="50" colspan="1" align="right">
<input type="button" value=" > " onClick="goNextMonth(<?php echo $month . ", " . $year; ?>);">
</td>
</tr>
<tr>
<th>M</td>
<th>T</td>
<th>W</td>
<th>T</td>
<th>F</td>
<th>S</td>
<th>S</td>
</tr>
<tr>
<?php
for($i = 1; $i < $numDays+1; $i++, $counter++){
$dateToCompare = $month . '/' . $i . '/' . $year;
$timeStamp = strtotime("$year-$month-$i");
//echo $timeStamp . '<br/>';
if($i == 1){
// Workout when the first day of the month is
$firstDay = date("N", $timeStamp);
for($j = 1; $j < $firstDay; $j++, $counter++){
echo "<td>&nbsp;</td>";

}
if($counter % 7 == 0 ){
?>
</tr><tr>
<?php
}
?>
<!--right here--><td width="50" <?=hiLightEvt($month,$i,$year);?>><a href="<?=$_SERVER['PHP_SELF'] . '?month='. $month . '&day=' . $i . '&year=' . $year;?>&v=1"><?=$i;?></a></td>
<?php
}
?>
</table>
</div>
<div id="New_Event">
<?php
if(isset($_GET['v'])){
if(isset($_POST['Submit'])){
$sql="insert into calTbl(calName,calDesc,calDate,calStamp) values('" . $_POST['calName'] ."','" . $_POST['calDesc'] . "','" . $_POST['calDate'] . "',now())";
mysql_query($sql);
}
$sql="select calName,calDesc, DATE_FORMAT(calStamp, '%a %b %e %Y') as calStamp from calTbl where calDate = '" . $month . '/' . $day . '/' . $year . "'";
//echo $sql;
//return;
$result = mysql_query($sql);
$numRows = mysql_num_rows($result);
$check1=mysql_query("SELECT * FROM tbllogin WHERE Username='xxx' AND Department='HRAD' AND Permission='True'");
$check2 = mysql_fetch_array($check1);
if($check2['Username']=='xxx' && $check2['Department']=='HRAD'){
$_SESSION['isallowed'] = $check2['Permission']; 
 
//if (mysql_num_rows($check)>0){ 
?>
<a href="<?=$_SERVER['PHP_SELF'];?>?month=<?=$_GET['month'] . '&day=' . $_GET['day'] . '&year=' . $_GET['year'];?>&v=1&f=true">Add Even</a><a href="<?=$_SERVER['PHP_SELF'];?>?month=<?=$_GET['month'] . '&day=' . $_GET['day'] . '&year=' . $_GET['year'];?>&v=1&f=true">t</a><?php
}else{
echo 'You cannot Add New Event';
}?>
</div>
<div id="Cal_Event">
<?php
if(isset($_GET['f'])){
include 'calform.php';
}
if($numRows == 0 ){
echo '';
}else{
//echo '<ul>';
echo '<h3>Event Listed</h3>';
while($row = mysql_fetch_array($result)){
?>
<h5><?=$row['calName'];?></h5>
<?=$row['calDesc'];?><br/>
Listed On: <?=$row['calStamp'];?>
<?php
}
}
}
?>
</div>
</body>
</html>

In this calendar code in all user the add event link was appear. I want is only inuser xxx the add event was appear and the rest user i want that when they try to click the date and want to add event the message "You cANNot add event" will appear.

I hope somebody can HELP me..

THANK you

597.

Solve : plogspot template compatibility problem?

Answer»

Hi,

I'm a newbie in using xml. I'm building a new blog but I faced the following PROBLEM:

I liked the attached template but I faced compatibility problems w/ it.

It runs well in firefox ,but it has a problem w/ IE 8. The semi-transparent green in the snap-shot does not appear in IE.

Firefox snap-shot


IE 8 snap-shot


I found the code of the WIDGET and I noticed that it is different in IE and Firefox.

In firefox:

.widget-content{
  padding: 15px 20px 15px 20px;
  margin:0px 20px 0px 15px;
  background: rgba(84, 137, 5, .50);
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  font-size:14px;
  border-radius: 20px;
  color:#ffffff;
}

===============
In IE:

.widget-content{
  margin:0 20px 0 15px;
  padding:15px 20px;
}
  background:none repeat scroll 0 0 rgba(84, 137, 5, 0.5);
  -moz-border-radius:20px 20px 20px 20px;
  font-size:14px;
  border-radius: 20px;
  color:#FFFFFF;
}


When I TRIED using the IE code in firefox, the problem appeared and when I did the reverse nothing changed in IE.


Please, tell me how to solve this problem.

thanks and SORRY for prolixity.


[recovering disk space - OLD attachment deleted by admin]

598.

Solve : Positioning, resizing random bg image?

Answer»

I think I'm almost done with a stupid gag PRESENT for my friend. I want his head on top of a random dancing image. My only problem is that I can't get the dancing IMAGES positioned correctly bcuz they're all different sizes. In an array, how would I add unique size properties without killing the entire effect. PS At least let me know if it looks funny. THANKS! :-)


Code: [Select]<script type="text/javascript">
window.addEventListener?window.addEventListener('load',function()
{
ray.rand('thisCell');
},false):
window.attachEvent('onload',function()
{
ray.rand('thisCell');
}); // FF : IE1

var ray=
{
bgArr:['url(http://i40.photobucket.com/albums/e250/jonsan32/gifpalaced38.gif) bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/ani4.gif)  bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/peoples_4461.gif) bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/agdance10.gif) bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/dancing17.gif) bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/shskeletonz.gif) bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/dancing22.gif) bottom no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/lion-king-01-gif.gif) bottom no-repeat'], // Background you wish to show on the cell
rand:function(el)
{
var num = Math.floor(Math.random()*this.bgArr.length);
this.getID(el).style.background=this.bgArr[num];
},
getID:function(el){RETURN document.getElementById(el);}
}
</script>
<table height="245" width=113>
  <tr>
    <td id="thisCell" valign="top"><img src="http://i40.photobucket.com/albums/e250/jonsan32/lunapic_128389578832483_2.gif"></td>
  </tr>
</table>figured it out myself

in CASE anyone needs it:
Code: [Select]
<script type="text/javascript">
window.addEventListener?window.addEventListener('load',function()
 {
 ray.rand('thisCell');
 },false):
window.attachEvent('onload',function()
 {
 ray.rand('thisCell');
 }); // FF : IE1
 
var ray=
{
bgArr:['url(http://i40.photobucket.com/albums/e250/jonsan32/gifpalaced38.gif) 48% 63% no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/ani4.gif)  43% 56% no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/peoples_4461.gif) 14% 70% no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/dancing17.gif) 41% 57% no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/shskeletonz.gif) 45% 74% no-repeat','url(http://i40.photobucket.com/albums/e250/jonsan32/dancing22.gif) 55% 71% no-repeat'], // Background you wish to show on the cell
rand:function(el)
 {
 var num = Math.floor(Math.random()*this.bgArr.length);
 this.getID(el).style.background=this.bgArr[num];
 },
getID:function(el){return document.getElementById(el);}
}
</script>
<style type="text/css">
/*Transparent Tables*/
table, tr, td {background:transparent; border:0px;}
table table table {background:transparent;}
table table table td {
background-color:transparent;
</style>
<table height="322" width=204>
<tr>     <td id="thisCell" valign="top"><center><img src="http://i40.photobucket.com/albums/e250/jonsan32/lunapic_128389578832483_2.gif"></td></center>   </tr>
</table>
Thanks for the update.

599.

Solve : HTML 5?

Answer»

What do you think about HTML5 ?
and do you know what browsers support it at the moment ?Firefox 3.6 supports most of its features. Plenty more answers here: Goooooooogle

I think it's the way forward anyway so it must be a good thing.i think that the video tag is great ! printer cartridges
I didn't know what the deal is with HTML 5 video is so I looked it up. Here's what onlinevideo. net says about it:

"What’s particularly interesting about HTML5 is that it contains a video tag that enables browsers to natively play back video within the page, obviating the need for plug-ins like Flash, Silverlight, and QuickTime. HTML5 was quietly progressing and flying below the radar until Apple introduced the iPad without support for Flash, with video playback accomplished via HTML5. This created a firestorm of interest, and the inevitable Flash vs. HTML5 arguments."

I guess if Firefox ends up supporting HTML 5 video and viewers would be able to download the video SOMEHOW that could be good. As it stands, it looks like downloading HTML 5 video is a problem where it is enabled (if I understand correctly).
i think that once html5 becomes part of the standards it will work with all browsers QUOTE from: silverpersian on September 17, 2010, 05:39:45 AM

i think that once html5 becomes part of the standards it will work with all browsers

it is part of the standards. Otherwise, FF probably wouldn't already have support for most of it's features.

it's a matter of the browsers playing catch-up. It's better this way. Before browsers were adding features that weren't in teh standard, like OBJECT tags and APPLET and BLINK and other cruft, and then they would have to decide at some point which of these stupid retarded and often OS-specific features would make the cut as a standard. This often took years. Heck, Tables were a de facto standard that didn't even officially exist as part of HTML for years and yet were implemented by nearly all browsers at the time, and only later actually added as a de juere standard with well defined rules. Before that they just sort of made it up as they went along.

Remember the absolute MESS that was working in web design in the days of IE4/NS... and... whatever other browsers there were back then? even between those two browsers it was like trying to capture a SHAVED greased up gorilla to get a page working right. They both essentially had their own set of standards (being that most of the "standards" were de facto). the browser compatibility nowadays between the major players- IE, FF, Chrome, Opera, and others, is a mere sliver compared to the absolute hellish experience it was trying to get a page working in all browsers when there essentially no standard* by which you could follow.

Nowadays, thankfully, the standards are created they are implemented, so we actually end up with stuff that is in general well thought out, not garbage spur of the moment "hey wouldn't it be cool if there was a tag/attribute for" crap made by one of the developers of a browser on a random whim (I'm looking at you blink,marquee,animate,audioscope,bgsound,blackface,bq, etc.)


*OK,so there <WAS> a standard, but if you followed the standard all you'd have is a drab boring page, with no javascript, CSS, and using only very basic tags and attributes. Trying to create a page that looks good using them is like trying to sculpt Michelangelo's Davis using Oven Mitts stuck on the end of barbecue tongs, or trying to grow watermelons in easter grass- the best you can hope for is a huge mess. Quote from: kpac on August 20, 2010, 07:14:25 AM
Firefox 3.6 supports most of its features. Plenty more answers here: Goooooooogle

I think it's the way forward anyway so it must be a good thing.
Did any of you visit http://html5test.com/, one of the links in that Google search list?  Try it.  I got a score of 139 with Firefox 3.6.10 and a score of 27 with IE8.  So, Firefox seems far ahead of IE in this regard.

Google Chrome 5.0.375.126 scores 197. Not sure if that's the latest version.

In fact, I know it's not, I recall some hubbub in some forums about google chrome hiding the http:// part of the uri, so it's probably an older one. One would imagine the latest version fares even better.

Anybody have IE9 Beta to see what score it gets?

BC: Chrome 6 Is the Latest I think

I like the idea of the video tag - No flash so there will be less slowdowns.  I don't hate flash but it gets on my nerves some times, especially fully flash websites  I have Chrome 6.0.472.55 installed on my laptop with Win Vista. It scored 217.  An update to version 6.0.472.62 is available but I have not installed it yet.
600.

Solve : AJAX in actionscript?

Answer» HI i am making a flash file that SENDS a ajax REQUEST then once RECEIVED it uses JSON to convert it into an object. once that has done it displays the objects on the flash document (its got a clock on it so it has to send the request repeatedly)

how would i send it form action script?