Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Sorry guys if disturbed.


2013/9/5 Bastien Koert phps...@gmail.com

 Jee, that should have been a friday comment...how does your dic standout


 On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote:

 There are few tutorials about home made dic. How does your dic stand out
 from the crowd ?

 Regards.

 On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo 
 sebastianscatul...@gmail.com wrote:

  Hello people, I want to share with you a simple and small Dependency
  Injector made for me.
 
  https://github.com/abloos/Sofia
 
  Regards
 
  --
  Facebook: www.facebook.com/JuanSebastianScatularo
  Twitter: www.twitter.com/js_scatularo
  Web: www.sebastianscatularo.com.ar
 



 --
 Sorin Badea - Software Engineer




 --

 Bastien

 Cat, the other other white meat




-- 
Facebook: www.facebook.com/JuanSebastianScatularo
Twitter: www.twitter.com/js_scatularo
Web: www.sebastianscatularo.com.ar


Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Thanks Sorin, I will do that and I will have more care the next time.

Regards


2013/9/5 Sorin Badea sorin.bade...@gmail.com

 Juan, the problem with this list is that that there are too damn many dumb
 questions. You did something nice but it doesn't stand out. You can check
 Symfony2 DiC. You can use it as a stand alone component.


 On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo 
 sebastianscatul...@gmail.com wrote:

 Sorry guys if disturbed.


 2013/9/5 Bastien Koert phps...@gmail.com

 Jee, that should have been a friday comment...how does your dic
 standout


 On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea sorin.bade...@gmail.comwrote:

 There are few tutorials about home made dic. How does your dic stand out
 from the crowd ?

 Regards.

 On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo 
 sebastianscatul...@gmail.com wrote:

  Hello people, I want to share with you a simple and small Dependency
  Injector made for me.
 
  https://github.com/abloos/Sofia
 
  Regards
 
  --
  Facebook: www.facebook.com/JuanSebastianScatularo
  Twitter: www.twitter.com/js_scatularo
  Web: www.sebastianscatularo.com.ar
 



 --
 Sorin Badea - Software Engineer




 --

 Bastien

 Cat, the other other white meat




 --
 Facebook: www.facebook.com/JuanSebastianScatularo
 Twitter: www.twitter.com/js_scatularo
 Web: www.sebastianscatularo.com.ar




 --
 Sorin Badea - Software Engineer




-- 
Facebook: www.facebook.com/JuanSebastianScatularo
Twitter: www.twitter.com/js_scatularo
Web: www.sebastianscatularo.com.ar


[PHP] PHP Dependency Injector

2013-09-05 Thread Juan Sebastian Scatularo
Hello people, I want to share with you a simple and small Dependency
Injector made for me.

https://github.com/abloos/Sofia

Regards

-- 
Facebook: www.facebook.com/JuanSebastianScatularo
Twitter: www.twitter.com/js_scatularo
Web: www.sebastianscatularo.com.ar


[PHP] DICOM and PHP

2010-09-02 Thread Juan Rodríguez Monti
Hi guys,
I would like to develop an Application in PHP to manage DICOM images. The
idea is that the application should be able to receive images from different
devices connected through a local switch.
The application should act as a server, always listening, and then when some
of the devices send an image, receive it, and also the app should know who
sent the image, receive some data, and so on.
Of course, also the App should be able to show the images, store them
locally o remotely, print them, and other activities.

AFAIK, PHP has some implementations to work with DICOM to work with the
images, sort them, print them, and so on. However, I think PHP doesnt
support sending and receiving DICOM images through network. And the App do
need to do this.

Do you know something that might be useful for this Project?, or even
better: do you have any experience working with an application like this
one?.

Best,
Juan


[PHP] Limit failed logins attempts

2010-08-09 Thread Juan Rodriguez Monti
Hi guys,
I would like to know what do you suggest to implement a limit for
failed login attempts.

I thought that might be a good idea, to define a session variable
called ( failedattempts ), then check and if $failedattempts is
greater than, suppose, 4 write to a Database ( ip, username and
last-time-attempt ). If ater that, the user/bot tries again to login
unsuccessfully, then the system should ban that user  ip combination.

Some questions about this situation:

- Do you think that is a good idea to use sleep() ?.
- How should I send a 503 HTTP error to the user after 5 attempts ?
- Is this a good idea to do all this work for this security purpose ?
- Do you know/suggest a better way to solve this?

Thanks in advance,
Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Books about RESTFul Web Services APIs

2010-06-29 Thread Juan Marcelo Rodriguez Monti

 Hi guys,
Do you know some good books about RESTful Web Services / API's using PHP?.

Also, if you know some website where I could find papers, pdf's and 
articles about this topic would be useful, too.


I saw the documentation about this topics is not so easy to find.

Best,
Juan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] User's IP Validation

2010-06-17 Thread Juan Rodriguez Monti
2010/6/16 Ashley Sheridan a...@ashleysheridan.co.uk

  On Wed, 2010-06-16 at 20:36 +0200, David Cesal wrote:

 Please, don't forget IP address can be same for many users. I see only way 
 with cookies. When user deletes cookies, form pops up again. I don't know any 
 better way.

 David

 Sent from my HTC

 -Original Message-
 From: Juan Rodriguez Monti j...@rodriguezmonti.com.ar
 Sent: 16. cervna 2010 20:26
 To: php-general@lists.php.net
 Subject: [PHP] User's IP Validation

 Hi people,
 I would like to know the best way to perform some kind of validation
 for an application that I've written.

 I have a system that ask through an HTML Form some questions to users.
 I use some cookies to save some information from the user side.

 However, I would like to implement some code in PHP that would let me
 limit to 1 the number of times that the page with the questions was
 executed.

 I mean, the user fills the HTML's Form, then send it through an HTML
 Button, then PHP receives this informations and send an Email
 containing the replies to the questions. I would like to limit to one,
 the times one single user is able to execute this form.

 I thought getting the IP Address, then doing some kind of validation
 with it. However I don't know if using cookies is the best idea. I
 don't have access to a DataBase for this. So I thought might be a good
 idea write to a file in the server the IP, then perform some if to
 know if the user already replied the form.

 As far as I don't know which is the best way to code this, I felt free
 to ask you guys.

 Thanks a lot.

 Juan

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




 Like others have said, unless you have specific user logins, there's no way
 to prevent people from viewing the form more than once. As you are emailing
 them the answers, I assume there is some form of login system being used, so
 you could use that, with some sort of flag to indicate the email has been
 sent. If you want to future-proof the system, you could use some sort of
 binary bit flag to indicate what forms they've been sent answers to, for
 example:

 0 - no answers have been sent
 1 - only the first set of answers
 4 - the 3rd set of answers only
 5 - the 3rd and 1st set of answers


Yes, tha't s true. However I'm not using a DB for this little job.

There's no login system. There's a little script that runs the form, and
then send an email to some directions, but not for the user's Email address.

I thought I should use cookies, however is far from secure.

Thanks a lot people!.

Juan


[PHP] User's IP Validation

2010-06-16 Thread Juan Rodriguez Monti
Hi people,
I would like to know the best way to perform some kind of validation
for an application that I've written.

I have a system that ask through an HTML Form some questions to users.
I use some cookies to save some information from the user side.

However, I would like to implement some code in PHP that would let me
limit to 1 the number of times that the page with the questions was
executed.

I mean, the user fills the HTML's Form, then send it through an HTML
Button, then PHP receives this informations and send an Email
containing the replies to the questions. I would like to limit to one,
the times one single user is able to execute this form.

I thought getting the IP Address, then doing some kind of validation
with it. However I don't know if using cookies is the best idea. I
don't have access to a DataBase for this. So I thought might be a good
idea write to a file in the server the IP, then perform some if to
know if the user already replied the form.

As far as I don't know which is the best way to code this, I felt free
to ask you guys.

Thanks a lot.

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Site with CSS and Internet Explorer

2010-05-17 Thread Juan Rodriguez Monti
2010/5/15 Jim Lucas li...@cmsws.com:
 Juan Rodriguez Monti wrote:

 I guys,
 I'm having some problems with the following.

 I have a PHP Site working perfectly with HTML and CSS. The CSS runs
 flawlessly in Firefox and Google Chrome. However, I'm having some
 problems with Internet Explorer.

 I'm not able to show it centered ( the .css is to show centered
 content ) in any version of Internet Explorer. The CSS's Code is
 available here[0].

 Might be this is an Off-Topic question, however is closely related to
 my PHP development.

 If you know some hack or modification that I should do to make this
 site compatible with IE, I would appreciate it a lot.

 Thanks,
 Juan

 [0] http://pastebin.com/eLhz2CzM



 Using your #container { ... } example.  the only change I would make is like
 this

 body
 {
        text-align: center;
 }

 #container
 {
        margin: 0 auto;
        width: 600px;
        background:#fff;
        text-align: left;
 }

Hi Jim,
Thanks. This CSS code solved the IE's problem.

