I hate to put a url in but there are some choice words in the extract.
You may have come accross it before but if you are a sys admin u should read this.
It's funny unless u know the guy i suppose.hell it's just funny!
Its a reply email after the guy was given some helpful advice on installing
Hiya,
How can i draw a new tr AFTER FIVE td in the following loop
(i want to echo the records in 5 columns width tables whatever the number
of
records will be fetched)
..
echo 'table';
while ($myrow = mysql_fetch_array($sql))
{
echo $myrow[0];
}
echo '/table';
regards
$i = 1;
echo 'table
Hiya,
How can i draw a new tr AFTER FIVE td in the following loop
(i want to echo the records in 5 columns width tables whatever the number
of
records will be fetched)
..
echo 'table';
while ($myrow = mysql_fetch_array($sql))
{
echo $myrow[0];
}
echo '/table';
regards
my isp lets me control crontab so i've been trying to
run a php script every 30 mins.
the command is like this:
lynx - dump http://www.mysite.com/test.php
which gives the error
lynx: Start file could not be found or is not text/html or text/plain
what do i telll my isp to do to get lynx to
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.testsite\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^[^.]+\.testsite\.com$
will this match http://www.user.testsite.comand http://user.testsite.com
sorry.i have no way to test this myself.i'm trying to help out my
make sure there is no whitespace before first ?
- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:34 AM
Subject: Re: Fw: [PHP] question about Location
Put your code that takes care of the post before the line 2,
add nl2br() to make it look pretty e.g
span
?
$mem = join('', file('index.htm'));
$mem = htmlspecialchars($mem);
$mem = nl2br($mem);
echo $mem;
?
/span
- Original Message -
From: Roman Duriancik [EMAIL PROTECTED]
To: PHP-General [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 11:53
thats xhtml - it's xml comliant html.
tags must be closed so a tag like hr which didn't
have a closing tag is written hr /
so,for example in php the nl2br() function now produces
br / instead of the old br
- Original Message -
From: Victor [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
to do it with javascript u could post the form to
another local page with a form with hidden fields -
send the mail and use onload= to post the second form.
would be a messy way to do it but would work.
adrian murphy
- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Dan
Hi,
the following code redirects www.usersite.mysite.biz to
www.mysite.biz/users/sites/usersite
the problem is when the 'www' is left out it doesn't work.
could someone help me to fix this?
many thanks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.mysite\.biz$
whats wrong with this.
it's getting stuck somewhere
function urls_clickable($string) {
for($n=0; $n strlen($string); $n++)
{
if(strtolower($string[$n]) == 'h') {
if(!strcmp(http://;, strtolower($string[$n]) . strtolower($string[$n+1]) .
strtolower($string[$n+2]) .
relax friend.i was just asking
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Adrian Murphy [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 2:08 PM
Subject: Re: [PHP] whats wrong with this function
Yes, your problem is it doesn't work
:05 PM, Adrian Murphy wrote:
whats wrong with this.
it's getting stuck somewhere
Somewhere isn't very helpful. When asking for help be sure to include as
much
information as possilble.
Laying out your code so the structure can be seen...
?php
function urls_clickable($string)
{
for($n=0
hi,
how come when i make a dir thus
mkdir($basedir,0777);
cute can't then chmod or delete said dir.
also vice versa : when i create a dir with cute
with 777 access php can't do anything with it.
it's very annoying.
whenever a URL like
mysite.com/thumbnails/funny/4
i called the thumbnails.php is excuted, in which you
I think if you call it thumbnails.php it won't work.
however if the script is simply called thumbnails then it'll
work.of course you then must make sure that 'thumbnails'
is parsed as php.do
Hi all,
firstly: i know nowt about search engines/crawlers spiders really.
i'm giving users fake sub-domains i.e
www.username.mysite.com gets redirected to www.mysite.com/users/sites/username via
mod_rewrite/wildcard dns
so i'm wondering if search engines will have any trouble indexing those
Hi,
my isp has set up an internal redirect that
resolves www.mysite.biz to www.mysite.com
how can i check if the request was for the .biz version.
thx
to the root of the domain.
-Jared
-Original Message-
From: Adrian Murphy [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 17, 2002 9:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] apache redirect and request
Hi,
my isp has set up an internal redirect that
resolves www.mysite.biz
Hi,
anyone know/done good php training courses in london
thx
adrian
The ? in this senario is called the ternary operator
basically shorthand for an if/else statement e.g
$theValue = ($theValue != ) ? ' . $theValue . ' :NULL;
is the equivalent of
if($theValue != ) {
$theValue =$theValue ;
}
else{
$theValue =NULL;
}
- Original Message -
From: Jeff Field
anyone have a recommendation for a good free/cheap load testing utility for php/mysql
sites?
thanx
adrian
Hi,
I use wildcard dns to point all requests at the root e.g
whatever.mysite.com goes to root etc.however i'll like to redirect these requests to
mysite.com/users/sites/whatever
so what do i put in the .htacces file bearing in mind that i want requests just for
mysite.com to be left alone.
Hi,
I use wildcard dns to point all requests at the root e.g
whatever.mysite.com goes to root etc.however i'll like to redirect these requests to
mysite.com/users/sites/whatever
so what do i put in the .htacces file bearing in mind that i want requests just for
mysite.com to be left alone.
Hi,
my isp uses wildcard dns to point to the root.
I want to put a .htaccess file in the root to
repoint the wildcard requests to a sub-folder but
leave the normal request alone.
plese help or tell me an article i can read(i've looked but haven't found
one specifically dealing with this.)
adrian.
Hi I'm creaating my wishlist for my php build for my isp.
I've got the usual stuff gd/ftp/xml etc and was wondering
what else should i ask for e.g. i've never used pear but it might be useful? curl etc.
or use javascript href=javscript:form.submit()
or if you really wanted you could encrypt the variable
pass it via the url and then decrypt it on the next page!
to avoid a reload put no-cache in the header.
- Original Message -
From: Daniel Alsén [EMAIL PROTECTED]
To: PHP List [EMAIL
This seems strange to me but i promise it's happening.
I'm dynamically creating images for a page ,calling them so:
img src=butonn.php?string=hello
I'm also preloading the mouseover versions.
the problem is that the images are not being preloaded:
javascript problem you say?
the strange thing is
of database updating
involed in the site and i'm wondering should i use mysql(i am at the moment).
any real world examples of the performance of mysql?I know it's great for selects.
Thanx
adrian murphy
just use an input type=hidden and call it submit,thats what i do
- Original Message -
From: jtjohnston [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 28, 2002 5:32 AM
Subject: Re: [PHP] if(isset($submit))
So I can forget using type=image :(
Wah, it's not
Hi,
I'd like to implement a system whereby people have a subdomain on my site like so:
yourname.mysite.com
I've been reading the apache docs that say you can do this via virtual hosts.
Can I do it so 'yourname' can be anything - where all requests are sent
to the same page where i can parse the
button.php
?php
Header(Content-type: image/gif);
$string=str_replace(%20, , $string);
$theimage = images/ . $button ..gif;
$im = imageCreateFromgif($theimage);
$white = ImageColorAllocate($im, 255, 255, 255);
$font = /fonts/VERDANAB.TTF;
$box = imagettfbbox ( 12, 0,
I was wondering if it's possible to centre text precisely on
an image.I'm thinking I need to get the width of of
the string in pixels?,take this away from imagesx(image) and
devide by 2 to get x value.
so has anyone achieved this?
: center text on image
If you're using GD2, try looking at ImageTTFBox() and ImageFTBox().
They'll
give you the coordinates for a bounding box around the text. Use them in
relation to the image to center it properly.
J
Adrian Murphy wrote:
I was wondering if it's possible to centre text
Hi dublin php people
here's a 1 month contract i can't do.
PHP /MySQL Vacancy
Many thanks for registering your details with us during this last 12
months . I have outlined below details of an urgent PHP/MySQL contract which
you may be interested in.
If you feel the role is suitable please
use str_replace() instead of ereg_replace() ...in the same way described
- Original Message -
From: brendan conroy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 11, 2002 9:15 PM
Subject: [PHP] Novice question - please help
Hi,
THANK YOU for reading this.I would
Hi,
I'm using the code in the manual to draw text on a png.
but Its not working - ImageString() works but not ImageTTFText()
I uploaded arial.ttf from windows to fonts/ folder
Any Ideas:
as a side note: PNG's - any real disadvantage to using them
instead of gifs - not withstanding the
i get 'Could not read font in..'
i set permissions to 777 on both file and folder
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, February 12, 2002 2:36 AM
Subject: RE: [PHP] image generation issues
when
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Adrian Murphy' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, February 11, 2002 6:36 PM
Subject: RE: [PHP] image generation issues
when you say it doesn't work, do you mean that you get an error message
or
it just
: Re: [PHP] image generation issues
Hi
Some of MS fonts wont work, try downloading some freeware fonts.
Tom
At 01:24 PM 2/12/02, Adrian Murphy wrote:
tried everything suggested and still get 'could not read font' oh well
thanx.
- Original Message -
From: hugh danaher [EMAIL
I'm afraid you'll have to run your upload script as a cgi.
try adding this to the top of your page:
#!/usr/bin/php
you'll probably have to change the file extention to .cgi and put the script
in your cgi-bin
(not sure about that).
you should change ISP ,unless it's a free one you're using.
isset() function
- Original Message -
From: James Bartlett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 12:43 PM
Subject: [PHP] Help with a variable
Hi,
Is there some way that I can check to see if a variable is present?
e.g.
if (variable is not present)
{
set
maybe i don't undestand correctly but try:
$string = str_replace(br,\\n,$string);
i.e escape the escape character \\n
- Original Message -
From: Chad Day [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 06, 2001 4:38 PM
Subject: [PHP] addslashes problem ..
I have to use
anyone got a simple threaded message board where the poster doesn't have to
login but can leave there name. OR anyone modified the nuke forum so
anonymous users can leave their name?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I can't solve your problem but here's an alternative javascript that
works in both IE/NS
so u might want to give it a try:
www.eudos.com/temp/onchange.htm
hope it works.
- Original Message -
From: Carfield Yim [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 09, 2001 11:46
should work(works for me).probly something simple.
?php
function conn(){
$db = mysql_pconnect("localhost", "" ,"");
mysql_select_db("database",$db);
return $db;
}
$db = conn();
$result= mysql_query("select * from table",$db);
while($myrow=MySQL_fetch_array($result))
{
I use a login script with the header() function and $PHP_AUTH_USER etc.
the problem is once i've logged in once ,i refresh the page i stay logged
in.
i want to do testing with different privileges so i want to be asked for a
username
and password each time i've refreshed the page.I thought
Certain dll's i try to use simply refuse to work.
php.ini is edited correctly.
php_ftp.dll works
php_gd.dll don't
php_ldap.dll works
php_oci8.dll don't(with oracle 8i personal inastalled)
etc.
whats going on.all the requiste dll's are in the right folder.
--
PHP General Mailing List
allegedly this works,but i haven't tried it and can't remember where i got
it but i used google,of course:
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
id=ebusiness width=191 height=174
first i'd set up phpmyadmin.
http://www.phpwizard.net/projects/phpMyAdmin/
it' great and really easy to use for you mysqldb.
once you've done that.there's a useful tutorial on webmonkey for what u
need.
http://hotwired.lycos.com/webmonkey/00/05/index2a.html?tw=programming
g'luck
- Original
try this article:
http://www.phpbuilder.com/columns/marknold20001221.php3
though i must admit i couldn't get it to work on windows.
- Original Message -
From: Federico Ragazzoni [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 9:24 AM
Subject: [PHP] Newbie
anyone using this class:
whats a good way to extact the address of who sent the mail and stick it in
a variable,in order
to reply?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
In relation to this class:
if i want to let users send an attachment,do i have to first upload the file
to the server?
- Original Message -
From: Ankur Verma [EMAIL PROTECTED]
To: kaab kaoutar [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, February 21, 2001
i'm sorry,i just had to share this with people who'd understand.
we've just secured clients who are m$ affiliated and they insist
everthing be done with asp.
excuse me while i go off for a little cry.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
How legal is this?
can u use it on a website?
free?
- Original Message -
From: Robin Vickery [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 15, 2001 10:46 AM
Subject: Re: [PHP] currency conversion
"c" == christian [EMAIL PROTECTED] writes:
does anyone know of
I'm putting togeather a simple website buider app.
i'm allowing users to upload images.I'm wondering whether i should store
those images in a database or create dirs for each user.the mysql db has a
relatively small capacity but storing them to the db might make it simpler
for me.
also ftp
Hi,
I'm creating a little app whereby people will be able to create a simple
site for themselves (maybe 10 html pages).
here's the problem:
say their company is called "companyname" and my site is called
"www.mysite.com" i'd like their site to be located at
"http://www.mysite.com/companyname"
hey,
since u are slecting multiple options you'll have to use an array
here's how.i u need explanation,feel free to mail me:
?
if ($select==""){
print"
form method=\"post\" name=\"select\" action=\"test.php3\"
SELECT MULTIPLE NAME=\"select[]\"
Option VALUE=\"Chocolate\"Chocolate/Chocolate Chip
57 matches
Mail list logo