Helloppl,
a problem with a file_upload form :-( Here is what I've done so far:
File test.php which has the form is this:
HTML
BODY
?php include("handle_upload.php"); ?
FORM ENCTYPE="multipart/form-data" ACTION="?php print $PHP_SELF ?" METHOD="POST"
INPUT
Helloppl,
I have php compiled with GD support (version1.8 so I have png support). I try
the following code and get a broken image:
?php
header("Content-type: image/png");
$image= imagecreate(200,200) or die("Failed in call to imagecreate()BR\n");
imagepng($image);
$blue =
geColorAllocate($image,0,0,255);
imageRectangle($image, 50, 50, 150, 150, $blue);
imagepng($image); // I MOVE THIS LINE
imagedestroy($image);
?
Hope this will help.
-Tuna-
""Thalis A. Kalfigopoulos"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">n
On Mon, 2 Apr 2001, Thalis A. Kalfigopoulos wrote:
Thank you very much, really appreciate it. But I have to admit that I have an
example from a book in which he creates a gif (and not a png), where he doesn't
actually have to allocate a color. He only has 3 lines which are supposed to work
Is there a webserver (Tomcat?) that supports both servlets/JSP and PHP? If so, is it
possible to have PHP and servlet/JSP code collaborating? I'm looking into using SOAP
(apache project's implementation) but I need some of PHP's functionality.
thanks in advance,
thalis
--
PHP General
On Sat, 23 Feb 2002, Dani wrote:
Hi!
I have just visited a webiste and I have notice that user can't really
see the .php extension at the end of the URL address. And when I look at
the link address it's got 'class=click' .
Could someone help me to understand this please?
td
Anyone have any idea what's wrong with www.phpnuke.org? No response neither yesterday,
nor today :-(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What you could do additionally to syntax check, is to check if the domain they are
giving is existant or not with checkdnsrr(). Still not 100% fullproof though :-(
cheers,
thalis
On Sun, 24 Feb 2002, Steven Walker wrote:
Does anybody know any good ways (or available code) for verifying
On Mon, 25 Feb 2002, Andy wrote:
Hi there,
I am building a web application which is storing pictures.
Is there a limit of files in one directory on LINUX systems? Perhaps it
might end in a problem after having 3 files in the same dir? Performance
issues ore something else.
The
If I send just a line of simple text (like The quick brown fox drowned) for XML
parsing, why doesn't it call the function which I declare for character data handling?
It doesn't even give me an error :-( Is it wrong to have plain text as input for XML
parsing?
cheers,
--t.
--
PHP General
If I send just a line of simple text (like The quick brown fox
drowned) for XML parsing, why doesn't it call the function which I
declare for character data handling? It doesn't even give me an error
:-( Is it wrong to have plain text as input for XML parsing?
Why, as a matter of fact,
OK, I'm getting a bit confused about the well-formedness checking of expat. Doesn't
expat do basic well-formedness checking? If I set empty start/endElement and charData
handlers, and I parse:
elem1
elem2text
/elem1
/elem2
I get an error as expected about mismatched tags.
But if I give:
Dropdownmenu is a select name=ddmenuoption/select
So the php variable that will hold the user's choice is stored in variable $ddmenu.
Thus, no input needed.
cheers,
--thalis
On Sun, 17 Mar 2002, Chuck PUP Payne wrote:
I am trying to get a form to work with pull down menu. But I am so
get that it can't do the query. So I am think it not passing abc...
Chuck
- Original Message -
From: Thalis A. Kalfigopoulos [EMAIL PROTECTED]
To: Chuck PUP Payne [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Sunday, March 17, 2002 9:25 PM
Subject: Re: [PHP] Brain Dead
to php so that it can do the SQL statement.
I don't have $abc in the menu but I do have abc. So I am trying to find out
how to do that. Maybe I am going about it the wrong way.
Chuck
- Original Message -
From: Thalis A. Kalfigopoulos [EMAIL PROTECTED]
To: Chuck Payne [EMAIL
Who knows? It might. Its use is growing rapidly, and it's much easier to
learn. A few years ago the prospect would have been unthinkable, due to
the vastly greater supply of Perl CGI web apps and free libraries in
circulation. These days the advantage is not so strong. And PHP is far
I guess you can do it also as:
([1-9]{3})[1-9]{3}-[1-9]{4}
cheers,
--t.
On Tue, 19 Mar 2002, Kris Vose wrote:
How would you write a regular expression that defines a phone number: ex.
(123)123-1234.
In other words how would you check to see if there were three numerics surrounded by
On Tue, 19 Mar 2002, [iso-8859-1] Jan Grafström wrote:
Hi!
I have read several tricks of how to remove white spaces but how to create
them?
I wan´t to build a normal textmail like this:
$message=
productitemspriceamount
book22550
cd-rom 3
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 5:49 PM
To: Paul ...
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] building a control panel in php
On Wed, 20 Mar 2002, Paul ... wrote:
just thinking about making a small control panel for
On Wed, 20 Mar 2002, Ashley M. Kirchner wrote:
Chuck \PUP\ Payne wrote:
Also I am looking for a php program that was written so that you can do a
BBS, I wanted to use Ultimate Bulletin Board, but they no longer support the
freeware verision, you have to pay almost $500 for it. The
I think you should have register_globals/track_vars set to TRUE in your php.ini
cheers,
thalis
On Thu, 21 Mar 2002, Max Mouse wrote:
I've tried using $HTTP_COOKIE_VARS to get information about the cookie has
been passed to the current script but I always get a cookie size of 1
containing
If you don't give any code, I doubt anyone will be able to help. The error msgs to say
the least.
On Thu, 21 Mar 2002, Laurie Landry wrote:
Hi,
In this example: I'm trying to introduce the selection data from another
table in the database into this form. The form is a simple form where
The problem is in your SQL query.
Try it as:
$sql = SELECT * FROM links WHERE (SUBJECT1='$subject' OR SUBJECT2='$subject') AND
GEOGRAPHIC='$geographic' ORDER BY ORGANIZATION ASC;
The AND operator has higher precendence than the OR, so given that you didn't have
parenthesis, it was
Don't have 1st, but 2nd looks pretty good. It functions both as a manual and as a
reference and most of the recipes have pieces that I'd say correspond to real life
problems.
not much help I guess :-)
cheers,
--t.
On Sat, 23 Mar 2002, Craig Westerman wrote:
Is the second edition much
Use array_splice or better array_slice.
array_slice($orig_array,0,n);
cheers,
--t.
On Sun, 24 Mar 2002, [-^-!-%- wrote:
Use array_pop.
See the manual.
-j
__John Monfort_
_+---+_
P E P I E D E S I G N S
I have PHP4.1.2 with libmcrypt4.2.22. I had a script that worked just fine yesterday
testing an mcrypt scenario, and (of course) today it just kills the httpd serving the
page and I get this in error_log:
[Sun Mar 24 08:31:36 2002] [notice] child pid 1049 exit signal Segmentation fault (11)
Why a regexpr?
Do one explode() on the
Clean up the commas from the elements [1],[2] [3] of the returned array
and on element[0] do an additional explode on -
cheers,
--t.
On Mon, 25 Mar 2002, Cameron Just wrote:
Hi,
I am trying to pull out the following information via a regular
Maybe I'm missing something, but if you mean that you want to add some new
functionality into your PHP module e.g. for the GD image library, then you create the
libphp.so all over again (don't you?)
--t.
On Mon, 25 Mar 2002, Charmaine Tian wrote:
Hi there,
I have my own extension and I
Someone with the proper authority should probably put on the manual pages that to get
the gettext functionality you have to configure with the --with-gettext flag. The
--with-XYZ comes in almost all pages that require an additional flag, so at first I
was mislead into believing it is compiled
There is a utiliti under contrib/ called oid2name which returns the name of the object
given its oid. This will probably help you locate which directories correspond to
which database.
cheers,
--thalis
On Sat, 30 Mar 2002, Robert Abbate wrote:
Greetings to all!
I have a webhosting
On Mon, 1 Apr 2002, Jay Fitzgerald wrote:
I have created a database called friends with four columns:
Name / Address / City / State
I also made an XML file to coincide with those variables:
test
contacts
friends
nameFriend 1/name
Yet another regexpr question.
If I have as part of a text:
...and then 'the quick brown fox jumped over the lazy dog's piano'...
How can I substitute the single quote in dog's with say \'
I want to aply a substitution for only the single quote that is between two single
quotes and leave the
Nop. I don't want to affect the first and last ' of every line.
On Fri, 5 Apr 2002, Rick Emery wrote:
addslashes($textline)
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP
Lookup in the manual about the mcrypt functions
On Wed, 10 Apr 2002, Someone Somewhere wrote:
I'm working on a e commerce site and I need to store the credit card info
of people who purchase stuff, on the site. How can I encrypt the credit card
# put it in a dbase and decrypt it when I
I've used Dietrich's SOAP implementation for PHP and have been able to use only with
specific type of webservices (soap:binding style=rpc... and soap:body
use=encoded...). Unfortunately your service has style=document and use=literal,
so I'm not sure about it.
It can be found at:
I'm trying to get DOMXML to work with PHP4.2.0. I've compiled with --with-dom and
phpinfo() says it's there:
DOM/XML enabled
libxml Version 2.4.18
HTML Support enabled
XPath Support enabled
XPointer Support enabled
The following program though doesn't seem to work:
$xmlstring='a valid xml
On Fri, 10 May 2002, Meir Kriheli wrote:
On Friday 10 May 2002 03:05, Thalis A. Kalfigopoulos wrote:
I'm trying to get DOMXML to work with PHP4.2.0. I've compiled with
--with-dom and phpinfo() says it's there: DOM/XML enabled
libxml Version 2.4.18
HTML Support enabled
XPath Support
Hi again and sorry to pose same question, but I'm about to pull out my hair here.
There were some DOMXML questions in the past 24h but none replied to. Two of us till
now have had the same problem: compiled DOM just fine and see it is there with
phpinfo(); but cannot use its functions[1]. Can
If the file is relatively small, then the easiest would be to use file() which reads a
file into an array
$file_array=file($filename);
$text=$file_array[$line];
cheers,
thalis
On Sat, 11 May 2002, Andrew Conner wrote:
I have a script where I need to get the text from line number $line in
It seems that lots of DOM stuff was added in 4.2.1! Still I can't seem to see the
namespace definition attributes of an element.
The code:
$xmlstr='?xml version=1.0?element xmlns:ns1=http://www.ns.com/ns1/;
attr=value/';
$domdoc=domxml_open_mem($xmlstr);
$root=$domdoc-document_element();
It seems that lots of DOM stuff was added in 4.2.1! Still I can't seem to see the
namespace definition attributes of an element.
The code:
$xmlstr='?xml version=1.0?element xmlns:ns1=http://www.ns.com/ns1/;
attr=value/';
$domdoc=domxml_open_mem($xmlstr);
$root=$domdoc-document_element();
In an associative array, there is no notion of the 'n-th' element. So AFAIK you can't
do that.
cheers,
thalis
On Wed, 15 May 2002, Robert Rothe wrote:
I've created an array. A very simple array that uses strings as keys.
aname['one']=something;
aname['two']=something else;
Isn't
On Fri, 17 May 2002, peter tatischev wrote:
What is the type of array returned by child_nodes()?
I have an XML doc parsed into a DOM structure by
$docnode = domxml_open_file(blah)
then I get root by
$root = $docnode-document_element();
then I get the first node
$f_child =
I'd suggest you go for FPDF, a free PHP class for generating PDF files fast easy.
It's pretty good for simple stuff (i.e. 99% of my work at least) and has a fast
learning curve.
www.fpdf.org
cheers,
thalis
On Fri, 17 May 2002 [EMAIL PROTECTED] wrote:
Hi the ML
I have the following
Any hint from the developers as to when to expect 4.3.0?
cheers,
thalis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have you tried creating HTML with the equivalent META header?
HEAD
META HTTP-EQUIV=refresh CONTENT=3; URL=newpage.php/
/HEAD
Does it work for you?
cheers,
thalis
On Mon, 20 May 2002, Olexandr Vynnychenko wrote:
Hello php-general,
Has anyone else here the same proplem as I have? I write
On Tue, 21 May 2002, Jimmy Lantz wrote:
Hi,
started playing with Mcrypt and just wanted to ask which encryption method
makes the stronger encryption?
(I can supply the necesary keylength).
Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
So what do I need it for?
On Tue, 21 May 2002, Ray Hunter wrote:
MD5 is not that secure compared to blowfish or twofish or the other
types of encryption available with mcrypt...
Thanks,
Ray Hunter
How does MD5 relate to encrypting the file? It's just used as a hash function.
--thalis
-Original
On Wed, 22 May 2002, Jimmy Lantz wrote:
Thanx for the suggestions!
Someone mentioned that I could use MD5 and then encrypt the hash,
how would I ever decrypt that? Is'nt MD5 a 1-way thing only?
Another question?
Should I go for bigger keylength or bigger blocksize or both? What makes
On Wed, 22 May 2002, Shane wrote:
Too Many HOURS!!!
Too Little MMs!!
Forgot... Brain... Ouch!
Someone please remind me, what the hell the syntax for the short hand of the PHP IF
THEN statement is where multiple variables need to be checked
if($foo == Panda and $bar == bear){
I get REG_ECTYPE from a call to ereg_replace. No mention in the docs. Minimal mention
in the archives. What exactly is it supposed to mean?
The call is:
$definitions=ereg_replace(name=[^[:space]]*,,$definitions);
TIA,
thalis
--
PHP General Mailing List (http://www.php.net/)
To
Read 'Secure Programming in PHP':
http://www.zend.com/zend/art/art-oertli.php
cheers,
thalis
On Fri, 24 May 2002, Hawk wrote:
I was checking around on a page I made, and I just noticed the lack of
security, it is rather easy to gain admin status if you enter the right
?blabal=blablabla
On Mon, 27 May 2002, Jonas Hörnblad wrote:
Hi there,
I've only been PHPing for some week and ofcours I've ran into my first two
problems.
1. I'm building this community thing and I have a text file with the users
that is currently logged in. When they press logout there name is deleted
If I write a comment line with // and I include in it ? then it fails to parse the
rest of the page because (i'm guessing) the parser gets confused and goes off PHP
mode.
Is this normal? Shouldn't I be able to write literally ANYTHING on a comment line?
Sample Code:
?
//bla bla ?
$var=1;
?
From my understanding of what you wrote:
foreach($textBoxArray as $tBox=$tVal){
if(empty($tVal)){
echo(Found empty textBox: $tBoxbr\n);
}
}
Read in manual about isset() and empty()
cheers,
thalis
On Tue, 28 May 2002, Morten Nielsen wrote:
Hi,
I got a table,
On Tue, 28 May 2002, Luis Miguel N. Tavora wrote:
Hi there.
I've started to code in PHP a couple of days ago, so
I'm really a newbie.
As far as I understood it, for a server process the php
code, the file must have the extension .php
Not really but it's a good convention.
But
On Wed, 29 May 2002, Ford, Mike [LSS] wrote:
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: 28 May 2002 20:21
If I write a comment line with // and I include in it ? then
it fails to parse the rest of the page because (i'm
On Wed, 29 May 2002, Jason Wong wrote:
On Wednesday 29 May 2002 21:27, Leotta, Natalie (NCI/IMS) wrote:
I disagree. I use // because then when I need to take out a chunk of code
(the requirements for the programs change faster than I can keep up with
them!!) I can do /* unnecessary code
On Wed, 29 May 2002, Jonathan Rosenberg wrote:
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] comment followed by ? fails to parse
On Wed, 29 May 2002, Jason Wong
On Thu, 30 May 2002, Timothy J. Luoma wrote:
Summary: I've been looking for a resource (book, website, etc) that will
address how to write/store information in XML and deliver it as XHTML
(using PHP for the processing), but haven't had much luck.
I'm not sure what you want is feasible as
On Mon, 3 Jun 2002, Jason Dulberg wrote:
I am working on a sports website that will have a subdomain for each major
sport. There is a login panel on the main domain that routes users to the
appropriate subdomain depending on the sport that they are in. Everything
seems to be ok with cookies
On Mon, 3 Jun 2002, Jason Dulberg wrote:
The subdomain's are all on the same server and all have their docroot set to
the same directory. I'm mainly using subdomains as a way to keep the site
organized and to have different graphics based on their sport location.
So if I pass to the next
62 matches
Mail list logo