Best,
Juan.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Site with CSS and Internet Explorer

2010-05-15 Thread Juan Rodriguez Monti
I guys,
I'm having some problems with the following.

I have a PHP Site working perfectly with HTML and CSS. The CSS runs
flawlessly in Firefox and Google Chrome. However, I'm having some
problems with Internet Explorer.

I'm not able to show it centered ( the .css is to show centered
content ) in any version of Internet Explorer. The CSS's Code is
available here[0].

Might be this is an Off-Topic question, however is closely related to
my PHP development.

If you know some hack or modification that I should do to make this
site compatible with IE, I would appreciate it a lot.

Thanks,
Juan

[0] http://pastebin.com/eLhz2CzM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Two color rows in table inside while iteration

2010-04-29 Thread Juan Rodriguez Monti
2010/4/29 tedd tedd.sperl...@gmail.com:
 At 8:29 AM -0300 4/28/10, Juan Rodriguez Monti wrote:

 Hello Guys,
 I would like to implement a two color row table for some queries that I'm
 doing.

 I use PHP to query a DB, then I use while to print all its results. I
 have a code pretty similar to this one :

  $results = Here the QUERY;
        echo html;
        echo head;
        echo 'link rel=stylesheet type=text/css href=style.css /';
        echo /head;
        echo body;
        echo 'div id=container';

        echo centerh2Results/h2/centerbr /;
        echo (table border='1');
        echo tdstrongAt1/strong/td
 tdstrongAt2/strong/td tdstrongAt3/strong/td      $

  while ($row = while condition )) {
        echo (tr);
        echo td$row[0]/tdtd$row[1]/td td$row[2]/td
 td$row[3]/tdtd$row[4]/td ;
        echo /div;
        echo /body;
        echo /html;

 I just want to show you how I write the table. What I would like to
 know is what do you suggest to do a two color row format.

 Thanks!,
 Juan


 Juan:

 Everyone has done this at one time or another -- this is my solution.

 http://webbytedd.com/b/color-rows/

 Plus, it validates and keeps things simple.

 Cheers,

 tedd

Tedd,
Thanks. I'm gonna check it. I finally solved it using:

if ( CONDITIONS )) {

  $results = query( QUERY );
 $colors = array('#97b7cd','#96bf8c');
 $index= 0; 
echo html;
echo head;
echo 'link rel=stylesheet type=text/css href=is.css /';
echo /head;
echo body;
echo 'div id=container';

echo table border='1';
echo tdstronga1/strong/td tdstronga2/strong/td
tdstronga3/strong/td tdstronga4/strong/td
tdstronga5/strong/td ;

  while ($row = CONDITIONS )) {
echo 'tr style=background-color: ' .  $colors[$index ++ %  2] .  
';';   
echo td$row[0]/tdtd$row[1]/td td$row[2]/td
td$row[3]/tdtd$row[4]/td ;
  }
echo /tr;
echo /table;
echo /div;
echo 'pa href=back.htmlback/a/p';
echo /body;
echo /html;

This solution was the best for me. It's solved with your help.

Thanks a lot!.

Juan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Two color rows in table inside while iteration

2010-04-28 Thread Juan Rodriguez Monti
Hello Guys,
I would like to implement a two color row table for some queries that I'm doing.

I use PHP to query a DB, then I use while to print all its results. I
have a code pretty similar to this one :

 $results = Here the QUERY;
echo html;
echo head;
echo 'link rel=stylesheet type=text/css href=style.css /';
echo /head;
echo body;
echo 'div id=container';

echo centerh2Results/h2/centerbr /;
echo (table border='1');
echo tdstrongAt1/strong/td
tdstrongAt2/strong/td tdstrongAt3/strong/td  $

  while ($row = while condition )) {
echo (tr);
echo td$row[0]/tdtd$row[1]/td td$row[2]/td
td$row[3]/tdtd$row[4]/td ;
echo /div;
echo /body;
echo /html;

I just want to show you how I write the table. What I would like to
know is what do you suggest to do a two color row format.

Thanks!,
Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Two color rows in table inside while iteration

2010-04-28 Thread Juan Rodriguez Monti
2010/4/28 Jay Blanchard jblanch...@pocket.com:
 [snip]
 I just want to show you how I write the table. What I would like to
 know is what do you suggest to do a two color row format.
 [/snip]

 Before your table;

 $trColor = 0;

 Then during the loop;

 while(foo){
 $tr = (0 == $trColor % 2)? #E8E8E8 : #FF;
 echo tr style=\background-color:.$tr.\;
 ...

 Replace the hex values with the colors you desire.

Thank you all for the replies!, I wanted something like this. It was
very useful.

I agree that JS might be turned off , and isn't in all browsers.

Best,
Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Two color rows in table inside while iteration

2010-04-28 Thread Juan Rodriguez Monti
2010/4/28 Jay Blanchard jblanch...@pocket.com:
 [snip]
 Before your table;

 $trColor = 0;

 Then during the loop;

 while(foo){
 $tr = (0 == $trColor % 2)? #E8E8E8 : #FF;
 echo tr style=\background-color:.$tr.\;
 ...

 Replace the hex values with the colors you desire.

 Just one more question about this.

 I'm getting something like this[0], and I would like to get something
 like this[1] using something similar to Jay's suggestion.
 [/snip]

 My suggestion should produce the results you desire. Can you post your
 current code?

Yes!. Here is: http://pastebin.com/3vPfvssX

Juan.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Two color rows in table inside while iteration

2010-04-28 Thread Juan Rodriguez Monti
2010/4/28 Fernando ferna...@ggtours.ca:
 What about this:

 $color = even;
 while ($row = while condition )) {
       $color = ($color == even) ? odd : even;
       echo (tr class=\$color\);
       echo td$row[0]/tdtd$row[1]/td
  td$row[2]/tdtd$row[3]/tdtd$row[4]/td  ;
       echo (/tr)
 }

 And have two classes in your style sheet that format each row differently.

 Hope this helps.

Thanks to all guys!. Now it's working perfectly as I wanted.

Also was interesting to read the points you showed about JS and PHP.

Best,
Juan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Weird while issue

2010-04-27 Thread Juan Rodriguez Monti
Hi guys,
I have some issues with while.

I have an HTML Form, that uses GET to process its contents. Then
there's a PHP Script that receives the data, and evaluates the fields.

So, in some instance of the code, I do something like :

if (empty($a) AND empty($b)) {

echo something;
echo something;
echo something;

while ($row = sqlite_fetch_array($results,SQLITE_BOTH)) {

And here I print some echo's to print an HTML's Table with the results
of the while.
echo Something more;
echo etc;

}
} elseif (empty($c) AND empty($d)) {

Here there is another elseif similar to the first one explained above.

}

I have four or five elseif's that analizes the fields of the HTML's
Form and then the PHP's Code do things depending of the combinations
of fields submited and so on.

The problem is that if I want to add an echo saying Come Back to
Index to index.html, I'm not able to show it after the while's
iteration.

The PHP code prints the table with its results taken from SQlite
perfectly. Also it evaluates all the conditions flawessly. However, If
I add a link to come back with the text Go to Index after the while
and before the } close to the next elseif, PHP prints it in the wrong
ubication.

I got something like:

TITLE

*** Go to Index ***

While results. This is the table containing all the results of the
SQlite's Query.

If I move the echo to other part of the block, I receive so many
echo's as iterations the while do ( this is logical ). However I don't
understand why the echo is printed above the while even when I put it
after the while and out of the while's block.

Thanks a lot!.

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Weird while issue

2010-04-27 Thread Juan Rodriguez Monti
2010/4/27 Peter Lind peter.e.l...@gmail.com:
 On 27 April 2010 14:36, Juan Rodriguez Monti j...@rodriguezmonti.com.ar 
 wrote:
 Hi guys,
 I have some issues with while.

 I have an HTML Form, that uses GET to process its contents. Then
 there's a PHP Script that receives the data, and evaluates the fields.

 So, in some instance of the code, I do something like :

 if (empty($a) AND empty($b)) {

 echo something;
 echo something;
 echo something;

 while ($row = sqlite_fetch_array($results,SQLITE_BOTH)) {

 And here I print some echo's to print an HTML's Table with the results
 of the while.
 echo Something more;
 echo etc;

            }
 } elseif (empty($c) AND empty($d)) {

 Here there is another elseif similar to the first one explained above.

 }

 I have four or five elseif's that analizes the fields of the HTML's
 Form and then the PHP's Code do things depending of the combinations
 of fields submited and so on.

 The problem is that if I want to add an echo saying Come Back to
 Index to index.html, I'm not able to show it after the while's
 iteration.

 The PHP code prints the table with its results taken from SQlite
 perfectly. Also it evaluates all the conditions flawessly. However, If
 I add a link to come back with the text Go to Index after the while
 and before the } close to the next elseif, PHP prints it in the wrong
 ubication.

 I got something like:

 TITLE

 *** Go to Index ***

 While results. This is the table containing all the results of the
 SQlite's Query.

 If I move the echo to other part of the block, I receive so many
 echo's as iterations the while do ( this is logical ). However I don't
 understand why the echo is printed above the while even when I put it
 after the while and out of the while's block.


 Check your html for broken html table code.

 Regards
 Peter

