[PHP] Creating PDF from a Image

2005-11-07 Thread Manoj Kr. Sheoran
Hi All, To create fdf with text info is very simple but I am wondering how to convert a PNG image into pdf file? Any suggestion? Regards, Manoj

Re: [PHP] Re: Template style question

2005-11-07 Thread Angelo Zanetti
Torgny Bjers wrote: Petr Smith wrote: Smarty sucks. Mixing presentation and logic is never good idea. I know Smarty is very popular, but big popularity doesn't always mean quality. Back to original question: If you decided to reinvent the wheel, please don't reinvent square wheel without

Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Pranav Negandhi
There doesn't seem to be any function to add an image to an FDF document, but since an FDF is just a PDF file, you might be able to create a hack using a PDF generation library. I've used FPDF for generating PDF's in the past. http://www.fpdf.org Regards, Pranav www.concept-i.co.in Manoj

[PHP] Re: italic, bold and underline with GD ?

2005-11-07 Thread Norbert Wenzel
David wrote: Can we use some function with GD to make text italic, bold and/or underline? http://php.net/imagettftext I see we can change size and font, but not style it's not possible in PHP? Thanks in advance David I'm not familiar with GD, but as every good font has different versions

[PHP] Re: Making functions available from another script

2005-11-07 Thread Norbert Wenzel
Richard Leclair wrote: Hi PHP-ers, Here's an easy one: Q: How can I make a function available from within another php script? Eg. B.php contains: ?php include .../fns.php ? Which has a function fn($x); Later on, I want to include this function in B.php somewhere. In short: B.php wants to

Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Manoj Kr. Sheoran
Dear Pranav, Thanks! I would like to do something like this: ABC.PNG -- (CONVERT USING ANY PHP LIBRARY)-ABC.PDF abc.pdf should be Press optimized pdf. Press optimized is the somewhat high level of pdf format. Your suggestions are hightly appreciated. Thanks Regards, Manoj - Original

Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Pranav Negandhi
You're sure to find a working example on the fpdf site, that uses images. Check here http://www.fpdf.org/en/tutorial/index.php If you have the resources, PDFLib is a commercial component that makes your work a lot easier. http://www.pdflib.com/ Regards, Pranav www.concept-i.co.in Manoj Kr.

RE: [PHP] Re: Making functions available from another script

