Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Background Colour Not Showing


I need to use a coloured background for a page which contains tables. Using
Frontpage 2k I can create the background colour OK and it views correctly;
but when viewed using apache, there is no background colour, it is just
white.




View Complete Forum Thread with Replies

Related Forum Messages:
Change Background Colour
I want to display my query results using alternate background colours like the screen shot attached. Code:

View Replies !
Calender Change The Background Colour
im have made a calender that i want to tie into a sql database , and depending on the value in the database will change the background colour of that day in the calender, the problem im having is with the following:

$colour = "#FF0000"; // this is just to test whether the background colour changes
$cal_event_opentd = "<td align=center bgcolor=#<?php echo $colour;?><b>"; 

but for some reason the backgroud doesnt change,can anyone tell me where im going wrong.

View Replies !
Background Alternating Colour Code
Im having problem making my background alternate between colors.  Following is my code, the result alternates 2 colors ok, but prints each entry from my database 30 times. Code:

View Replies !
Use Session Variables To Pass The Background Colour Of A Page
I am trying to use session variables to pass the background colour of a page loaded into a frame using session variables. I declare tyhe colour in the main page which loads first, this is the content in the main page and echos OK.

$_SESSION['content_color'] = "#E9E9E9";
echo $_SESSION['content_color'];

However if I echo the session variable in my loaded page in another frame I don't get anything at all.

View Replies !
How To Update Form Input Field Background Colour On Validation Error
I have been searching for form validation scripts for ages and all th ones that I like are far too complicated and inflexible so I decided to stick with my own which is easier to understand.

The only thing I don't like which i have seen on better form validation scripts is that and fields with errors are highlighted.  i can only presume that they have used php to set the background color of the input field or textarea.

How would I add some code to change the background colour of form elements if an error is found? Here is my code which validates the form but doesn't change form elements colours. Code:

View Replies !
Row Colour
I have a table and would like the row to change colours. The table uses two colours white and green. The frist row in the table should be green then white then green then white and so on.

How would i go about doing this thanks. I am using while() tio get the rows and storing it in a variable.

View Replies !
Table Row Colour
I have a table and would like the row to change colours. The table uses two colours white and green. The frist row in the table should be green then white then green then white and so on.

How would i go about doing this thanks. I am using while() tio get the rows and storing it in a variable.

View Replies !
Convert HEX Colour To Rgb
Im trying to convert a hex ref to rgb to use with the gd image manipulation. try:

$rgb = chunk_split('ff0000', 2);
// convert hex values to decimal
$r = hexdec($rgb[0]);
$g = hexdec($rgb[1]);
$b = hexdec($rgb[2]);
echo($r);
echo($g);
echo($b);

gives:

15150

where id expect 25500

View Replies !
Selecting Colour Problem
I have a dynamic part of the page where the user can select what colour they want the bottom and top table colour to be, the thing is, on the bottom part of the table i have my advertisment link, which if someone is cunning enough they could make the colours the same colour as the link in an attempt to hide the advertisment PHP Code:

View Replies !
Colour Top 3 Results In A Table
I'm currently trying to make a poker league whats seem to be going well.

I have populated a table with the league results, but would like 1st position in gold, 2nd in silver and 3rd in bronze. These will be the first three rows of the table, as the data has already been arranged in the correct order.

I'm a little unsure how to go about doing this, and wondered if anyone could point me in the right direction. Code:

View Replies !
Changing Text Colour
i had this script down but have modified it, somewhere along the way and can't see where, what i had was, if there were messages in the users inbox the word "Inbox" would go red, if there were unread messages in there the "Inbox" would go blue if there were no messages it would simple be black Code:

View Replies !
Cell Colour Change!!!
I am trying to change the colour of a cell depending on what page the
user is on..

I have View.php the is loaded into every page!

This is what I was trying to do but I got no clue how it goes

If page is "home" Then cell colour should be blue
If page is "register" Then cell colour should be Red
If page is "contact us" Then cell colour should be yellow

View Replies !
Changing An Images Colour
I have an image containing 3 colours. Is there anyway using PHP i can change these colours, one at a time, to whatever colour is selected via a dropdown menu?

View Replies !
Change New Topic Colour
I just installed a mod and now when theres a new post made somewhere, when your on the mainpage instead of it just telling you who posted it and the date, it now tells you who, were and the date. Heres a preview of it:

http://img210.imageshack.us/img210/6...ictitle1lm.jpg.

View Replies !
Make A Colour Transparent
I would like to do is grab an image, determine what colour is at a certain pixel (maybe 10, 10) and then set that colour to transparent for the whole image. Basically it is so that I can dynamically place an image on various backgrounds for previewing. I am not worried about perfection (anit-aliasing, matte, etc).

View Replies !
Comments Php Script Colour Change
i have just got a free php comment script of the net. but the defualt theme is black text on white back ground.