Hi Peter,
That was the problem. Solved!.

Thanks,
Juan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Little php code - error

2010-04-08 Thread Juan
Hi guys,
I'm having trouble with the following little php code [0]. The output
from the server is : 
* Parse error: syntax error, unexpected '{' in file.php on line 27 *

Let's assume that file.php is the file that is giving me some troubles.

The structure is pretty easy to understand, however I'm not able to
solve this. Could you tell me why I'm not able to run this code.

I'm running PHP5, Apache2, and Ubuntu 9.10 with sqlite, as you could see.

Thanks a lot,
Juan

[0] http://pastebin.com/xC4pFbfH

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Little php code - error

2010-04-08 Thread Juan
2010/4/8 Richard Quadling rquadl...@googlemail.com:
 On 8 April 2010 15:21, Juan j...@rodriguezmonti.com.ar wrote:
 Hi guys,
 I'm having trouble with the following little php code [0]. The output
 from the server is : 
 * Parse error: syntax error, unexpected '{' in file.php on line 27 *

 Let's assume that file.php is the file that is giving me some troubles.

 The structure is pretty easy to understand, however I'm not able to
 solve this. Could you tell me why I'm not able to run this code.

 I'm running PHP5, Apache2, and Ubuntu 9.10 with sqlite, as you could see.

 Thanks a lot,
 Juan

 [0] http://pastebin.com/xC4pFbfH

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



 http://pastebin.com/diff.php?i=2QbANWnS

Thanks a lot people!.

It's solved.

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] App to put a whole PHP Site in CD/DVD

2010-03-04 Thread Juan
2010/3/2 Sion Duncan casti...@aurorais.co.uk:
 The way I've done this in the past it with XAMPP and a simple autorun.inf
 file.

 Code the autorun.inf file to start Apache and MySQL, then launch the users
 web browser (I used IE for this, as i knew everyone would have it
 installed).

 The only problem, is that this method only works on windows systems.

That's great. This is what I've been looking form. Thanks!.

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP and XML

2009-11-24 Thread Juan
El día 23 de noviembre de 2009 13:25, Nathan Rixham
nrix...@gmail.com escribió:
 Juan Marcelo Rodríguez Monti wrote:
 Hi people,
 I have some doubts about this topic that I'm gonna explain.

 I have a few sites in flash, and I was requested to write a PHP frontend
 to send news. I have this already done and it works perfect. It's a LAMP
 App to send and edit news, post video, images and so on.

 Then, I need to put all this news into the Flash site. So, I need to use
 XML. I'm not gonna discuss about Flash, because this is a PHP List,
 however I would like to talk about PHP and XML.

 What do you recommend me to produce XML from those news of the SQL
 database?. What do you suggest to output XML from the existing content
 to then put those XML files into Flash.

 The posted news are saved in a MySQL database. I don't know if do I need
 to output from PHP then parse the output and convert it to XML, or if Do
 I need to get the array from the MySQL and directly output this to an
 XML file to then get from this file from Flash.

 Thanks,
 Juan.


 flash remoting: you could use amf instead; its faster and easier to use.

 on the php side just use http://amfphp.org/ or suchlike

Thanks. I didn't know that. Did you test this applications ?  How well
does it work ?.

Juan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and XML

2009-11-22 Thread Juan Marcelo Rodríguez Monti

Hi people,
I have some doubts about this topic that I'm gonna explain.

I have a few sites in flash, and I was requested to write a PHP frontend 
to send news. I have this already done and it works perfect. It's a LAMP 
App to send and edit news, post video, images and so on.


Then, I need to put all this news into the Flash site. So, I need to use 
XML. I'm not gonna discuss about Flash, because this is a PHP List, 
however I would like to talk about PHP and XML.


What do you recommend me to produce XML from those news of the SQL 
database?. What do you suggest to output XML from the existing content 
to then put those XML files into Flash.


The posted news are saved in a MySQL database. I don't know if do I need 
to output from PHP then parse the output and convert it to XML, or if Do 
I need to get the array from the MySQL and directly output this to an 
XML file to then get from this file from Flash.


Thanks,
Juan.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Where I can find the PHP5 grammar/specification?

2008-12-23 Thread Juan Kinunt
Hi!
I'm looking for the PHP 5 grammar specification. I'm studying the
possibility of implementing an abstract interpretation tool with flex/bison
in order to find security vulnerabilities (Injection vulnerabilities, XSS)
in the code in a static manner. I know Pixy but I would like to study
another possibility.
Where I can find the grammar? What do you think about this idea?


RE: [PHP] New to PHP

2008-10-13 Thread Juan Jose Rosales Rodriguez
He i not speak very good englis, pliss can you tel me abaout list in spanich?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] New to PHP

2008-10-13 Thread Juan Jose Rosales Rodriguez
 
 
Hola.
 
No son los años los que te enseñan sobre la vida, sino como vives en la vida 
los años
 Universidad de las Ciencias Informáticas
   Juan José Rosales Rodriguez 
 Tel: 02366792 (Gr) - 078358458 (UCI) 



De: Micah Gersten [mailto:[EMAIL PROTECTED]
Enviado el: lun 13.10.2008 11:48
Para: PHP General
Asunto: Re: [PHP] New to PHP



The problem with bottom posting is that if you follow the conversation,
you have to scroll to find the new content.  I guess if you trim and
bottom post it's not so bad.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com http://www.onshore.com/ 



Wolf wrote:
 By Bottom Posting (common when on a mailing list or NG) it gives greater 
 context as you read through the previous posts and by the time of getting to 
 where the new response is, it is in sync.  No skipping back and forth to read 
 to get the context.

  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] New to PHP

2008-10-13 Thread Juan Jose Rosales Rodriguez
Ok thank you,  i try learn yor post, and make meny aport, for the list, 
apologize me  for my english, i am new  in this theme but in php i have 
experience. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
HI,
I'm working with an associative array, and generating its data a form. I use
foreach to loops the contents of the array and echo to print the table and
the data. Everything goes well, however I would like to add a counter to
print the row's number.

The question : Am I able to add a counter within foreach to print the row
number in each row using echo ?. I tried a few things but I couldn't.

Thanks!

Juan