2005-11-07 Thread Richard Leclair
Hi Norbert, Thanks for your reply. Yeah, you were almost there - it wasn't quite what I had in mind. I probably should have elaborated on this one. I'm looking at building up a library of handy functions that can be included in a current script. Only problem is: (let's just say for clarity

Re: [PHP] Re: Making functions available from another script

2005-11-07 Thread Norbert Wenzel
Richard Leclair wrote: Hi Norbert, Thanks for your reply. Yeah, you were almost there - it wasn't quite what I had in mind. I probably should have elaborated on this one. I'm looking at building up a library of handy functions that can be included in a current script. Only problem is:

RE: [PHP] Re: Making functions available from another script

2005-11-07 Thread Arno Kuhl
If it was working properly the function would be callable. Your include is probably not working - change it to require and see if you get an error. Using include doesn't give you an error if the include file is not found. Arno DotContent Professional Content Management

Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Manoj Kr. Sheoran
Hi Pranav, Thanks for reply and it really helped me a lot. Now I have one more issue: - PNG doesn't support CMYK color scheme and that is supported by JPEG so I need to convert it to JPEG and then JPEG back to Press optimized pdf. I 've only PNG as input. Is there any method that can help me to

[PHP] Catch the WMV first frame picture in PHP script?

2005-11-07 Thread 張 峰銘
Hello: I'm try to design WMV movie upload system im my school. when teachers upload the wmv movie to the web , I hope I can grab the first frame picture of wmv and save it to a jpeg file. Dose any one do that before ? Is is difficult to implement in PHP ? (I'm in the Linux with Apache

Re: [PHP] Mcrypt 3DES encrypt/decrypt Help

2005-11-07 Thread Andrew Brampton
I've never used the mcrypt functions, but from a quick read of the documentation I think you are using a 384 bit key!... Each letter in your key string is a 8bit ASCII character, and since you have 48 chars, you have 8*48 bits. The documentation says: Key is the key with which the data will

RE: [PHP] Re: Making functions available from another script

2005-11-07 Thread Richard Leclair
DOH!! Okay, I've sorted out the [my] problem... Instead of just doing the include relatively, I tried including it via the full URL, ie. ?php include(http://$_SERVER[HTTP_HOST]/lib.php;); ? I guess it just includes output of the result of this typical HTTP parse. By just doing ?php

[PHP] Re: No forums?

2005-11-07 Thread Finner, Doug
Wow, go away for a few days and holy war breaks out...cool! Why not one system that supports both without extra work? The model I'm thinking of is Google or Yahoo groups(*). You can access any 'forum' via a web browser, search, post, reply, etc AND/OR you can subscribe to any forum and get

Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Jens Schulze
Manoj Kr. Sheoran schrieb: I 've only PNG as input. Is there any method that can help me to convert PNG to JPEG and then create PDF to that. PNG and press-ready PDF isn't anything that fits together very well from the view of a prepress professional, but your way would be ImageMagick

Re: [PHP] No forums?

2005-11-07 Thread Jay Blanchard
[snip] Currently, the universe is the way it is and, many believe, it works just fine. Why should we do anything at all? [/snip] Because we have no control over the existance and operation of the universe. If we did we would have changed it already. Our profound lack of understanding of the

RE: [PHP] PHP 5.1 release ?

2005-11-07 Thread Ford, Mike
On 07 November 2005 00:51, Dan Rossi wrote: Hi there just wondering when there may be a php 5.1 release ? I just went into the downloads on the php site and the link to RC1 has been removed ?? Current Release candidate is 5.1.0RC4,so I guess RC1 was removed as too out of date. Last I saw,

Re: [PHP] Creating PDF from a Image

2005-11-07 Thread Manoj Kr. Sheoran
Hi, Jens! Thanks!. PNG doen't support CMYK color scheme that's why I want to convert it in JPG first and then I want to create pdf file from that PJG file. I created pdf file from PJG using fpdf but no idea that how to I convert PNG to jpg file (not using any third part tool only uing php).

[PHP] off

2005-11-07 Thread Freebird
sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OFF, do not open

2005-11-07 Thread Freebird
OFf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] form question??

2005-11-07 Thread bruce
hi... a while ago, i saw an app that allowed the user to create a form, based on various fields, and to setup/create the database schema to create the form. the app provided the user with predefined fields, as well as allowed the user to define their own fields in order to create the form.

Re: [PHP] form question??

2005-11-07 Thread Stephen Leaf
I wrote a xsl stylesheet to do this. takes the xml and whips it up, into a standard layout. Don't believe I mentioned this but I might have at some point. Register example: formData formTitle=Register action=/ method=post captionThank you for Registering!/caption fields

[PHP] FileExists?

2005-11-07 Thread Gustav Wiberg
Hi there! File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] FileExists?

2005-11-07 Thread Jochem Maas
Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) what errors are you getting? what is $x? ??? /G http://www.varupiraten.se/ -- PHP

RE: [PHP] FileExists?

2005-11-07 Thread Jay Blanchard
[snip] File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) [/snip] What version of PHP are you using. With anything less than PHP5 you cannot use file_exists on anything other

Re: [PHP] FileExists?

2005-11-07 Thread Gustav Wiberg
- Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Gustav Wiberg' [EMAIL PROTECTED]; PHP General php-general@lists.php.net Sent: Monday, November 07, 2005 9:02 PM Subject: RE: [PHP] FileExists? [snip] File_exists doesn't seem to work with URLs that point to another

Re: [PHP] FileExists?

2005-11-07 Thread Jasper Bryant-Greene
On Mon, 2005-11-07 at 20:45 +0100, Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) You are trying to check if a file pointer exists. You want to

Re: [PHP] FileExists?

2005-11-07 Thread Chris Shiflett
Gustav Wiberg wrote: $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) That wouldn't work on a normal file either. You should always try to reduce your problem to the simplest case. :-) http://php.net/file_exists The argument is a filename. Hope that helps. Chris --

[PHP] Re: FileExists?

2005-11-07 Thread James Benson
Read the manual, it clearly states the following:- Tip: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix M for a listing of which wrappers support stat() family of functionality. Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work

[PHP] Using the echo tag...