Wile on my web site i have a dark back ground and white writing, so after many hours of php code readying and learning i have finaly managed to change most of the text into white exept for the last 3 text pices.

1. the "Name/ tilttle" of the comment/s

2. the "date and time" of when the comment was posted

3. the " comment/ text" which the user posted

from what i have found i belive i need to set the colour in this part of the script here but everything i have tryed hasnt worked.

1.  $COM_LANG['header'] = "Comments";

2.  $COM_LANG['months'] = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

3.  not sure where the code is for this :| i have just started with php.

View Replies !
Alter Font Colour Within Text Box
I have been trying to change the font colour within a text box. I have used a hidden box with echo but want to display within the box to continue the theme of my forms. I am stuck and been trying different methods, but with no joy any help would be greatly appreciated. current code this not working is PHP Code:

<? echo "";
if ($percentage >= 87.5) {
    $color = '#00FF00'
} elseif ($percentage >= 37.5) {
    $color = '#ff9900'
} else {
    $color = 'red'
}
?>
<input type="text" name="percentage" value="<? echo '<b style="color:' . $color . '">' . $percentage . '</b>' ?>">...

View Replies !
Replacing A Colour With An Other In A Truecolor Picture
would anyone know the most efficient way to replace a colour with an other in a truecolor picture?

For the moment, I'm doing it manually, looping though the pixels and using imagecolorat() to test the pixel and imagesetpixel() to change its colour if needed, but it's slooooow: a 900x800 picture takes 10 seconds or so to convert one colour, and I will need to convert up to 50 colours.

View Replies !
Colour Selected Columns Using Sessions?
i have this code that creates all these columns using checkboxes,