Re: [PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
Yes, I made a mistake in the first sentence.

The code is :
[...]

foreach ($equipos as $key = $val){

echo trtd;
echo 1 . /tdtd;  // I would like to add the counter here reeplacing
1
print input type=\radio\ name=$key value=\l\ / . /tdtd;
echo $key . /tdtd;
print input type=\radio\ name=$key value=\e\ / . /tdtd;
echo $val . /tdtd;
print input type=\radio\ name=$key value=\b\ / . /tdtd;
}

?

I use the array to generate the name of the radio and so on. However I had
problems with the counter.

Thanks


2007/11/15, Stut [EMAIL PROTECTED]:

 Juan Marcelo Rodríguez wrote:
  I'm working with an associative array, and generating its data a form. I
 use
  foreach to loops the contents of the array and echo to print the table
 and
  the data. Everything goes well, however I would like to add a counter to
  print the row's number.
 
  The question : Am I able to add a counter within foreach to print the
 row
  number in each row using echo ?. I tried a few things but I couldn't.

 The mind boggles when wondering what you tried.

 $counter = 1;
 foreach ($array as $val)
 {
 // Do your stuff here

 // Increment the counter
 $counter++;
 }

 -Stut

 --
 http://stut.net/



Re: [PHP] Foreach question

2007-11-15 Thread Juan Marcelo Rodríguez
2007/11/15, Philip Thompson [EMAIL PROTECTED]:

 On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez 
 [EMAIL PROTECTED]
 wrote:

  Yes, I made a mistake in the first sentence.
 
  The code is :
  [...]
 
  foreach ($equipos as $key = $val){
 
  echo trtd;
  echo 1 . /tdtd;  // I would like to add the counter here
  reeplacing
  1


 echo trtd.($key+1)./tdtd;

 This is assuming $key starts at 0 and increments by 1 each iteration
 However, if you can't assume that, just have a separate counter:

 ?php
 $counter = 0;
 foreach ($a as $b = $c) {
 echo trtd.(++$counter)./tdtd;
 ...
 }


very good idea.

thanks!

Juan

HTH
 ~Philip



Re: [PHP] Foreach question (solved)

2007-11-15 Thread Juan Marcelo Rodríguez
Thanks.

I solved it using this :

$x = 0;

foreach ($equipos as $key = $val){

$x = $x + 1;
echo trtd;
echo $x . /tdtd;

2007/11/15, Michael McGlothlin [EMAIL PROTECTED]:

 $x = 0;
 foreach ( $blah as $bleh ) {
 $x = $x + 1;
 print $x: $bleh;
 }

  HI,
  I'm working with an associative array, and generating its data a form. I
 use
  foreach to loops the contents of the array and echo to print the table
 and
  the data. Everything goes well, however I would like to add a counter to
  print the row's number.
 
  The question : Am I able to add a counter within foreach to print the
 row
  number in each row using echo ?. I tried a few things but I couldn't.
 
  Thanks!
 
  Juan
 
 


 --
 Michael McGlothlin
 Southwest Plumbing Supply




[PHP] need help,pls

2007-07-26 Thread esimaje juan toritseju
hi, 
  My name is Juan, i need help from you and i will be greatful if you could 
assist me,i have got an academic project to create a website .Within the page i 
should create a login session for users ,i will have a database to save 
designs, i do know how to create the database but, do not know how to create 
the loggin sessions for users and also use flash in Php to enable a user to 
select one or more designs to appear on the other also to make a background 
color for the designs to be placed on,i ought to make it possible for the user 
to be able to change the background color to see which color suits the 
design,also make it possible for a user to be able to upload their own designs 
and make it sharable to other users.I will really appreciate if you will be 
able to direct me on how to go about this work.Looking forward to hearing from 
you soon.Thanks

   
-
 Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for 
your freeaccount today.

Re: [PHP] Text Editor for Windows?

2007-02-08 Thread Juan Felipe Alvarez Saldarriaga

Stephen wrote:

I am finding that notepad is lacking when correcting syntax errors in my php 
code. No line numbers.

What can people recommend for use under Windows?

Thanks
Stephen

  

Hey, well, actually I use gVim on windows + WinSCP :)

http://wiki.freaks-unidos.net/gvim_on_steroids_(windoze)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Calculate string width using some font.

2007-02-05 Thread Juan Felipe Alvarez Saldarriaga

Hey list! :)

I've got a problem trying to calculate a string width using an X font 
with some Y font size to use in an svg-to-pdf conversion.


This is what I try to do:
1. Create a dummy image.
2. Set the text there using font X and the font size Y (it seems that 
when I create the image it renders it at 72dpi so I need to reduce it at 
300dpi)


I'm  not sure what the imagettftext() function returns, are those values 
measured in pixels ? I read in some page that the proportion to reduce 
the image at 300dpi  is reduce the size to 24% of its original size.


http://www.printingforless.com/resolution.html

That's the code:

***

// Create dummy image.
$rsc_image = imagecreate( 1, 1 );

// Set image.
$arr_ftx = imagettftext( $rsc_image, $int_font_size, 0, 0, 0, -1, 
./fonts/{$str_font_file}, $str_variable_value );

// Destroy dummy image.
imagedestroy( $rsc_image );

// Set structure of widths.
// TODO: Magik numbers.
$arr_variable_pixels[$str_variable_index] = ( ( $arr_ftx[2] * 24 ) / 100 );

***

Thx for any help.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Juan Felipe Alvarez Saldarriaga

Jochem Maas wrote:

Juan Felipe Alvarez Saldarriaga wrote:
  

Hey list! :)



my name's not list but what the heck:

take a look at these function, they should light the way:

http://php.net/manual/en/function.imageftbbox.php
http://php.net/manual/en/function.imagepsbbox.php
http://php.net/manual/en/function.imagettfbbox.php
http://php.net/imageloadfont

everything is pixels.

there is no dpi - your screen  printer has a certain dpi and that determine
how big the image displays on either.

okay not much help - I had brain freeze half thru.

  


K, np, Ill try use imagettfbbox() function instead.

Thx.

I've got a problem trying to calculate a string width using an X font
with some Y font size to use in an svg-to-pdf conversion.

This is what I try to do:
1. Create a dummy image.
2. Set the text there using font X and the font size Y (it seems that
when I create the image it renders it at 72dpi so I need to reduce it at
300dpi)

I'm  not sure what the imagettftext() function returns, are those values
measured in pixels ?



yes.

  

I read in some page that the proportion to reduce
the image at 300dpi  is reduce the size to 24% of its original size.

http://www.printingforless.com/resolution.html

That's the code:

***

// Create dummy image.
$rsc_image = imagecreate( 1, 1 );

// Set image.
$arr_ftx = imagettftext( $rsc_image, $int_font_size, 0, 0, 0, -1,
./fonts/{$str_font_file}, $str_variable_value );
// Destroy dummy image.
imagedestroy( $rsc_image );

// Set structure of widths.
// TODO: Magik numbers.
$arr_variable_pixels[$str_variable_index] = ( ( $arr_ftx[2] * 24 ) / 100 );

***

Thx for any help.





  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Calculate string width using some font.

2007-02-05 Thread Juan Felipe Alvarez Saldarriaga

setcookie wrote:

pdf_stringwidth() may help you

regards fra*


  


Yea I saw that too but you know, pdflib is not free.


Hey list! :)



my name's not list but what the heck:

take a look at these function, they should light the way:

http://php.net/manual/en/function.imageftbbox.php
http://php.net/manual/en/function.imagepsbbox.php
http://php.net/manual/en/function.imagettfbbox.php
http://php.net/imageloadfont

everything is pixels.

there is no dpi - your screen  printer has a certain dpi and that
  

determine
  

how big the image displays on either.

okay not much help - I had brain freeze half thru.


  

K, np, Ill try use imagettfbbox() function instead.

Thx.


I've got a problem trying to calculate a string width using an X font
with some Y font size to use in an svg-to-pdf conversion.

This is what I try to do:
1. Create a dummy image.
2. Set the text there using font X and the font size Y (it seems that
when I create the image it renders it at 72dpi so I need to reduce it


at
  

300dpi)

I'm  not sure what the imagettftext() function returns, are those


values
  

measured in pixels ?



yes.


  

I read in some page that the proportion to reduce
the image at 300dpi  is reduce the size to 24% of its original size.

http://www.printingforless.com/resolution.html

That's the code:

***

// Create dummy image.
$rsc_image = imagecreate( 1, 1 );

// Set image.
$arr_ftx = imagettftext( $rsc_image, $int_font_size, 0, 0, 0, -1,
./fonts/{$str_font_file}, $str_variable_value );
// Destroy dummy image.
imagedestroy( $rsc_image );

// Set structure of widths.
// TODO: Magik numbers.
$arr_variable_pixels[$str_variable_index] = ( ( $arr_ftx[2] * 24 ) /


100 );
  

***

Thx for any help.





  


  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Programacion orientada a objetos

2007-01-31 Thread Juan Pablo Herrera

HI Jairo!
This is a list only in english. Please, check other list in spanish.

Esta es una lista en inglés. Por favor, verificá otras listas en español.

JP

On 1/31/07, Jairo Torres [EMAIL PROTECTED] wrote:

Señores buenas tardes.

Tienen un buen ejemplo o manual para programación orientada a objetos en PHP 
con MySql.

Muchas gracias.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] exec ping

2005-08-21 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
 Juan Pablo Herrera wrote:
  Thanks Jasper,
  well, i need make a explode of results of the ping. The idea is check
  a host and when the host don´ t response send a email.
  I don't explode the result of the ping.
 
 If it was me, I'd try opening a socket connection to the host instead,
 and check to see if you can connect or not. Whether or not that is
 suitable to your application I don't know...
 
 Jasper
 

Hi!
I did following script:

?php
// Exec a ping
exec('ping -c 5 192.168.236.3',$result);
// Take result from icmp seq = 2
$icmp = strpos($result[2], 'time=');

$icmp = $icmp + 5;

$fin = strpos($result[2], 'ms');
// This is my end
$fin = $fin - $icmp;
// I take only the ms time
$text = substr($result[2],$icmp,$fin);
// Strip whitespace
$ms = trim($text);

if (!is_numeric($ms)) {
  $a = '[EMAIL PROTECTED]';
  $asunto = Servidor Caido;
  $mensaje = Posible caida del servidor. No responde PING.;
  mail($a, $asunto, $mensaje);
}

?

It's very simple, but i think that is working. I will add other options.

JP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
Hi all!
I have following script:
$comando = system('ping 168.192.0.1', $nn);
echo $nn;
Well, i need that only show the first ten lines of the ping and kill
the process.
How can i make it?

Regards,
JP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] exec ping

2005-08-20 Thread Juan Pablo Herrera
On 8/21/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
 Juan Pablo Herrera wrote:
  Hi all!
  I have following script:
  $comando = system('ping 168.192.0.1', $nn);
  echo $nn;
  Well, i need that only show the first ten lines of the ping and kill
  the process.
  How can i make it?
 
 If I understand your question correctly...
 
 $comando = system('ping -c 10 168.192.0.1', $nn);
 
 Jasper


Thanks Jasper,
well, i need make a explode of results of the ping. The idea is check
a host and when the host don´ t response send a email.
I don't explode the result of the ping.

Thanks.,
JP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] XML Problem