2005-11-07 Thread Paul Williams
I'm relatively new at coding PHP but I was hoping someone can help me with this. I'm trying to write the following code into my program but each time it runs, I get an error message. Can anyone help? print EOF !-INSERT HTML HEADER HERE -- $_SERVER['PHP_SELF'] EOF; Say that

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) file_exists() takes filename as parameter, not file pointer. besides, spare the one http

Re: [PHP] form question??

2005-11-07 Thread Vizion
On Monday 07 November 2005 10:24, the author bruce contributed to the dialogue on- [PHP] form question??: hi... a while ago, i saw an app that allowed the user to create a form, based on various fields, and to setup/create the database schema to create the form. the app provided the user

[PHP] Strange pg_escape_string behavior

2005-11-07 Thread -k.
While using pg_escape_string to clean data being placed in a query sent to me by the user i get the following error after submitting the query with pg_execute: pg_exec(): Query failed: ERROR: invalid regular expression: invalid escape \ sequence . It seems to happen when using just a \ or

Re[2]: [PHP] Creating PDF from a Image

2005-11-07 Thread Jens Schulze
Am Monday, November 7, 2005, 4:20:25 PM beglückte uns Manoj ([EMAIL PROTECTED]) mit folgendem Kommentar: PNG doen't support CMYK color scheme that's why I want to convert it in JPG first and then I want to create pdf file from that PJG file. I created pdf file from PJG using fpdf but no idea

RE: [PHP] Using the echo tag...

2005-11-07 Thread Pablo Gosse
[snip] I'm relatively new at coding PHP but I was hoping someone can help me with this. I'm trying to write the following code into my program but each time it runs, I get an error message. Can anyone help? print EOF !-INSERT HTML HEADER HERE -- $_SERVER['PHP_SELF'] EOF; Say that was a part of

RE: [PHP] Security Issues - Where to look?

2005-11-07 Thread Pablo Gosse
[snip] I've heard that php is not particularly secure, making it problematic if you intend to create a web site with commerce, etc. Is there a particular news group that addresses security issues? I'm looking for some guidlines on ensuring that my site is secure from malicious hackers. [/snip]

Re: [PHP] Security Issues - Where to look?

2005-11-07 Thread Richard Davey
Hi Richard, Monday, November 7, 2005, 9:50:59 PM, you wrote: I've heard that php is not particularly secure, making it problematic if you intend to create a web site with commerce, etc. Is there a particular news group that addresses security issues? I'm looking for some guidlines on

Re: [PHP] Using the echo tag...

2005-11-07 Thread Curt Zirzow
* Paul Williams [EMAIL PROTECTED] [2005-11-07 12:31:17 -0500]: I'm trying to write the following code into my program but each time it runs, I get an error message. Can anyone help? print EOF !-INSERT HTML HEADER HERE -- $_SERVER['PHP_SELF'] EOF; You might want to

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: - Original Message - From: M [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Monday, November 07, 2005 11:12 PM Subject: Re: [PHP] FileExists? Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain.

Re: [PHP] Strange pg_escape_string behavior

2005-11-07 Thread Curt Zirzow
* -k. wrote: ... pg_exec(): Query failed: ERROR: invalid regular expression: invalid escape \ sequence . It seems to happen when using just a \ or text ending with a \ but not if a \ is in the middle of a string of text. I would guess you have magic_quote_gpc on, you can check this:

Re: [PHP] Using the echo tag...

2005-11-07 Thread Unknown Unknown
you only need 3 On 11/7/05, Curt Zirzow [EMAIL PROTECTED] wrote: * Paul Williams [EMAIL PROTECTED] [2005-11-07 12:31:17 -0500]: I'm trying to write the following code into my program but each time it runs, I get an error message. Can anyone help? print EOF !-INSERT HTML

Re: [PHP] Using the echo tag...

2005-11-07 Thread Curt Zirzow
On Mon, Nov 07, 2005 at 09:40:23PM -0500, Unknown Unknown wrote: you only need 3 Indeed, as well as Pablo's guess of escaping an array within a heredoc, and i would guess as well that that space between his ' EOF' is invalid as well. Btw, you do realize your name is 'Unknown Unknown'? Curt

[PHP] PHP 5 XML/XSL problem

2005-11-07 Thread Daniel Lowes
Hi I've been using PHP 4 for the last year to do XSL transformations in one of my applications. It worked like a charm, we never had any problems. While I was investigating the feasability of moving to PHP 5, I discovered that for some reason, the exact same XML/XSL fails to transform