Did you register just to plug this?
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 9:02 PM
Subject: [PHP] OT- "Private Registrations" for Domains
> Has anyone heard of or used somthing like this, just received this notice
from my reg
Floyd,
if you are using mysql then you can use the mysql_list_fields to get the
names of the mysql table's column (field) names, then do mysql_num_fields to
get the number of columns (fields), then fill the columns with whatever
using a while loop.
I've attached a php page that fetches this info fr
mp and offset). Finally, if
you're planning on storing the data in a database table, each table will
need to be created on the fly--it can be done, but if you're struggling with
this, it'll take you some time to get the back end working.
Hope this helps,
Hugh
- Original Mes
Not sure how to supress the warning message that PHP automatically does
when you haven't got a valid URL though.
should be able to surpress errors by adding an * before the result variable
*$fp = fopen($linkdata['linkurl'],"r");
Hope this helps--or even works for this particular problem.
Hugh
Yes I did. Thanks.
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 2:30 AM
Subject: Re: [PHP] Test links?
> On Sunday 01 December 2002 15:33, Hugh Danaher wrote:
> > Not sure how to supre
put
if (!isset($blocker))
{
your form goes here
within your form add
print "
end your form
}
With this, your input form is on the page when the page first loads (and
$blocker is not set), but disapears when the data is submitted and the page
reloads. Even if the us
why
'.$table.'
and not
'".$table."'
with what you've got now, I believe you are looking for
.table name.
instead of
table name
and if your table name is only one word, a good practice I'm told, ditch the
' and " marks entirely
and just
try
$sql = "UPDATE $table_name SET name = '".addslashes($name)."', lname =
'".addslashes($lname)."', mobil = '".addslashes($mobil)."', email =
'".addslashes($email)."', url = '".addslashes($url)."', WHERE id= $id ";
// mysql needs single quote marks ( ' ) around input values that are not
numbers
please post lines 20 and 21, get rid of all @, the comma after url='$url'
and show your most recent code. Others have posted and given you good
advice, you should incorporate their suggestions.
hugh
- Original Message -
From: "Ben C." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wedn
select
> database.");
>
> $sql = "UPDATE user
> SET
> name = '$name',
> lname = '$lname',
> mobil = '$mobil',
> email = '$email',
> url = '$url',
> WHERE id= '$id'
>
> ";
>
> $result =
Shams,
Most database actions you want your user to do should be limited to them
writing to one record and/or updating that one record. If instead you want
to update information on several records, then you'd need a statement like:
$table="your_table_name";
$query=mysql_query("update $table set col
If you have control of the pages the visitor just left, then you should be
able to modify the links there and pass forward a variable similar to the
following.
Then on your receiving page you can check the value of $var and do something
with this info.
Hope this helps,
Hugh
- Original Mes
Eric,
When the page gets reloaded it "forgets' the variables passed to it from the
previous page. Try putting the log in information and anything else needed
in hidden fields in your form.
Hugh
- Original Message -
From: "eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, De
you could start with something like:
$old_string="44 55 99 111";
$new_string=ereg_replace(" ","",$old_string);
echo $new_string;
should display
445599111
There are other regular expression aids listed on the page at:
http://www.php.net/manual/en/function.ereg
Nah, I didn't get it either.
- Original Message -
From: "Roger Lewis" <[EMAIL PROTECTED]>
To: "Martin Towell" <[EMAIL PROTECTED]>
Cc: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, December 17, 2002 10:36 PM
Subject: RE: [PHP] test
> Martin,
> I'm sending too [EMAIL PROTECTED] also.
Devin,
I did a 10 question quiz for a local museum which involved using radio
buttons and automatic advance to the next question. At the end I summed the
correct answers and gave a score. I've wanted to shorten the whole thing
and use a mysql table, but...
The following snip should give you a bit
Try,
$Query="INSERT into calendar (meeting_name, meeting_place, meeting_date,
meeting_note)
values
('$meeting_name','$meeting_place','$meeting_date','$meeting_note')";
Hope this helps,
Hugh
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesda
Al,
Something like the following should enable you to display a list of
whatever, then click on the record id to edit the record. This is a portion
of code which does the display, you'll need another portion to display the
record for editing.
Hugh
snip from street.php
Click on an ID number to ed
If your customer views these items as different products then store them as
separate records in the same table.
My $0.02
Hugh
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 18, 2003 11:55 AM
Subject: [PHP] Multiple sizes for products
Hi all,
You could use the mail() function to automatically send an email to your
user. In the email could be an html page with the same form they'd filled
out plus some hidden input fields which would tell you that they are
updating their stored information. With this, your user gets confirmation
of what
echo("| %s | %s | %s | %s | %s |", $array[id], $array[username],
$array[password], $array[status], $array[notes]);
try
echo "| %s | %s | %s | %s | %s |".$array[id]." ".$array[username]."
".$array[password]." ".$array[status]." ".$array[notes];
dots not comas between variables.
Hope this helps.
Hu
Alex,
Easy to do what you want. Check out the "image" functions in the php
manual. There are some font limitations, specifically dealing with
alternate characters, but you'll find out what works and what doesn't soon
enough.
Hugh
- Original Message -
From: "Alex Shi" <[EMAIL PROTECTED]>
Alex,
You should either use png or jpg rather than gif. The most common builds of
the gd library support those image formats--go to the GD Library site to
find out why. The support of ttf fonts should be taken up with your host.
When testing whether the code in your image creation file works, us
General builds of the GD library don't contain gif support. Visit the GD
site to see what they say about gif support. If you're building a graph
then use png; if an image use jpg.
Hugh
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday,
Diksha,
It's very late in phpland perhaps all the coders have gone out for coffee.
However, perhaps "button" isn't what you want, try radio, submit or
checkbox.
Also, do a google search on html and button to see what's out there.
Cheers,
Hugh
- Original Message -
From: "DIKSHA NEEL" <[EMAIL
Diksha,
A quick google search shows that "buttons" are likely a javascript thing,
not an html or php thing. Also, I agree with Jason Wong in that and tags should be in your script too.
- Original Message -
From: "DIKSHA NEEL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, Feb
A basic html input command using an image will enable you to send the
coordinates of the mouse to the next script.
your x,y variables will become $coordinate_x,$coordinate_y
- Original Message -
From: "Minghua Yao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28,
try ereg_replace(",","",$value);
- Original Message -
From: "Jim Long" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 9:17 AM
Subject: [PHP] strip comma from $value
> Hi,
>
> I've figured out the way to solve my problem is to get rid of the commas
> before I
perhaps you are parsing out the spaces before inserting the vars in the
database?
- Original Message -
From: "Alberto Brea" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 7:58 AM
Subject: [PHP] Spaces collapsed in database
Hi, list
I had certain information in
Add the mysql_error() function to your script and run it again. Could give
you some hint at what is wrong.
$result = mysql_query($query,$connection) or die("Query
failed".mysql_error());
- Original Message -
From: "Diksha Neel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Ma
Help,
I've moved my upload script from one host to another, and what worked once, isn't
working now. In the new site's phpinfo file I see that file_uploads is set to "no
value" and in the old it was "on." What do I tell my system administrator to do to
get this feature enabled?
Thanks for any
and I wonder...
> On Wednesday 05 March 2003 13:37, Hugh Danaher wrote:
> > Help,
> > I've moved my upload script from one host to another, and what worked
once,
> > isn't working now. In the new site's phpinfo file I see that
file_uploads
> >
Rob,
create a mysql table containing usernames and passwords then do something
like the following:
Hope this helps,
Hugh
";
print "log in information";
print "Input your name: ";
print "Input your password: ";
print "";
print "";
}
else
{
call_user_func('mysql_log_in',$db, $table, $user,
move_uploaded_file();
- Original Message -
From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 10:33 PM
Subject: [PHP] I'm lost: text file upload
> Jason, I've already been looking at:
>
> http://www.php.net/manual/en/function.move-u
get your field info from a mysql search then do:
print "".stripslashes($array_result['field'])."";
Hope this helps,
Hugh
- Original Message -
From: "Mirco Ellis" <[EMAIL PROTECTED]>
To: "Php-General (E-mail)" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 6:27 AM
Subject: [PHP] populat
depending on how the text file is organized, this can be an easy task or
impossible. But, here goes:
If a line in the text file contains all the info about the card and is
organized routinely and separated by a special character ("," , ; or tab,
then you should be able to do something like the fo
Actually you can input .GIF files but you can't output in that format on
most php-gd installs. The following script shows most of the steps you're
going to need to get an image resized. This script resizes files already
stored online but it can be changed to deal with a temp file.
Hope this helps
John,
I reread your post, and spent a bit of time to rewrite my last post. This
should be more appropriate for your needs. you'll need to add a few lines
yourself to complete it. Let me know if it works.
hugh
";
$temp=fgets($fp,100);
$card_color=trim(preg_replace("Card Color:","",$temp));
ech
Tony,
You might want to try the online php manual, I hear it's very good.
You should be able to do all of the tasks you desire. Look for "image" in
your search.
Hope this helps.
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March
something like:
print "";
while ( statement )
{
$i++;
if ($i==1) print "";
print "";
your image code;
print "";
if ($i==4)
{
print "";
unset($i);
}
}
if ($i==1) print "";
if ($i==2) print "";
if ($i==3) print "";
print "";
might work
Anthony,
Try:
$file_to_open="http://www.weather.com";;
$fp=fopen($file_to_open,"r");
$contents=fread($fp,1); //reads to eof or ~10K whichever comes first
print $contents;
Hope this helps.
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED
Anthony,
Oh, I forgot to close the file, and it's an important step!
fclose($fp);
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 7:22 PM
Subject: [PHP] newbie: contents will not output
> I'm trying to test the
You might try changing to php?>
something about short tags
hugh
- Original Message -
From: "Karl James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 10:14 PM
Subject: [PHP] help needed with code!!
> Can anyone give me some pointers on why im note seeing
> An
simply:
$var1=99;
$var2=0;
$result=$var1*$var2; multiplication by zero is ok
if ($var2!=0) { //division by zero is bad "!=" means not equal
$result=$var1/$var2;
}
use brackets in complex equations
$result=$var1*(1+$var2);
hugh
- Original Message -
From: "Adriaan Nel" <[EMAIL PROTECTED
some obvious errors:
$submiited on =date(1y-m-d'); // typo on submittedon and the date
format seems off, maybe you're looking for date('y-m-d') .
$query="insert into articles"
(date,submitted,status,title,lead,body,submitted by)
// if the field name is submitted by then you nee
echo""; // in this statement you are
asking that a number be a variable in php and that is not permitted.
try:
for ($i=0;$i<=10;$i++)
{
echo ""; // this way your select name is
"var_name[1]" and not 1
also,
echo "$productCode";
try instead,
echo "$productCode; // no needed here and t
Kevin,
first, change your URL statement to: http://.../test.php?test=1 // the $
is not needed.
second, use $test=$_GET['test'] to get the transferred value into $test.
then, echo $test and see if it works.
Hugh
- Original Message -
From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
To:
if your system suports the commands, try imagecreatetruecolor() instead of
imagecreate(),
and imagecopyresampled() instead of imagecopyresized(),
hope this helps,
Hugh
- Original Message -
From: "Michael P. Carel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003
The following is completely untested but might yield the results you want.
It assigns a value to the skill array, prints the post var, and then (I
hope) advances the array pointer to the next array element:
Good luck, hugh
if (count($_POST['skill'])>0)
{
for ($i=0;$i".$_POST['
In further thought on this, I'm not sure that $_POST['skill'] is an array.
Hugh
- Original Message -
From: "Stephen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 8:47 PM
Subject: [PHP] Checkboxes
> Hi
>
> I am trying to get results form checkboxes on a form.
if the header and footer info come from your config.php file, then you have
to get to that file before it's parsed by the server. Perhaps, splitting
config.php into three files (header.php, config.php and footer.php), then
when you want to print just call the middle file.
if(isset($_GET['print'])
Mo,
"(we haven't found, in our initial research, a way to do this)"
You could format your variables before they're needed in the link
something like:
if(isset($x)) $x_link="&x=$x";
if(isset($y)) $y_link="&y=$y";
etc.
then your link would look like the following
someplace.com
"slug=1" is
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Sebastian" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 11:37 PM
Subject: Re: [PHP] str_replace
> I just though up a better idea,
> put your conditional statements in your in
In the receiving page, change your link from an tag to an then see what the error message says.
Hugh
- Original Message -
From: "Nate" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 2:55 PM
Subject: [PHP] Function or GD problem?
> Function or GD problem...
> I
--
> function ResizeJPG($src) {
>
>global $full_img_url;
>//code below
>
> }
>
> ResizeJPG($src);
> --
>
> Thanks for your help!
> Nate
>
>
> "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL
//When converting an image from gif to jpeg or png, you need to create an
intermediate image the same size as you want output. The following should
work, but it's not tested.
hope this helps,
Hugh
- Original Message -
From: "Patrick Teague" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
try two backslashes to escape php special characters
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 12:33 AM
Subject: [PHP] Ereg sass
I'm not sure why, but I can't include a period in my eregi statement:
[A-Za-
Charles, it sounds like you want the most recent 9 articles ("...order set
to 1 so it shows up first when ..."), so why not something like "select *
from article_table order by id desc, limit 9" [assumes id is int not null
auto_incremented].
You could also increment the value in the field something
Emanuele,
Some parts of the world use the coma as the separator between whole numbers
and decimals (e.g. Germany & France) and php is formating the number
according to this style. I surmise that the numbers stored in your database
have been stored with comas separating the thousands from the hundr
I'm trying to get the following script to ftp transfer an uploaded image file so as to
get around a file permission problem. The upload portion of this works without
problem, the ftp portion doesn't spit out any errors either, but the file transfered
is just the name of the uploaded temp file a
Thanks Jason, I'll try that, and let you know the results. Hugh
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 11:48 AM
Subject: Re: [PHP] File Upload and ftp transfer problem
> On Fr
conn_id, $ftp_user_name, $ftp_user_pass);
// check connection
if ((!$conn_id) || (!$login_result))
{
print "FTP connection has failed!";
print "Attempted to connect to $ftp_server ";
exit;
}
// upload the file
$fp=tmpfile();
fwrite($fp, $file_stream);
rewind($
JP,
Instead of::
global $nome;
global $email;
global $linguagem;
global $browser;
try:
$nome=$_POST['nome'];
$email=$_POST['email'];
$linguagem=$_POST['linguagem'];
$browser=$_POST['browser'];
Hugh
- Original Message -
From: "J. P." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday
Sounds like a Windows configuration issue and not a php issue. There's an
'open using' (or some such) option buried in the windows file menu that will
let you change this.
Hugh
- Original Message -
From: "Anthony Ritter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29,
Scott,
try changing:
print "\t\t$col_value\n";
to:
print "\t\tmailto:".$col_value.";>$col_value\n";
Hope this helps.
Hugh
- Original Message -
From: "Scott Thompson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 8:53 PM
Subject: [PHP] Adding a URL
> Hi,
>
Levi,
Very easy to do exactly what you want using php
1. write your link to a php page (described below) which includes the items
you want stored appended to the link "go to next page"
2. create a php page which contains the following:
Easy enough, but you'll need a form if you want user supp
Matt,
Try something like:
I didn't check this before posting so there could be some syntax issues, but
the flow is what you need. Open a file for reading, read it line by line to
find a text phrase, accumulate the lines (less the one with the phrase) in a
new variable, close the file, open it aga
My bad:
while (!feof($fp))
instead of what I wrote earlier.
- Original Message -
From: "Hugh Danaher" <[EMAIL PROTECTED]>
To: "Matt Palermo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 10:59 PM
Subject: Re: [PHP] delet
Gloria,
Glad to help, but I'd need to see the code that failing.
Hugh
- Original Message -
From: "Gloria L. McMillan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 4:53 PM
Subject: [PHP] Problem Display of data
> Hi, again.
>
> I got one suggestion but it did no
try something simpler and see if it passes:
$SelectQuery="SELECT SUM(GiftSubscriptions) AS GiftSubs FROM Registration";
$Result = mysql_query($SelectQuery) or die("Something died in here!
".mysql_error());
- Original Message -
From: "Kurosh Burris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTE
You might also want to add a "quality" factor to the imagejpeg() function if
the image "as is" looks a bit ratty.
$factor="100" // or another suitable number between 100 and 0
imagejpeg($im, "test/im.jpg",$factor);
hope this helps.
Hugh
- Original Message -
From: "Andrew Chase" <[EMAIL PR
>From reading your post, I believe you've successfully gotten the file upload
to work and now you're interested in using uploaded files (but with smaller
dimensions) on your webpage. What you'll need to do is create a separate
file named resize.php which includes only the following code.
On your
Help!
I am getting the following error message for :
Fatal error: Call to undefined function: mysql_connect() in
/home/www/test.somename.org/aux/db-mod.php on line 34
I have used this call successfully on php v4.0.6, and am now trying it on a new
install (which someone else did, as I haven't
Thanks Edwin, I'll forward your notes to my new host. I also checked the
archives and find that there's an extension=mysql.so snip that needs to go
in the php.ini file, and I'll forward this to my host too.
Thanks,
Hugh
- Original Message -
From: "@ Edwin" <[EMAIL PROTECTED]>
To: <[EMAIL P
IFF they just left one of your other sites, then you should be able to pass
a variable in the other site's header such as:
php.net/function-name?variable=from_somewhere_I_own
if the variable isn't set, then they came from a site you don't own.
or you could send them to a unique function-name wh
What you need to do with the input number is to do an ereg_replace() and
eliminate the commas from the string, then use the string variable where
needed. Then, when you want to display the variable, use the
number_format() function.
Hope this helps,
Hugh
- Original Message -
From: <[EMAIL
Bryan,
I don't think the variable has any value before assignment--it isn't zerro
nor is it null. Check the manual for isset() and empty()'
Hope this helps.
Hugh
- Original Message -
From: "Bryan McLemore" <[EMAIL PROTECTED]>
To: "PHP - General" <[EMAIL PROTECTED]>
Sent: Sunday, November
Paul,
Got any spaces or lines above the "
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 03, 2002 9:53 AM
Subject: [PHP] Am I blind? simple 15 line code producing error
> Perhaps I am blind but I have the following simple code that gets me
> errors:
> session_start();
> require_once ("config.inc
Stephen,
after your line:
>$query = "SELECT * FROM orders WHERE orderid = '$orderid'";
you should add:
mysql_query($query);
in your code line you've just set your variable--you haven't asked mysql to
do anything.
Hope this helps.
Hugh
- Original Message -
From: "Steve Jackson" <[EMAIL
John,
Google search turned up nada. Perhaps it's just a typo.
Hugh
- Original Message -
From: "@ Edwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 10, 2002 11:08 PM
Subject: Re: [PHP] tag
>
> "John Meyer" <[EMAIL PROTECTED]> wrote:
>
> > I'm doing some PHP wo
Try:
number_format()
Hugh
- Original Message -
From: "Sascha Cunz" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 5:37 PM
Subject: Re: [PHP] Subtracting Money
Hi Stephen,
> I'm having a problem. I need to subtract
Good lord they're at it again!
- Original Message -
From: "MICHAEL OSHODI" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 10:51 PM
Subject: [PHP] REPLY NEEDED
ASSISTANCE
WE ARE MEMBERS OF A SPECIAL COMMI
Just do ereg_replace(" ","+",$var) on the receiving end and be done with it.
- Original Message -
From: "Bob Eldred" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19, 2002 11:24 PM
Subject: Re: [PHP] plus sign has changed to space after POST
> I don't believe it has
Tom,
It sounds like the file you want is online someplace. So, perhaps it's
fread() that you want to use. With it, you can get the html output of a
page.
Hugh
- Original Message -
From: "Tom Woody" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 9:28 AM
Subje
Jim,
on the calling page change
echo "\n";
to
echo "something here\n";
Now, when you click on the link, the error message should show instead of
the broken box.
Hugh
- Original Message -
From: "Jim Hatridge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 7:2
Jim,
Regarding "undefined function: imagegif()," It could be that your build of
the "GD Library" doesn't include gif support. You can try replacing this
function with imagejpg() or imagepng(). Imagepng() will likely be faster
and sharper than imagejpg().
Hugh
- Original Message -
From: "J
Are all the variables needed for the function getting into your
call_user_func()? Also, perhaps some aren't set or are being unset outside
your function--say, you are opening a new page and not passing all the
variables to it. The function (which apparently works) isn't getting set
variables. T
try
mysql_num_fields()
Hugh
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 08, 2002 9:54 PM
Subject: [PHP] PHP function for listing number of columns in table
Pardon the probably stupid question but,
Is there a PHP function for listing numbe
what's the matter with using mssql_num_fields() and get the answer directly.
$fields = mysql_list_fields("$db", "$table", $link);
$columns = mysql_num_fields($fields);
Hugh
- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTE
This is certainly not a php question so boil me in oil the next time we meet.
I have a php page which gets a file upload from the user and attempts to put the file
in a remote directory. It is failing big time with the following warning:
Warning: Unable to create '../landmark/photos/8000.jpg':
On Tuesday 11 June 2002 17:04, hugh danaher wrote:
>
> > I have a php page which gets a file upload from the user and attempts to
> > put the file in a remote directory. It is failing big time with the
> > following warning:
> >
> > Warning: Unable to create '../l
Many will tell you that the goto command is extinct. It isn't, it's just
evolved into the function command. What you do now is create a function:
function some_name($variable,$other_variable,...)
{
some code here;
}
then, call it using :
call_user_func('some_name',$variable,$other
You should be able to contain your foreach statement within an if statement:
if (isset($menu))
{
foreach ($sub as $link => $name) (
$sublink .= "".$name."";
}
else
{
print "menu variable not set"
}
Hope this helps.
Hugh
- Original Message -
From: "Dan" <[EMA
- Original Message -
From: "hugh danaher" <[EMAIL PROTECTED]>
To: "Carlos U. Cirello Filho" <[EMAIL PROTECTED]>; "php"
<[EMAIL PROTECTED]>
Sent: Tuesday, June 11, 2002 2:41 PM
Subject: Re: [PHP] GOTO command. Doest it exist?
> Many
- Original Message -
From: "hugh danaher" <[EMAIL PROTECTED]>
To: "Peter" <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 9:53 PM
Subject: Re: [PHP] dynamic water marks?
> You can use the image functions in php/GD to bring up a .jpg or .png image
&
I think you can also use \t to separate the data into the various columns
needed by excel
- Original Message -
From: "Alfredo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 21, 2002 7:55 PM
Subject: [PHP] How to put a "new line" character with fputs($birthday_file,
$conten
Don't know if this helps, but the following works on my system.
Hugh
$width)
{
$nheight=$max;
$nwidth=$width/($height/$max);
}
else
{
$nwidth=$max;
$nheight=$height/($width/$max);
}
//header("content-type: image/jpeg");
$image=imagecreatefromjpeg($picture);
$image1=imagecreate($nwidth,$
imagepng() should work. you can save the file on your server then call it
up wherever you need it.
The manual has more info on using image functions just type in image.
hugh
- Original Message -
From: "Campano, Troy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 24, 200
try double \\ to escape the special characters used by php for variables and
what not. I think I read it here on a previous post.
Hope this helps
Hugh
- Original Message -
From: "Beverly Steiner" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Saturday, June 29, 2002 7:58 AM
f this doesn't help you have to post your code (graphit.php) here so we
can
> look at it.
>
> /Joakim
>
> > -Original Message-
> > From: hugh danaher [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 05, 2002 10:05 AM
> > To: php
> > Subjec
1 - 100 of 237 matches
Mail list logo