2005-05-12 Thread Juan Antonio Garrido
Hi everybody...

I've been using DOM-XML functions for loading a XML file. When I try load it 
con domxml_open_file, it appears a message Call to undefined function: 
domxml_open_file(). 

PHP has been configured with option --with-dom=shared,/usr 
--with-xslt=shared,/usr(default install), and additional libraries was 
installed (libxml2,php4-domxml,php4-xslt and others). What library more I 
need? What can be failling?

My scenario is Debian,PHP 4.3.10-15 about Apache. 
-- 

---
Juan Antonio Garrido Mata
Emergya, Soluciones Tecnológicas
Tel. +34 954 98 10 53   FAX +34 954 98 11 79
Avda. Luis Montoto, 105.
E41007 - Sevilla(España)
[EMAIL PROTECTED]
http://www.emergya.info

---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Exec don't work

2005-05-10 Thread Juan Pablo Herrera
Hi!
I using php version 4.3.10. I have a script that used the exec
function. Well it script only work from shell, but not work form web
browser.
My php.ini:
safe_mode   Off Off
safe_mode_exec_dir  no valueno value
Have somebody experience in this problem?
Regards,
JP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP4 and PHP5 in virtual Host

2005-03-25 Thread Juan Pablo Herrera
Hi!
I have apache, php4 and php5 on my server.
I use virtual host in this server. The virtual host have or not PHP4 using:
php_admin_flag engine off/on in apache2.conf
How can i use PHP5 or PHP4 or both?
PHP4 is running as module and PHP5 is running as cgi.

Regards,
JP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Test Send

2005-03-25 Thread Juan Pablo Herrera
I can't send email. Right?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP4 and PHP5 in virtual Host

2005-03-24 Thread Juan Pablo Herrera
Hi!
I have apache, php4 and php5 on my server.
I use virtual host in this server. The virtual host have or not PHP4 using:
php_admin_flag engine off/on in apache2.conf
How can i use PHP5 or PHP4 or both?
PHP4 is running as module and PHP5 is running as cgi.

Regards,
JP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with XML

2005-02-24 Thread Juan Antonio Garrido
Hi everybody

What functions should be use for XML in PHP 4? I've tried with DOM Functions 
but it appears an error not class, DOM-XML Functions(experimental) don't 
work well. 

Thank you...
-- 

---
Juan Antonio Garrido Mata
Emergya, Soluciones Tecnológicas
Tel. +34 954 98 10 53   FAX +34 954 98 11 79
Avda. Luis Montoto, 105.
E41007 - Sevilla(España)
[EMAIL PROTECTED]
http://www.emergya.info

---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Problems with print html to pdf

2005-02-17 Thread Juan Antonio Garrido
Hi everybody:

Does it exists someone library I can print html files to pdf without it loss 
information about my property css classes(background,color,width...)?

With GPL library HTML_To_PDF3.3 it isn't possible... 

If the library is GPL much better.

Thank you for all...
-- 

---
Juan Antonio Garrido Mata
Emergya S.L
Tel. +34 954 98 10 53  FAX +34 954 98 11 79
Avda. Luis Montoto, 105.
E41007 - Sevilla(España)
[EMAIL PROTECTED]
http://www.emergya.info

---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Obtaining the base dir of a file in a web server

2005-01-17 Thread Juan Antonio Garrido
Hi everybody:

I use this sentence ($htmlFile = $_SERVER['DOCUMENT_ROOT'] ) for obtaining the 
complete route of a file in my web server, but  inserts a white space to 
final char and i need remove it. I use the trim function but it continue 
there. How can i remove it? Can it be anohter char?

-- 

---
Juan Antonio Garrido Mata
Emergya S.C.A
Tel. +34 954 98 10 53  FAX +34 954 98 11 79
Avda. Luis Montoto, 105.
E41007 - Sevilla(España)
[EMAIL PROTECTED]
http://www.emergya.info

---

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] curl CUSTOMREQUEST

2004-12-21 Thread Juan Nin
I saw a post at http://www.php.net/manual/en/ref.curl.php where it says:

Using the customrequest for a complete post is wrong. Libcurl will add
a partial url, the http version and the standard headers after the post
data - while this works with a non-persistent connection and an apache
web server, it may fail under different conditions

Does anybody know a bit more on this?? (I sent an e-mail to the one
who posted it, but the address does not longer exist)

I tested the following code and didn't experience any problem:

?

$url =  http://www.mydomain.com;;

$request = GET / HTTP/1.1\r\n.
   Host: www.mydomain.com\r\n\r\n;
   
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 15);
curl_setopt ($ch,CURLOPT_CUSTOMREQUEST , $request);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$reply = curl_exec($ch);
curl_close ($ch);

echo 'pre';
echo $reply;

?

but using ngrep on a server of mine I can see this as the request:

GET / HTTP/1.1.
Host: www.mydomain.com.
.
 / HTTP/1.1.
Host: www.mydomain.com.
Pragma: no-cache.
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*.


may be this is what he's talking about when he says about the data
libcurl will add?

does anybody know under which circumstances may this fail??

thanks in advance,

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD, problem adding text to GIF images

2004-12-16 Thread Juan Nin
Hi,

I'm adding text to images using the native gd in PHP 4.3.9

I have no problems with jpg images, but with gif ones, the colour of
the text added to the image always results a dark grey
The image itself and text are fine, but not the colour, which should be white..

Has anyone experienced this problem?

Used functions are:


imagecreatefromgif
imagettftext
imagegif


Thanks in advance,

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Fatal error

2004-10-16 Thread Juan Pablo Herrera
In your script use set_time_limit(0), and look
http://ar2.php.net/manual/en/function.set-time-limit.php for understand
the function.
Regards,
JP

 Dear members,I get an error,What does mean my error? :
 Fatal error: Maximum execution time of 30 seconds
 exceeded in /var/www/html/votting/vote_implement.php
 on line 8

 =
 -DIGITAL  SIGNATURE---
 ///Mohsen Pahlevanzadeh
 Network administrator   programmer
  My home phone is: +98213810146
 My email address is
  m_pahlevanzadeh at yahoo dot com
 My website is: http://webnegar.net
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] intenger

2004-10-14 Thread Juan Pablo Herrera
Please, i need output a intenger, what function can i use for this?.
Print?, echo?

Thank you.
JP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Memory Usage

2004-10-04 Thread Juan Pablo Herrera
Hi!
I need management the use of the memory when a php script is execute. How
can i do it?.I know mysql_free_result for free all memory associated with the result,
is it all?.
Regards,
JP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
Hi!
I need make a cron file, for example a .job file:
#mi  hodimeseq  jobcomment
45   11**  0-5 php -q /home/test/test.php  # Make backup
How can make it?.

Regards.
JP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
sorry, my cuestion is about the construction of the job file with php.
I send parameters via POST: day, hours, minute, sentence for execuite with
cron. This is cached for a php file that make the job file. Well, my
problem is make this php file.I think to use file() for this, but maybe somebody think 
other idea.

Regards,
JP

 Jay Blanchard wrote:
 [snip]
 I need make a cron file, for example a .job file:
 #mi  hodimeseq  jobcomment 45
  11**  0-5 php -q /home/test/test.php  # Make backup
 How can make it?.
 [/snip]

 Type crontab -e and the cron file will be openedunless you're on a
 Windows machine
 in both cases, this is the wrong list to ask this.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Using '

2004-09-22 Thread Juan Pablo Herrera
Hi!
i have:
$html = '
 html
   MY HTML
 /html
 ';
Inside of my html i used ', this produced a parse error, how can i solved
it?.
Regards,
JP



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Using '

2004-09-22 Thread Juan Pablo Herrera
Hi!
I solved using adslashes in $html and replace ' with .

Thanks!!
Regards!

JP



 Just remember to make sure that the closing EOD; is flush with the left
 margin an that there are NO spaces and NO other characters to the left
 of it or PHP will give you a PARSE error


 On Wed, 22 Sep 2004 11:56:54 -0400, François Moreau
 [EMAIL PROTECTED] wrote:
 Hi Juan,
You might consider using the Heredoc syntax, as presented here :
 http://www.php.net/manual/en/
 language.types.string.php#language.types.string.syntax.heredoc

 Your code snippet would look like this and do exactly what you had
 intended :

 $html = EOD
HTML
YOUR HTML
/HTML
 EOD;

 François

 Le 04-09-22, à 11:55, Juan Pablo Herrera a écrit :



  Hi!
  i have:
  $html = '
   html
 MY HTML
   /html
   ';
  Inside of my html i used ', this produced a parse error, how can i
  solved
  it?.
  Regards,
  JP
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problem compailing php-4.3.6 please help !!!!! CAn someone PLEA SE HELP !!!!

2004-09-16 Thread Juan Fernandez


Hi, 

  

I am installing php-4.3.6 on Fedora, 

  

When I am compiling I receive the following error : 

  