if (isset($_SESSION['checkbox2'])) {
fwrite($handle,'<td><xsl:value-of select="county_UA"/></td>'."
");
}
if (isset($_SESSION['checkbox3'])) {
fwrite($handle,'<td><xsl:value-of select="pop_code"/></td>'."
");
}

<td><xsl:value-of select="county_UA"/></td>
<td><xsl:value-of select="pop_code"/></td>

i want be able to have the ability to give the user to colour the columns they require using dropdownlist for the fields and radiobuttons for colours: Code:

View Replies !
How Do You Change The Colour Of A Menu Drop Down?
Could somone please help me with changing the colour of a default menu dropdown? The border / dropdown arrow. Code:

View Replies !
Cell Colour Based On Field Data
I have a mysql database and i am using php to display some field data in a table cell on a page. The field data is either 'failed' or 'passed', how can i make the cell colour change depending on the field data result?

View Replies !
Paste Colour Coded Scripts Into This Forum?
i noticed alot of people paste their scripts colour coded, what editor do you use to do this? I have PSPad but I dont think it has the feature of copying script with forum colour tags...

View Replies !
Image(jpeg) Upload & Resize Loses Colour?
I am uploading an image to a server and resizing the image then saving it to a directory,I had it working fine on my local machine (windows) but when i uploaded the code to the server (linux) - same directory structure etc, it didnt work the colour appeared to be removed from the image, as though the number of colours in the image was reduced to 2 or 4 or something?

has anybody come accross similar problems with GD or image functions in php?

View Replies !
In Background
Here's my situation. I'm creating a website (basically a store) and in the admin section users will want to download zip files of images or products added in the last 7 days, last 2 weeks and the last month.

I have scripted a cron to run every 24 hours to zip all the images and this process takes over 1 minute (there's over 6,000 images!!) and the size of this is 250MB. This has now taken me to my quota on my webspace of 500MB (including all the individual images)

I have decided the only way to do this is dynamically create the zip when the user requests it. As PHP times out after 30 seconds it needs to do it's stuff in the background and display a message saying something like' We'll email you with the zip file in 5 minutes or so'.

View Replies !
Run In The Background?
I have a script on my website that takes a long time to run, and it's slowing down my pages. Theres nothing I can do about the wait time on the file.

Is there a way to use include or fopen or anything along those lines, to have it execute my file in the background; without having the file that's executing it waiting for it to finish its thing? Or to have the expected output redirected to another file (as mentioned in http://ca3.php.net/manual/en/function.exec.php)?

View Replies !
Running Background Job...
Is it possible to get a php3 script to check what day it is, and then do some stuff, If it’s let’s say Monday?
This without you doing anything. Like a background - or cronjob…
I guess you would use perl or something to do this, but that is not an option I have.

View Replies !
Background Processing
What is the technique you use for background processing? Like when user submit a task, the user could then wait for the result by email or through a result page.

I'm wondering how would they do that?

View Replies !
Background Color
I am totally baffled by what is happening in my code. I have a section
of code (shown below with two comment lines inserted). They are
essentially identical text boxes (names and variables different). Yet,
the first comes up with a white background and the second comes up with
a yellow/gold background....

View Replies !
Run Process In Background
I want to run process from my php script in background.
I try different functions from functions list but all of them whaiting for
process ending. How can I run `wget -b ...` and finish my script, but wget must still working? I use PHP5, Linux, Apache2.

View Replies !
Background Processes
I'd like to know how to send an external process to the background, so that I can run multiple instances of the same process at one time. Any tips, links.. etc?

View Replies !
Php Running In The Background?
In order to run a php script - do I need to access it via a browser? Is there a way to write a php script and let it run from the shell in the background?

View Replies !
Running Php In The Background
I am trying to run a php executable (GTK) from a browser... now exec() does the job, but the browser hangs waiting for the .exe I have just called to finish, I assume so it can 'report back' to exec(),

any ideas how I can get around this ? - I have tried backticks,passthru,system,exec - all with the same results, i.e. they all expect a returned value and sit around waiting for it. This is a windows app so /dev/null wont help & it is not a CGI with output I can dump anyway.

View Replies !
Run A Php In The Background Using Http
i have a script (script1) which needs to call another script (script2).
It should not wait for the answer, so script2 should run in the background.

I really need to call the php script using:
http://urlof myscript/script2.php

I don't want to use it as a cgi and use CLI.

I did a test with fsockopen and curl and a timeout of 10 seconds and call
http://urlof myscript/script1.php from my browser:
Script1 stops after 10 seconds => OK
Script2 has been called by script1 and continue to run in the background
=>OK
After 60 seconds Script2 is killed by php!! => KO :(

The script is working fine if i call http://urlof myscript/script2.php from
my browser. It needs around 120 seconds to finish.

Why is it stopping after 60 seconds when I use fsockopen and call it from
script1?

Here is the script in SCRIPT1:
$fp = fsockopen("$host", 80, $errno, $errstr, 30);
stream_set_timeout($fp,10);
if (!$fp) {
echo "$errstr ($errno)<br />
";
} else {
$out = "GET $path HTTP/1.1
";
$out .= "Host: $host
";
$out .= "Connection: Close

";

fwrite($fp, $out);
$status = socket_get_status($fp);

while (!feof($fp) && !$status['timed_out']) {
echo fgets($fp, 128);
$status = socket_get_status($fp);
}
fclose($fp);
}

I have added this in SCRIPT2:
ignore_user_abort(FALSE); // becareful, FALSE really means it should ignore
user abort !!!
set_time_limit (120);
ini_set("max_input_time",120);
ini_set("max_execution_time",120);

Do you have any idea?

View Replies !
Background Refresh
I am using php_move_file to upload some files to the server. I want to
be able to support large files. But the Apache settings is that after
90 sec. the connections resets. This becomes a problem with large
files (slow links). Is there anyway to write a script that would
refresh in the background....

View Replies !
A Way To Get Current Background?
I have several websites running on a global script. Some pages, the backgrounds black, other, white. Sometimes people have the taste of posting black font on a black background, or white font on a white background.

What I wanted is to know if theres a way to 'check' the current background color? Because I can then add in the script to 'change' any incorrect colors before posting. I'm not sure if theres a way for PHP to tap into CSS and check, but it would be alot easier to change the global script since its *Checking* for the background color rather then me do it per site and change it manually.

View Replies !
Background Redirection
I need to create a redirection from a php page to another, without having a web browser opened.

Imagine that you make a php starting via command line or cron job, then your php is running in background and no web browser is open on it. How can this php (from the background, with no web browser opened) call (trigger) another php? please note that I'm not talking about include.

I need that the background php gives control to ANOTHER php url . per what I tested the php 'header' command does not work and obviously also any javascript redirection cannot work because there is no web browser opened. so, finally, how can that php running in background call another php url?

View Replies !
Using SWF Files As Background
Im not sure if it posilbe, but im trying to get a SWF file as the background of my page, but the swf file is dynamically named.  Its like a gallery and when a user clicks on the lick to that file, it displays the image /swf.  but i want the file to appear as the background. code:

echo "<body background = '".$POST['file_name']."'>";

ii have 3 files so far.  file1, 2, 3 .swf.  and i can easily view each one as a seperate file, and they work once i embed them as images. is this my php code, or do i have to look at my browser to display the swf as BG..?

View Replies !
Background Running
I have a php script. It basically fetches data from MySql DB, processes it, and updates the results back in the Database. There are some 18k rows in the DB. The processing involves querying some remote servers.

What is the MOST efficient method to run the script in background ?

View Replies !
Random Background In PHP
Not sure if this can be done in PHP but I'm looking at giving users an option to choose a background image from a list ie when they click on a url it changes. If you click on the links to change of scene on the left hand column, you'll hopefully see what I mean.

Can this be done in PHP? I've tried googling it, searching on various forums but can't seem to find anything..

View Replies !
Background Tasks
I'm using some weather rss feeds in a web site. The feeds are updated once every hour and cached in a local file. My problem is that every time the weather report is updating I get a long wait (not that long.. 2 or 3 secs) before the page is displayed.

This happens becauses the teplate engine that parses the page is waiting for the weather section to be parsed and cached. Is there a ay I can start the weather parsing as a background thread and return immediatly to the template engine to continue to parse the page? And if so How?

View Replies !
Background Image
i created a calendar in php. i have this calendar displayed on another php page (index.php).

i added a background image to the calendar. it displays fine on the calendar alone but it won't display as a background image when i display it on index.php.

View Replies !
Run PHP-Script In Background
I am using php 5.0.4 under IIS 6 under Windows Server 2003 and want to
run a php-script as a separate process. This schript dies not have any
output. I tried several variants without success:

exec("c/php5/php.exe path/to/script parameters &") will run the schript
but will wait until the schript finished processing.

exec("c/php5/php.exe path/to/script parameters > null &") gives me the
error message "The specified CGI application exceeded the allowed time
for processing. The server has deleted the process."

Dealing with other variants of php cli procesors like php-win.exe gave
the same result. Also trying to use the start command did not help. My
head is burned out, what else could run my script under this
environment?

View Replies !
Transparent Background
i'll try to explain myself the best i can, here is the problem:

i have a html page and inside this i want to put an iframe that contains a php page. That's ok, i can do it and it works, but the problem is that i can't make that php document to have transparent background.

it turns white. Is it because of the iframe? the php document has transparent background, but when i see it inside the iframe it doesn't work.

View Replies !
Sleep() In The Background
how much the sleep() which is set to no limit can consume the system resource. Could it cause to hang the server? I tried the following and couldnot see the server got busy. Although the browser seemed to be so, if I access to a different page, it responded very quick as usual. It's not a big deal, is it? sleep.php PHP Code:

<?php
set_time_limit(0);
sleep(0);
?>

fork_sleep.php

PHP Code:

<?php
$str = "php -f sleep.php";
exec("$str > /dev/null &");
?>

View Replies !
Set Background Color
I am designing with flash and am sending variables on the end of a url to a php document which also contains a swf - I want to tell the php file what color to make the background in the html section I have:-

<body bgcolor="<?php echo $bgcol">>

I've tried moving the quote marks around but nothing seems to work - I also use php in the title and that is working fine - is it because it is inside a tag or something or do I have the wrong syntax?

View Replies !
Repeating My Background
i have a problem with repeating my background yet not haveing 2 images show. what is wrong in this code:

<style type="text/css">
<!--
html {
background-image: #FFFFFF url(http://www.runnerselite.com/images/linedown.jpg);
background-repeat: repeat-y;
background-position:0px 155px;}

body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
background-image: transparent url(http://www.runnerselite.com/images/line.jpg);
background-repeat: repeat-y;
background-position:15px 0px;


View Replies !
Execution In The Background
I want a php script to be executed in the background when the admin presses a button in an application which is running on a Linux environment. This page execution will take a long time(Maybe 16 hours).

There I want the window in which the administrator presses the button to display logs of the background executing script after this script has been started. How do you go about acheiving this?

View Replies !
Background Process
I would like to create a script that acts like a background process. Basically once every hour, it will access a website, gather data from it, and write that data to a file on a remote server. The PHP code would be running on this same server. Is this type of non user activated, constantly running code possible?

View Replies !
Table Background
I know this is a php forum but since i hang out here more than anywhere else i was hopping you guys could help me out. i just started this site today but i am trying to get this background picture in the table on the right to keep from repeating:

http://box1.no-ip.info/rpm

like i said i just started today so its nothing impressive at all. also the entire content will be driven by a cms engine im working on so what you see in that link is just hard coded for now.

View Replies !
Background POST
how I can perform a background POST on a UNIX system using PHP. I don't know much about what a background POST actually is, so ANY information would be helpful. I'm trying to pass 5 variables to a particular URL and was told that a regular HTML Form POST wouldn't work, and that I had to use a background POST.

View Replies !
$_POST In Background
if it's possible to send post variables using php w/o changing the page (no i dont mean post to the same page).

I have a site I want to post some variables to that returns xml which I parse and use in my script but i'm not sure if its possible to send the POST variables behind the scenes so it stays on my site.

View Replies !
Task On A Background
I have a script that inputs/updates db from submitted form. I just added another code that sends email messages to a number of users that may be affected by the posted information. I put this script right before in run a db query and it's basically a loop that matches appropriate accounts and sends an email. Depending on how many accounts are affected it may take a little while before the pages returns back to the original one with the form. I was thinking that perhaps I could take the email script and put it into a separate page and trigger it at the same time.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved