I try to place text on image, but have "color" problems.
code:
$im = imagecreatefromjpeg( 'test.jpg' );
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 0, 20, $white, './fonts/times.ttf', 'text text
text' );
ImageJpeg( $im, 'test_out.jpg' );
i.e. I want to have 'white'
Hi Geoff,
You cant do this with php... you will have to use JavaScript for opening
a new window. You could write the function in the html of your page.. or
use echo " and call this function in your links, in your
php script.
Best regards,
Davy Obdam
Geoff Lists wrote:
H
Since PHP executes server side and not in the browser, you may want to
resort to something that runs in the browser, like Javascript, which PHP can
output as part of the html it feeds to the browser.
check out http://www.hotscripts.com/ for lots of handy examples of how
Javascript opens an additio
php-general Digest 10 Feb 2003 06:30:22 - Issue 1874
Topics (messages 134948 through 135013):
Re: any windows php developers out here?
134948 by: rush
134960 by: Victor
134972 by: Victor
134990 by: Lee W
Re: Alternating Row Colors in PHP
13494
Hi,
I'm relatively new to php and neither of the books I am using for
reference mention anything about controlling a child window.
What is the correct syntax to:
open window( width, height, menu, scrollbars) and position it on the
screen?
Any help would be gratefully and humbly accepted I need
I am having trouble in resizing the image. What I am trying to do is letting
people upload images of any dimension, and with the aid of my script after
having uploaded, it renames the file, from this new file I'll get the size
and resize it to predefined format 360x240 or 240x360 and this is the no
SELECT DISTINCT(gallery.design) FROM gallery
:
>
>I want to limit to 1 the same names returned from the query like:
[CUT]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Hello,
>
> Can anyone help me with this simple query:
>
> I want to limit to 1 the same names returned from the query like:
>
>
>
> FROM:
>
> SELECT gallery.design FROM gallery
>
> buffet
> buffet
> buffet
> buffet
> barstools
> barstools
> barstools
> barstools
> barstools
> bar
Hello,
Can anyone help me with this simple query:
I want to limit to 1 the same names returned from the query like:
FROM:
SELECT gallery.design FROM gallery
buffet
buffet
buffet
buffet
barstools
barstools
barstools
barstools
barstools
barstools
barstools
barstools
tables
tabl
working :)
On Sun, 9 Feb 2003, Troy May wrote:
> Just a quick test. I just re-signed up for this list after a 3 week
> vacation and I haven't seen even one message yet. So, reply if you get it
> please so I know this is working.
>
> Thanks,
> Troy
>
>
> --
> PHP General Mailing List (http://www
Just a quick test. I just re-signed up for this list after a 3 week
vacation and I haven't seen even one message yet. So, reply if you get it
please so I know this is working.
Thanks,
Troy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 10 February 2003 08:45, Joshua Moore-Oliva wrote:
> How would I go about setting the error reporting level?
google > 'php error reporting level'
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intrane
On Monday 10 February 2003 08:36, David T-G wrote:
> Hmmm... I haven't yet been able to download it, but I was pointed to a
> live page (tech.indymedia.org/publish.php3) only to find that it has
> multiple boxes for multiple files, which I can already do. Nothing that
> allows multiple files wit
How would I go about setting the error reporting level?
Josh.
On February 9, 2003 06:38 pm, David Eisenhart wrote:
> yeh, I'd agree with this; on your second issue of variable definitions I do
> find that being able set the error reporting level to show non critical
> errors (such as undefined va
On Monday 10 February 2003 05:56, Gurhan Ozen wrote:
> You need to specifye the MAX_FILE_SIZE value as a hidden argument to the
> form..
> See: http://www.php.net/manual/en/features.file-upload.php
You don't.
If you can show otherwise please post details to the list.
--
Jason Wong -> Gremlins
Gurhan, et al --
...and then Gurhan Ozen said...
%
% Hi David,
Hi!
% I know that there is an php application doing multiple file uploading at
% once which is open source..
Cool!
% The application is san franscisco indymedia's news publishing system.
% You might wanna download it at: http:/
Chris Hayes wrote:
>
> At 23:09 9-2-2003, you wrote:
> >you may find the following link interesting
> >http://www.tek271.com/articles/JavaOrPhp.html
> >
> >David Eisenhart
> I cannot suppress the feeling that someone out there has a slight prejudice
> in favour of Java!
God yes, the guy seems to
pleasure Leo, happy php'ing !!
"Leo Spalteholz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ah! thank you very much. Thats exactly what I was looking for.
>
> Leo
>
> On February 9, 2003 01:49 pm, David Eisenhart wrote:
> > yes, you can call a static meth
"Chris Hayes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 23:09 9-2-2003, you wrote:
> >you may find the following link interesting
> >http://www.tek271.com/articles/JavaOrPhp.html
> >
> >David Eisenhart
> I cannot suppress the feeling that someone out th
yeh, I'd agree with this; on your second issue of variable definitions I do
find that being able set the error reporting level to show non critical
errors (such as undefined variables) to be a reasonable, although non ideal,
compromise; php's still a great language to work with most respects though
The only thing I do wish is that there was a way to force php into a typecast
mode... and possibly a setting to reqiure a definition for a variable.
Josh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
very interesting link. While some of the cases where he takes java to
be the winner are simply personal preference, I do agree with most of
his conclusions.
Best points are the one about declaring variables(3), declaring
constants(6), using libraries(7), class member scope(17), and
exception h
I was wondering if anyone knew of a drop-in replacement function for
session_decode(). I am having problems with the session_decode() function
populating the $_SESSION array with bogus or corrupt entries. I'm using PHP
4.3.0.
Thanks in advance.
Uchendu Nwachukwu
www.unnndunn.com
--
PHP Genera
hi
i'm using imap_open for opennig mailbox on the server where the script
is and everything is ok. I want also to open my mailbox on the other server
but script is behaving in a strange way. I looks like it's unable to open
that account but it is not giving me any error message.
I not sur
ah! thank you very much. Thats exactly what I was looking for.
Leo
On February 9, 2003 01:49 pm, David Eisenhart wrote:
> yes, you can call a static method on a class by specifying the
> class name, then 2 colons and finally the function name:
>
> classname :: functionname([arg,.])
>
> (of
You see, I ran a sample script. I typed in the username and passwords to
connect. It fails if I have a password entered. If I leave it blank, it
works...
- Original Message -
From: "Thomas Seifert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 5:24 PM
Subject
"Erich C. Beyrent" <[EMAIL PROTECTED]> wrote in message
008d01c2cfa3$fc752630$0a64a8c0@wolf">news:008d01c2cfa3$fc752630$0a64a8c0@wolf...
> Hi everyone,
>
> A quick question about html tags and PHP. I have a text area where users
> can submit text, and I need them to able to have links in the text
"Victor" <[EMAIL PROTECTED]> wrote in message
01c2cfc7$b6ecd0d0$237b7018@JUMPY">news:01c2cfc7$b6ecd0d0$237b7018@JUMPY...
> Hello, I am wondering if any of you got a reliable php and MySQL
> installation (MySQL is easy) I am mostly wondering if there is a point
> in tying to use windows as
phpMyAdmin has an option to "reload mysql" too.
It won't work until that is done.
Where did you get the idea, that the username worked?
It just tells, that access has been denied ... the same message
would be sent if the user didn't exist at all!
Thomas
On Sun, 9 Feb 2003 12:40:12 -0500 [EMAIL
At 23:09 9-2-2003, you wrote:
you may find the following link interesting
http://www.tek271.com/articles/JavaOrPhp.html
David Eisenhart
I cannot suppress the feeling that someone out there has a slight prejudice
in favour of Java!
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
In my application I'd like the user to be able to return to a page that
they have had to leave in order to register or log-in to the
application. (It's a sort of shopping cart)
The URL contains a couple of items of data in the query string.
I figure there are two options (and let me know about
fwrite($handle, $new_info\r);
as quoted above would indicate $new_info\n as been a variable..
try
$new_info .= "\n";
fwrite($handle, $new_info);
this will add \n to the end of the string before you write it...
hope this helps
-
Chris K
Hi John:
Well actually I believe that you don't have to set MAX_FILE_SIZE...(I
don't)
but you might want make sure that you are not trying to send a file
larger than the post_max_size directives in php.ini and ensure that
file_uploads is set to allow http uploads.
On Sunday, February 9, 2003, a
Hello,
Yep, me again, with yet another php question.
Maybe I'm too tired to see the easy solution...
I open a file and write to it:
$handle = fopen ($temp_file, 'a');
fwrite($handle, $original_info);
fclose ($handle);
Later I want to add to the above file:
$handle = fopen ($temp_file
you may find the following link interesting
http://www.tek271.com/articles/JavaOrPhp.html
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi David,
I know that there is an php application doing multiple file uploading at
once which is open source..
The application is san franscisco indymedia's news publishing system.
You might wanna download it at: http://tech.sfimc.net/download.php and
scrutinize the source code.. I am very sure th
If anyone has got PHP to print to a remote printer please
Could you direct me to some examples or anything that would help me
understand this a bit more .
Thanks in advance
-
Chris Kay
Techex Communications
Website: www.techex.com.au
Hi Adam,
I am not sure if my solution will work for you, because i don't know
anything about your language, so i couldn't be sure of the results of
the test:)
You can get around that program by encoding the html page..
Add this lines between your head tags on the html pages:
And see if it wil
At 22:49 9-2-2003, you wrote:
yes, you can call a static method on a class by specifying the class name,
then 2 colons and finally the function name:
classname :: functionname([arg,.])
(of course properties can not be accessed by such methods)
ah ok, cool
--
PHP General Mailing List (http
Hey Ernest.
This looks like the solution I'll need to make my CF interface work in PHP.
I'll check it out.
Thanks!
--Noah
- Original Message -
From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
To: "CF High" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 6:3
yes, you can call a static method on a class by specifying the class name,
then 2 colons and finally the function name:
classname :: functionname([arg,.])
(of course properties can not be accessed by such methods)
David Eisenhart
"Leo Spalteholz" <[EMAIL PROTECTED]> wrote in message
[EMAI
At 22:18 9-2-2003, you wrote:
Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++
but I'm having a few problems finding info on this issue.
Does PHP support something like static functions in Java?
afaik the answer is no, but please do not rely on my pitiful opinion. I
only us
Hi,
You need to specifye the MAX_FILE_SIZE value as a hidden argument to the
form..
See: http://www.php.net/manual/en/features.file-upload.php
Gurhan
On Mon, 2003-06-30 at 15:05, John M wrote:
> Hello,
>
> I have the code below. It's a simple file upload. But it doesn't work.
> Before the line
Hello everybody,
I am interested in designing a site with a shopping cart. I have several
years of programming experience in php and perl, but I have never made a
shopping cart.
I was looking into some of the already made shopping carts and was wondering
what peoples' experiences have been wit
Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++
but I'm having a few problems finding info on this issue.
Does PHP support something like static functions in Java?
for example in Java I can write:
public class someClass {
public static void someMethod() {}
}
and t
> So I guess I al looking to finding out what I need to configure IIS to
> to get the ISAPI module to work, etc.
1. Unzip the php .zip file to C:\php\
2. Copy c:\php\sapi\php4isapi.dll to c:\php\php4isapi.dll
3. Ensure the user IIS runs as, generally IUSR_, has read
permissions to C:\php\ and al
Justin Mazzi said:
> Can anyone tell me how to use an object within an object. Example
>
>
> class blah {
> var $test;
> var $test2;
>
> function test() {
> $this->do();
> }
>
> }
>
>
> then you want to use that class in a new one.
>
>
> class blah2 {
> v
At 22:00 9-2-2003, you wrote:
Hello,
How do search engines react to PHP pages? If every page of a
site has a .php extension will search engines not react well to that?
If it does, is there a possible way to handle tracking sessions with
php, without being punished by the search engines?
Hello,
How do search engines react to PHP pages? If every page of a
site has a .php extension will search engines not react well to that?
If it does, is there a possible way to handle tracking sessions with
php, without being punished by the search engines?
Steve
--
PHP General Maili
No, you can output the directly.
echo "This spansmultiple lines. The newlines will beoutput as well.";
Martin Purdy wrote:
Thanks for your prompt answer.
I think that sounds very likely, but do I have to break out of PHP, and
send a every time I need to send a linefeed?
Martin Purdy
-
use html instead of \n
or
echo nl2br("This spans\nmultiple lines. The newlines will be\noutput as
well.");
Best Wishes
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: "Martin Purdy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February
How do you use the output on a webpage then?
Martin
"Leif K-Brooks" <[EMAIL PROTECTED]> skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My guess is that the new lines are there, but since you're (most likely)
> outputting HTML, you don't see them. Take at look at the br H
Hi Davy Obdam,
>[...]
> My question is what would be the best approach to achieve this? How is
> this usualy done?
Storing the password in encrypted form in a database. The confirmationmail
you can write with the normal mailcommand using addslashes. The securest way
if the password was randoml
Hello everybody. I need some help. Please, look at www.vba.sk, you can see a
little encoding problems. It is because the server/php is working in win1250
charset and mysql database in 8859-2. Is there any possibility, how to
convert php to 8859-2 or mysql to win1250. thanx.
--
PHP General Maili
Can anyone tell me how to use an object within an object. Example
class blah {
var $test;
var $test2;
function test() {
$this->do();
}
}
then you want to use that class in a new one.
class blah2 {
var $test;
var $test2;
I beleive move_uploaded_file is prefered since copy won't work in Safe Mode.
Andrew
- Original Message -
From: "Max 'AMiGo' Gashkov" <[EMAIL PROTECTED]>
To: "PHP General list" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 6:09 PM
Subject: [PHP] Files upload
> Is there any differen
Hello people.,
I am developing a website with a user login system, i would like to send
an confirmation e-mail to the user when he/she registers for the site,
asking for confirmation...for instance click on a link to activate thier
account.
My question is what would be the best approach to achi
Kk, I got it to work in apache 2.X on redhat 8.0 all I had to do is
start apache from the directory it resides in and then it work sfine,
but I will try your notes also and get it working on windows too.
Thanks, I'll see if I have more problems...
-Original Message-
From: John W. Holmes [m
Is there any difference between using
move_uploaded_file(...
or
if(is_uploaded_file...
...
copy(
(security hazards etc.)?
WBR, Max 'AMiGo' Gashkov
[EMAIL PROTECTED] ]=[ http://diary.otaku.ru/amigo
Distributed.net participant [408228][RC5-72]
--
PHP General Mailing List (http:/
My guess is that the new lines are there, but since you're (most likely)
outputting HTML, you don't see them. Take at look at the br HTML tag.
Martin Purdy wrote:
>Hi everybody
>
>I am totally new to PHP, and I have a problem with the Print statement.
>When I send a newline using "\n" nothing ha
Hi everybody
I am totally new to PHP, and I have a problem with the Print statement.
When I send a newline using "\n" nothing happens.
I cannot get any linebreaks into my code.
The following line is copied from the PHP Manual, and is sopposed to give me
the text split into 3 lines, but they come
Very nice John.
I'm quickly learning the utility of MySql Date and Time objects.
I used to have to write a ten line script to format the date; now, I can use
this:
SELECT DATE_FORMAT(mydate, '%a %M %d, %Y') and I'm done.
Thanks a bunch for your help, John.
I might even write an effiicient appl
Alright, alright, everyone, I could get away with this in Cold Fusion, but
not in PHP.
The simple example I gave is part of a more complex problem, however.
Here's the deal:
Let's say I have a form that requests the season schedule of a baseball
team, and the team in question has twenty schedule
I do not know why so many developers use the "-character (double quote)
instead of ' (single quote) in php/html-scripts.
Much easier is:
function admin_menu() {
echo " Meny ";
echo "Medlemmar";
.
You do then not have to worry about all backslashes.
And single quote is w3c html-standard j
I'm not sure how except through shell which isn't enabled. Even if I didn't
reload it, why would the username work but the password not?
- Original Message -
From: "John Nichel" <[EMAIL PROTECTED]>
To: "Stephen Craton" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Sunday, F
Did you reload MySQL after you added the new user?
Stephen Craton wrote:
It's me again, trying to get some more help.
My boss is hosting sites now for games and I need some help with setting up
phpMyAdmin privelages for certain MySQL users and such. Right now, my
problem is setting up a new MySQ
It's me again, trying to get some more help.
My boss is hosting sites now for games and I need some help with setting up
phpMyAdmin privelages for certain MySQL users and such. Right now, my
problem is setting up a new MySQL username and password.
I add a new user in phpMyAdmin, I type in the det
i got it tnx...
while(whatever){
//record code here
//and echo $counter
$counter++}
- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: "Sunfire" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 2:14 AM
Subject: Spam: Re: [PHP] incromenting $counter in a whloop
> This
"Cf High" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the
Here is an example how to do it with TemplateTamer:
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3538
same co
It works reliably. I have used Abria Merlin form abria soft to install
apache, php, mysql, and various utils on my machine. It is single install
that installs without problems. The php version inside is a bit dated, but
you can later on easily replace it once everything is connected and working
pro
php-general Digest 9 Feb 2003 15:07:01 - Issue 1873
Topics (messages 134933 through 134947):
Class Interfaces
134933 by: Laborda
134940 by: Justin Garrett
134947 by: rush
Re: How to uncompress PHP
134934 by: David T-G
Data Structures
134935 by: Labor
"Laborda" <[EMAIL PROTECTED]> wrote in message
005201c2cfe9$47c704b0$ad629c40@galaxy">news:005201c2cfe9$47c704b0$ad629c40@galaxy...
>
> Hello,
>
> I have a question.. Does PHP have support for Class Interfaces
declaration?
> What in Java would be:
>
> ? If not, how can I do this?.. Thanks a lot.
W
At 04:43 09.02.2003, Laborda said:
[snip]
>Does anyone know where can I find information about data structures
>implemented in PHP. I need to find something about Linked Lists, implemented
>in PHP.. If anyone has any info, I'd appreciate it. I've tried to goo
At 04:52 09.02.2003, CF High said:
[snip]
>In this test form when I submit and insert into my db, only the last select
>field get entered; i.e. in this case the day value of 25.
>
>
>
>Year
>
>2002
>
>
>Month
>
>12
>
>
>Day
>
>25
>
>
>
>
>
>
>Why
74 matches
Mail list logo