[EMAIL PROTECTED] php-4.3.6]# make install 

Installing PHP SAPI module:   apache2handler 

/www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la 
/www/modules 

/www/build/libtool --mode=install cp libphp4.la /www/modules/ 

cp .libs/libphp4.lai /www/modules/libphp4.la 

cp .libs/libphp4.a /www/modules/libphp4.a 

ranlib /www/modules/libphp4.a 

chmod 644 /www/modules/libphp4.a 

libtool: install: warning: remember to run `libtool --finish 
/root/snortinstall/php-4.3.6/libs' 

Warning!  dlname not found in /www/modules/libphp4.la. 

Assuming installing a .so rather than a libtool archive. 

chmod 755 /www/modules/libphp4.so 

chmod: failed to get attributes of `/www/modules/libphp4.so': No such file 
or directory 

apxs:Error: Command failed with rc=65536 

. 

make: *** [install-sapi] Error 1 

  

  

what can I do ? 

  

Thanks !!! 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] problem compailing php-4.3.6 please help !!!!!

2004-09-15 Thread Juan Fernandez
Hi,

 

I am installing php-4.3.6 on Fedora,

 

When I am compiling I receive the following error :

 

[EMAIL PROTECTED] php-4.3.6]# make install

Installing PHP SAPI module:   apache2handler

/www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la
/www/modules

/www/build/libtool --mode=install cp libphp4.la /www/modules/

cp .libs/libphp4.lai /www/modules/libphp4.la

cp .libs/libphp4.a /www/modules/libphp4.a

ranlib /www/modules/libphp4.a

chmod 644 /www/modules/libphp4.a

libtool: install: warning: remember to run `libtool --finish
/root/snortinstall/php-4.3.6/libs'

Warning!  dlname not found in /www/modules/libphp4.la.

Assuming installing a .so rather than a libtool archive.

chmod 755 /www/modules/libphp4.so

chmod: failed to get attributes of `/www/modules/libphp4.so': No such file
or directory

apxs:Error: Command failed with rc=65536

.

make: *** [install-sapi] Error 1

 

 

what can I do ? 

 

Thanks !!!



[PHP] problem compailing php-4.3.6 please help !!!!!

2004-09-15 Thread Juan Fernandez
Hi, 

  

I am installing php-4.3.6 on Fedora, 

  

When I am compiling I receive the following error : 

  

[EMAIL PROTECTED] php-4.3.6]# make install 

Installing PHP SAPI module:   apache2handler 

/www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la 
/www/modules 

/www/build/libtool --mode=install cp libphp4.la /www/modules/ 

cp .libs/libphp4.lai /www/modules/libphp4.la 

cp .libs/libphp4.a /www/modules/libphp4.a 

ranlib /www/modules/libphp4.a 

chmod 644 /www/modules/libphp4.a 

libtool: install: warning: remember to run `libtool --finish 
/root/snortinstall/php-4.3.6/libs' 

Warning!  dlname not found in /www/modules/libphp4.la. 

Assuming installing a .so rather than a libtool archive. 

chmod 755 /www/modules/libphp4.so 

chmod: failed to get attributes of `/www/modules/libphp4.so': No such file 
or directory 

apxs:Error: Command failed with rc=65536 

. 

make: *** [install-sapi] Error 1 

  

  

what can I do ? 

  

Thanks !!! 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ZIP

2004-09-14 Thread Juan Pablo Herrera
HI!
I need catch many files in my server and make a zip file. In pear i not
see nothing. I think use exec for contruction a zip file. Any idea?
Regards,
JP

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP with Access DB without ODBC

2004-09-01 Thread Juan Torres
Hello,

how can i connect php with an access db. I need to do it without use ODBC.

Thanks,
Juan Torres.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] looking for a good FormMail PHP script

2004-08-16 Thread Juan Nin
raditha dissanayake wrote:
This mail probably shows how little you know about matt wright's 
FormMail more than anything else - just to give you an idea it's banned 
on all shared servers  of our ISP.
I'm very aware of the FormMail.pl's problems and bugs, and I'm 
definetely not going to use it... didn't you read in my previous mails, 
that I said that I wanted a similar script but that it lacked of Matt's 
script security and SPAM-exploitable problems??

If I liked Matt script, I'd just use it instead of looking for another 
different script, don't you think??

It seems like *you have obviuosly not read my previous e-mails*   ;)
Anyway, this is getting off-topic, so let's cut it here..
regards,
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] looking for a good FormMail PHP script

2004-08-15 Thread Juan Nin
Hannes Magnusson wrote:
Are we just suppost to know Matt Wright's FormMail.pl ? 
Matt Wright's FormMail.pl script is a very well known script, that's 
been used by thousands of people for several years. So it was very 
likely that many of the people who read the e-mail knew what I was 
talking about...

This list consists not only of PHP programmers, but there are also 
people who know many other languages like Perl, or work administrating 
servers, etc, so many can know what this script is...

Moreover, the name FormMail is quite descriptive, and there are other 
FormMail scripts written in several languages that acomplish the same 
task, so not knowing Matt's script does not mean that you don't know 
what a FormMail script is.. (obviously not everyone knows what a 
FormMail script does, but obviously not everyone in the list should know 
about certain topics)

Or are we suppost to google to check that out so we can answear your question?
I don't expect that...
I have many times googled about things that someone asked on a list and 
I didn't know what it was.. just for me to know what it as, or to see if 
I could help this person... I don't expect others to do it, but it 
doesn't mean that someone can't do it either..

but I also expect a more polite reply than you have obviously not read 
the PHP manual or RTFM, since it was definitely and obviously not the 
case...

I know this list is a bit differente from others, there are many newbies
who use to ask how do I do this without RTFM or STFW, and there is a 
mix of *NIX, Windows and others users, and sometimes that sort of things
, which are always the same, fed up people, but I was not asking some 
stupid question because of not RTFM...

Anyway, http://pear.php.net/package-search.php?pkg_name=mailbool=ANDsubmit=Search any help?
nope, thos are packages for mime decoding (which I have used in other 
projects), access for pop or imap, or the most simple Mail package which 
serves for e-mail sending, just like phpMailer would do, or even the 
mail() function for more simple tasks... but that's not what I want...

I know how to send e-mail, with mail(), with phpMailer or with 
PEAR::Mail, I want a good and tested FormMail script.. if I don't find 
one, I'll use my own written, but I don't want to reinvent the wheel..

anyway, I think I'll look in other places... thanks anyway
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] looking for a good FormMail PHP script

2004-08-14 Thread Juan Nin
raditha dissanayake wrote:
Juan Nin wrote:
Hi
I'm looking for a good FormMail PHP script which beheaves like Matt 
Wright's FormMail.pl script (but lacks it's exploitable problems :)

I found several on the net, but didn't like them too much...
any recommendations?

you have obviously not looked at the PHP manual.
First of all: despite the fact that on the manual there are always 
comments and code examples, it's not the obvious place where to look for 
that...

Second, I suppose you are talking about the examples that were posted in 
the docs about the mail() function... that's not what I want... if I 
simply wanted to write a script that sends an e-mail from a defined 
form, I do it in 2 minutes...

what I want is a generic script that can be used with ANY form, just 
like Matt Wright's FormMail.pl does, and that is well written, and 
secure, that has no spam exploitable bugs, etc, like Matt's has..

I could write it myself too, I can do it, in no more than ten minutes, 
but I don't want to reinvent the wheel, and maybe if I write it, despite 
the fact that I administer mail servers, web servers and many others, 
maybe I fall under some exploitable bug too... so maybe there's an 
existing good script already written, that many people uses, and that is 
known to be good? do I explain myself?

I googled and found several, but looking at them, I didn't like them, 
because they were more like simple scripts like the ones posted in the 
docs of the mail() function, or the ones which were generic, for any 
form, weren't good, and didn't have any type of checks, and were 
obviously and easily exploitable..

so looking at the PHP manual is not the answer for me in this case, I 
don't want a 2 line script, I want something good and serious...

If anyone knows of a good script of this kind, I will appreciate  :)
thanks again,
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] looking for a good FormMail PHP script

2004-08-13 Thread Juan Nin
Hi
I'm looking for a good FormMail PHP script which beheaves like Matt 
Wright's FormMail.pl script (but lacks it's exploitable problems :)

I found several on the net, but didn't like them too much...
any recommendations?
Thanks in advance,
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Load data and Insert

2004-08-11 Thread Juan Pablo Herrera
Hi!
i need do two querys in one.
First query is a load data and the second query is insert into.
My idea is to concatenate with and, but i'not know.
Is it possible?

Regards,
Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Load data and Insert

2004-08-11 Thread Juan Pablo Herrera
 Torsten Roehr [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Juan Pablo Herrera [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi!
  i need do two querys in one.
  First query is a load data and the second query is insert into. My
  idea is to concatenate with and, but i'not know.
  Is it possible?
 
  Regards,
  Juan

 Please specify a bit more clearly *what* data you want to load *from
 where*
 and insert into *what*. Then we may be able to help you.

 Regards, Torsten Roehr

 If you refer to MySQL you can use the INSERT ... SELECT syntax to do
 this in one query. See here:
 http://dev.mysql.com/doc/mysql/en/INSERT_SELECT.html

 Regards, Torsten Roehr


It's OK, but i need concatenate load data with insert.
I have a file *.cvs that used three fields (a,b,c), my database have four
fields(a,b,c,d). The insert have the data for last field.
Regards,
Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Function Mail

2004-08-07 Thread Juan Pablo Herrera
Hi everybody,
I have a cuestion about the features on function mail. I think that it
send the email one to one address. Is it ok?.
Regards,
Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sending attachments

2004-07-07 Thread Juan Pablo Herrera
Hi!
The class it ok.
How can I put a GIF in Base64 in the message body?

Regards,
Juan

 - Original Message -
 From: Curlys [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Wednesday, July 07, 2004 1:04 PM
 Subject: [PHP] sending attachments


 can some body help me to send an email attachment ( a log file ) from
 php
 ?
 Actaually i need a real guide plz

 I used this e-mail class some time ago:

 http://www.phpbuilder.net/snippet/detail.php?type=snippetid=614


 regards,
 Ewout

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sending attachments

2004-07-07 Thread Juan Pablo Herrera
Thix class http://www.phpbuilder.net/snippet/detail.php?type=snippetid=614
it's good., but i can't embed Image in message body, i used function
embed_image.Who have experience in this class?.

Regards,
Juan


 Hi!
 The class it ok.
 How can I put a GIF in Base64 in the message body?

 Regards,
 Juan

 - Original Message -
 From: Curlys [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Wednesday, July 07, 2004 1:04 PM
 Subject: [PHP] sending attachments


 can some body help me to send an email attachment ( a log file ) from
 php
 ?
 Actaually i need a real guide plz

 I used this e-mail class some time ago:

 http://www.phpbuilder.net/snippet/detail.php?type=snippetid=614


 regards,
 Ewout

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sending attachments

2004-07-07 Thread Juan Pablo Herrera
Hi!
I'm testing HTML Mime Mail Class, it's really complete. Features:
- text
- text + attached
- html
- html + attached
- html + Embeds

Who has experience with this class?

Regards,
Juan


 This class
 http://www.phpbuilder.net/snippet/detail.php?type=snippetid=614 it's
 good., but i can't embed Image in message body, i used function
 embed_image.Who have experience in this class?.

 Regards,
 Juan


 Hi!
 The class it ok.
 How can I put a GIF in Base64 in the message body?

 Regards,
 Juan

 - Original Message -
 From: Curlys [EMAIL PROTECTED]
 To: PHP [EMAIL PROTECTED]
 Sent: Wednesday, July 07, 2004 1:04 PM
 Subject: [PHP] sending attachments


 can some body help me to send an email attachment ( a log file )
 from php
 ?
 Actaually i need a real guide plz

 I used this e-mail class some time ago:

 http://www.phpbuilder.net/snippet/detail.php?type=snippetid=614


 regards,
 Ewout

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] CHAT

2004-06-29 Thread Juan Pablo Herrera
Hi!
I need a chat program in php with GNU License. What's experience whith
chat program in PHP?
regards,
Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] CHAT

2004-06-29 Thread Juan Pablo Herrera
 Juan Pablo Herrera wrote:
 Hi!
 I need a chat program in php with GNU License. What's experience whith
 chat program in PHP? regards, Juan Pablo

 G-O-O-G-L-E:

 Search:  php chat program gnu

 http://www.google.ca/search?q=php+chat+program+gnuie=UTF-8hl=enmeta


Thank you,
but i am not answer Where.
Experience?

Regards,

Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: MHTML in email

2004-06-24 Thread Juan Pablo Herrera
Thank you,
really i need incluided in email body a image (jpg or gif), too see html.
The MHTML file is a idea, but i think that not function with dinamic
content.How can i do this?
Thank you!

Juan

 Hello,

 On 06/23/2004 06:15 PM, Juan Pablo Herrera wrote:
 I need to attach a file extension .mhtml in function mail, but i too
 need view the content from the body of e-mail.That is everything!

 MHTML messages are just HTML messages with alternative plain text
 version in the same body.

 You may want to take a look at this class that lets you compose MHTML
 messages easily:

 http://www.phpclasses.org/mimemessage


 --

 Regards,
 Manuel Lemos

 PHP Classes - Free ready to use OOP components written in PHP
 http://www.phpclasses.org/

 PHP Reviews - Reviews of PHP books and other products
 http://www.phpclasses.org/reviews/

 Metastorage - Data object relational mapping layer generator
 http://www.meta-language.net/metastorage.html

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: MHTML in email

2004-06-24 Thread Juan Pablo Herrera
Thank you Manuel,
Tomorrow i work on this class. My idea is make a app that send newsletters
with html + image included. It app shows tracert when the email is open.Know you 
some app that make this?.

Regards,
Juan


 Hello,

 On 06/24/2004 01:59 PM, Juan Pablo Herrera wrote:
 Thank you,
 really i need incluided in email body a image (jpg or gif), too see
 html. The MHTML file is a idea, but i think that not function with
 dinamic content.How can i do this?

 Yes, this class can do exactly that using multipart/relative parts. The
  HTML message example that comes with the class demonstrates clearly
 how  to compose multipart/related in multipart/alternative messages. It
 shows  how to send an HTML message using images in the body HTML and
 also as a  background.


I need to attach a file extension .mhtml in function mail, but i too
need view the content from the body of e-mail.That is everything!

MHTML messages are just HTML messages with alternative plain text
version in the same body.

You may want to take a look at this class that lets you compose MHTML
messages easily:

http://www.phpclasses.org/mimemessage

 --

 Regards,
 Manuel Lemos

 PHP Classes - Free ready to use OOP components written in PHP
 http://www.phpclasses.org/

 PHP Reviews - Reviews of PHP books and other products
 http://www.phpclasses.org/reviews/

 Metastorage - Data object relational mapping layer generator
 http://www.meta-language.net/metastorage.html

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] MHTML in email

2004-06-23 Thread Juan Pablo Herrera
Hi!
I need to attach a file extension .mhtml in function mail, but i too need
view the content from the body of e-mail.That is everything!

Regards,
Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Function Date

2004-06-14 Thread Juan Pablo Herrera
Hi!
I am using date(j M Y), the format date is 14 Jun 2004, but i need this
format 14 JUN 2004. The unique difference is Jun - JUN. How can i change
this?.
Thank You,
Juan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Function Date

2004-06-14 Thread Juan Pablo Herrera
Yes!
That's right!
Thank you

Juan

 Hello Juan,

 Monday, June 14, 2004, 6:04:56 PM, you wrote:

 JPH I am using date(j M Y), the format date is 14 Jun 2004, but i
 need this JPH format 14 JUN 2004. The unique difference is Jun - JUN.
 How can i change JPH this?.

 $date = strtoupper(date('j M Y'));

 :)

 Best regards,

 Richard Davey
 --
 http://www.launchcode.co.uk - PHP Development Services
 I am not young enough to know everything. - Oscar Wilde

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Image Map

2004-06-14 Thread Juan Pablo Herrera
Hi!
How can i make an image map with image function php?
My idea is make a similar concept to
http://www.infobae.com/ediciondigital/paginas.php
Thank you!

Juan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Load Data

2004-06-10 Thread Juan Pablo Herrera
Hello!
I need a problem with mysql Load Data. PHP say: Access denied for user:
'[EMAIL PROTECTED]' (Using password: YES), but my user and password is
correct.The sql query is:
$query_string2 = LOAD DATA INFILE
'/usr/local/psa/home/vhosts/allaria.com.ar/httpdocs/XLS/precios' REPLACE
INTO TABLE precio FIELDS TERMINATED BY ',' ENCLOSED BY '\' LINES
TERMINATED BY '\n';
I used a vhost, what's a problem?

Regards.
Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] AW: xml - xslt - xsl:fo - pdf

2004-05-26 Thread Vazquez, Juan
Thanks a lot for your help.
I don't think I will buy any licenses (it is for private use); but I have foun a 
workaround; I can convert txt to pdf by using FPDF ( http://www.fpdf.org/ )not a 100% 
XML based solution but it will work. I will wait until xsl:fo conversion to PDF 
possible is by using only php (mybe a future extension of Sablotron or something like 
this).

Anyway thanks a lot

Juan

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 26. Mai 2004 11:44
An: Vazquez, Juan; [EMAIL PROTECTED]
Betreff: Re: xml - xslt - xsl:fo - pdf


Hi

I'm afraid I don't know anything about the xml/xsl:fo part of the 
process but once you have the data in a usable form in your 
program you can use PDFLIB functions to create a pdf from it.  I 
have used it very successfully.  It does involve compiling libraries 
and you may well have to pay a license fee (although there are free 
but more complex options).  The following page gives info and links: 
http://uk2.php.net/pdf

regards
Hilary Boyce

On 24 May 2004 at 18:53, juan vazquez wrote:

 Hi,
 
 
 
 I am trying to transform a xsl:fo file to pdf.
 
 
 
 I generate xml files from mysql and I can convert them to xsl:fo using 
 xslt but I can't find information for the last step (XSL:FO to PDF)
 
 
 
 I just know that a formatter is needed but all what I found where 
 java, jade or .net based solutions.
 
 
 
 is there any 100% php solution for this problem?.
 
 Environment: Apache 2.0.47, PHP 4.3.2, mysql 4.0.13 running on WXP
 
 
 
 Thanks a lot in advance for your help
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] xml - xslt - xsl:fo - pdf

2004-05-24 Thread juan vazquez
Hi,



I am trying to transform a xsl:fo file to pdf.



I generate xml files from mysql and I can convert them to xsl:fo using xslt
but I can't find information for the last step (XSL:FO to PDF)



I just know that a formatter is needed but all what I found where java, jade
or .net based solutions.



is there any 100% php solution for this problem?.

Environment: Apache 2.0.47, PHP 4.3.2, mysql 4.0.13 running on WXP



Thanks a lot in advance for your help

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Load Data infile

2004-05-13 Thread Juan Pablo Herrera
Hi!
I need do load data infile in mysql:
$query_string2 = LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO TABLE
`test` FIELDS TERMINATED BY ',' ENCLOSED BY '\' ESCAPED BY '\\' LINES
TERMINATED BY '\n';$query_db_string2 = mysql_query($query_string2);
But not realize nothing with execution the script.

Thank you!
Regards!

Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Load Data infile

2004-05-13 Thread Juan Pablo Herrera
 [snip]
 I need do load data infile in mysql:
 $query_string2 = LOAD DATA INFILE '/var/www/xls/test' REPLACE INTO
 TABLE
 `test` FIELDS TERMINATED BY ',' ENCLOSED BY '\' ESCAPED BY '\\' LINES
 TERMINATED BY '\n';$query_db_string2 = mysql_query($query_string2);
 But not realize nothing with execution the script.
 [/snip]

 have you checked mysql_error() ?

yes,
You have an error in your SQL syntax near ''' at line 2
but i change '\' and not work.

Thank you,

Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Socket

2004-05-06 Thread Juan Pablo Herrera
Hi!
Please, i need a tutorial about socket. I read php.net but the examples is
lost.
Regards,
Juan Pablo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php_admin_value's from httpd.conf Override'd in .htaccess files

2004-04-03 Thread Juan Velasquez
so, if I set php_admin_value open_basedir in httpd.conf,  and I give
.htaccess AllowOverride permissions,  can users Override the
open-basedir I set?   And, how can I give out some Override's, but not
php_admin_value's?


[PHP] PHP + XSL-FO

2004-04-02 Thread Juan Torres
Hello,

can PHP parser a XML file with a XSL-FO file to generate a PDF file?

Greetings.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: XSLT bug?

2004-04-02 Thread Juan Torres
Try this:

xsl:if test=position() #60; $start

Good Luck.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ldap_8859_to_t61

2004-03-24 Thread Juan Angel Martin
Hi all,

I'm trying to use the LDAP function ldap_8859_to_t61() but I get this error:
PHP Fatal error: Call to undefined function: ldap_8859_to_t61()

The PHP version is 4.3.3 and I use others LDAP functions like ldap_connect()
without any problem.

Can anyone help me?

Thanks in advance
Juanan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache Using up all memory

2004-03-06 Thread Juan E Suris
Hi!

I have a problem with PHP and Apache, where Apache uses up a huge amount of memory. 
What happens is that I have a PHP script that creates a file on the fly and sends it 
directly to the broswer (as an attachment, so that the user can save it). The problem 
is that when the file is big and the client download speed is slow, the Apache process 
uses up as much memory as the file size. My guess here is that PHP keeps writing data 
as fast as it can, and Apache caches it in memory until the user can download it all.

Is there any way to avoid this?

My apologies if this is an obvious question.

Thanks,
Juan 

Re: [PHP] PHP and Apache Using up all memory

2004-03-06 Thread Juan E Suris
Right now I am genereating the file offline and using a hyperlink, but that
creates double the disk I/O. It reads some files (which the big file is
based on), writes the big file, and reads the big file (to deliver it when
the user clicks the hyperlink). If I could just create the file and deliver
it as I create it, I would save the write/read to/from disk of the big file.

Output buffering is off in php.ini:
output_buffering = Off

So that does not seem to be it. Maybe the problem should be address on
Apache instead of PHP?
Thanks,
Juan

- Original Message - 
From: Raditha Dissanayake [EMAIL PROTECTED]
To: Juan E Suris [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 11:44 PM
Subject: Re: [PHP] PHP and Apache Using up all memory


 Hi Juan,

 What you can do is to switch off output buffering. If it is a really
 large file you might want to generate the file offline and deliver it
 using the more conventional hyperlink.

 all the best

 Juan E Suris wrote:

 Hi!
 
 I have a problem with PHP and Apache, where Apache uses up a huge amount
of memory. What happens is that I have a PHP script that creates a file on
the fly and sends it directly to the broswer (as an attachment, so that the
user can save it). The problem is that when the file is big and the client
download speed is slow, the Apache process uses up as much memory as the
file size. My guess here is that PHP keeps writing data as fast as it can,
and Apache caches it in memory until the user can download it all.
 
 Is there any way to avoid this?
 
 My apologies if this is an obvious question.
 
 Thanks,
 Juan
 
 


 -- 
 Raditha Dissanayake.
 ---
 http://www.radinks.net/ftp/applet/
 An applet that breaks all the rules. Reads, Writes and deletes files on
 your hard disk. Uploads what's left to a third party server.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP class for XSL transformations?

2004-02-20 Thread Juan Torres
Hi,

you try with XMLDOM Functions. You look this function:
DomXsltStylesheet-process --  Applies the XSLT-Transformation on a
DomDocument Object

Good luck!
Juan Torres.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello all,

 I'm looking for an alternative to PHP's XSLT extension. Does anyone
 know of a good PHP class capable of performing XSL transformations?

 Thanks for your time,

 Erik

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] undelivery mails

2004-02-20 Thread Juan Cortabitarte
I need to send a newsletter and I need to know all mail addresses of the
undelivery  mails to update the database.
Any suggestion? Do I need to parse the maillog?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF - Coords

2004-02-19 Thread Juan Torres
Thanks very much!
You are very nice.
If you want to practise your spanish, you can write me when you want.

Muchos saludos desde España.
Hasta pronto.

Juan Torres.

Jyry Kuukkanen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Thu, 19 Feb 2004, Juan Torres wrote:

  ¡Hola!
 
  Excuse me, but my english is bad :(.
 
  My problem is: When I'm writting text in a PDF document, I want to know
the
  current position, or next position of next text to insert.
 
  I want to know when I'm near the finish page.


 ¡Hola!

 There is no need nor a reason to find out current position using PDF
 functions.

 If you are outputting lines after lines, you need to keep track of the
 y-position by yourself. The following simple and ugly piece of code should
 demostrate the logic:

 define(MAX_Y_POS, 300);
 define(ROW_HEIGHT, 4);
 $y_pos = 0;
 foreach ($many_rows as $row) {
 if ($y_pos  MAX_Y_POS) {
 makePageChange();
 $y_pos = 0;
 }; // if
 $y_pos += ROW_HEIGHT;

 printRow($row);
 }; // foreach


 If you use pdflib, you might want to take a look at sopdf.php - it's
 available from dataxi.sourceforge.net. Get the latest version of
 solib.tar.gz - that includes sopdf.php



  PD: Do you know Spain or spanish language? ;)

 ¡Si! Estudio español - este es segundo año, bastante listo :-)
 Ahora leo un libro de Montalbán, de Pepe Carvalho :-)))

 --
 Regards,
 --Jyry
 C|:-(C|:-/C|8-OC|8-/C|:-(

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] headers_list function

2004-02-19 Thread Juan Torres
Hi,

how can I use 'header_list()' function. My manual says: Might be only in
CVS.
What is CVS? How do I install CVS?

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail()

2004-02-18 Thread Juan Torres
thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PDF

2004-02-18 Thread Juan Torres
Hi,

How can I  write special characters (á, ö, ñ, ç,...) in a pdf document?

I'm using pdflib.

Greetings.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PDF

2004-02-18 Thread Juan Torres
Thank you

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] XSL-FO

2004-02-18 Thread Juan Torres
Hi,

Does PHP allow parser a XML with a XSL-FO and create a PDF?

Greetings.
Juan Torres.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PDF - Coords

2004-02-18 Thread Juan Torres
Hi,

How can I know the currents coordenades of my pdf document?

Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



  1   2   >