[PHP-DEV] PHP file writing to static HTML file. PLEASE HELP

2003-02-19 Thread Jonathan Moore
hello,
i am in a bind..

i need to know how to make a dynamic php page write to a static html page.

example: a php file pulls info from a database, such as name and location.
once it grabs this information, it needs to write the data to a static html
file for archiving.

i have explored different file system objects and have ended up more
confused than i began..

if you have any help, please send it to [EMAIL PROTECTED]

thanks!!
Jon



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




[PHP-DEV] Hello ! How to write a PHP porgramme which run in given time ?

2002-11-28 Thread Jonathan
Dear all ,
 Hello ! I am a student and going to write a suit of programme . The
producers as follow

 producer 1.
 User A add an new appointment A ( "open Winamp at 2:30 on computer B")
through IE in his local computer A .

 producer 2.
 Computer A send the message to server A through http . The Servlet /
ASP.net which locates on server A receives the message and send message to
computer B (IP or domain name of computer B is given , named
"www.computerB.com") .

 producer 3.
 Computer B receives the message from server A through http at 1:01 . It is
expected to implement the new added appointment A ( "open Winamp at 2:30 on
computer B" ) at given time .

 I know what to implement the producer 1 and 2. However , I don't know how
to implement producer 3. Do you mind to tell me how to make an PHP programme
to execute a centian routine at a given time ? Thank you !
Jonathan



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] PHP Memory Error

2002-11-27 Thread Jonathan Williams
Could someone please help.  Running Linux 7.3 RH with 512 MB Ram with Apache
and PHP 4.  I receive the following error and was wondering if anyone had
any suggestions.  The error: Fatal error: Allowed memory size of 8388608
bytes exhausted (tried to allocate 35 bytes) in
/var/www/html/vc/test_fort/bootstrap.php on line 267.  Is there a server
setting eliminating the ability to allocate more memory.  Any suggestions
would be helpful.  You can reply to [EMAIL PROTECTED] as well.






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




Re: [PHP-DEV] short_open_tag

2002-10-15 Thread Jonathan Sharp

Is it possible to have  would be php, unless 
you've define('xml'...). Even then it would most likely by  or 


So it seems that >>I am still +1 on some how getting away from short_open_tag support, if
>>>nothing else, to encourage better coding practices (just as we did
>>>with turning register_globals off by default).
>>
>>I fail to see how using >plan on distributing your code to the masses or mixing XML/XHTML without
>>trivially escaping it, I see absolutely no point in using  
> 
> The web is a rapidly changing market and standards are being activley
> evolved.  and its not about XML document headers.
> 
> 
>>In reality, very few people intermix PHP and XML.  It just doesn't make
>>a whole lot of sense to do so.  People tend to keep the two separate and
>>parse the XML from PHP.
> 
> 
> I have written semi static XML document from php before (for speed reasons
> over using an output parser). EG:
> 
> 
> 
>   
> 
>   
> 
> 
>>In the XHTML case, a lot of people mistakenly believe that they must
>>start their documents with an  tag, which if you
>>read the XHTML spec, is actually not necessary. The only use for the XML
>>encoding tag is for XML parsers to get the right character encoding.
>>Browsers, which are typically the target of PHP generated pages, get
>>their character encoding from the Content-type header, or optionally
>>from a similar meta tag. But even if you choose to put in the XML
>>encoding tag, I find it a hell of a lot easier to just put >encoding="foobar"?>'?> at the top instead of changing hundreds of >tags to  
> 
> The other advantage is to force people one way or the other. In the case
> of 50% of servers allowing short tags, and the other not... a script using
> short tags will only work on 50% of PHP installations (just as a script
> that relies on register_globals will only work on servers with it switched
> on).
> 
> The only way around that problem is:
>  1. to force short tags on everywhere
>  2. to force people to use a tagging which is available everywhere
> 
> 
>>PHP became popular because it eliminated most of the tediousness of
>>writing CGI scripts or low-level Apache modules.  If we slowly but
>>surely eliminate all the convenience aspects of PHP we are going to turn
>>the experience back into one of tedium again.
> 
> 
> Then surely short tags should be forced on in all cases if its a core
> offering of the php scripting language?
> 
> 
>>PHP is not a pure language.  It never will be.  The problem it solves is
>>ugly.  Ugly problems often require ugly solutions.  Solving an ugly
>>problem in a pure manner is bloody hard.  PHP's aim is to make solving
>>the web problem easy.  Ergo, therefore, Q.E.D, removing all the "ugly"
>>features of PHP is going to make it harder and harder to use PHP to
>>solve the web problem.
>>
>>-Rasmus
> 
> 
> 




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




Re: [PHP-DEV] Tip of the day: embedding php code in scripts

2002-05-22 Thread Jonathan Sharp

Also it could be usefull in creating a wrapped & suid exec that would be
completely self-contained...

-js

- Original Message -
From: "Stig S. Bakken" <[EMAIL PROTECTED]>
To: "Preston L. Bannister" <[EMAIL PROTECTED]>
Cc: "Stig S. Bakken" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 20, 2002 4:38 PM
Subject: RE: [PHP-DEV] Tip of the day: embedding php code in scripts


> On Mon, 2002-05-20 at 19:21, Preston L. Bannister wrote:
> > From: Stig S. Bakken [mailto:[EMAIL PROTECTED]]
> > > Did anyone come up with this one before or do I have a "first post"?
:-)
> > >
> > > #!/bin/sh
> > > exec php -d output_buffering=1 $0 $@
> > >  > > ob_end_clean();
> > > print "Hello World!\n";
> > > ?>
> >
> > Or the shorter (and faster) version:
> >
> > #!/usr/local/bin/php -d output_buffering=1
> >  > ob_end_clean();
> > print "Hello World!\n";
> > ?>
> >
> > Or perhaps you had something else in mind?
>
> Uhm, well, you could just drop the output buffering in this case.  I had
> the specific "embed in sh script" case in mind.
>
> > I believe most (all?) modern Unix implementations do #! handling
> > in the kernel's exec() function, so you avoid the /bin/sh startup.
>
> Sure.  The point is that you may not know the real path to the PHP
> executable, or you want to run PHP from a file that is processed with sh
> for some other reason.
>
> Another solution could be "#!/usr/bin/env php", all of the systems I've
> tested with had env in /usr/bin, but it's still not as cool :-)
>
>  - Stig
>
>
> --
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



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




[PHP-DEV] domxml & Entity Ref Nodes

2002-02-24 Thread Jonathan P Springer

Greetings.

I discovered in domxml, that when using 'children' on an entity
reference node, the array returned is for the appropriate entity, plus
all entities after it in libxml's internal list of entities.

The patch below fixes this problem (but not too elegantly; if someone
wants to override 'children' instead, feel free...)

-- 
-Jonathan P Springer <[EMAIL PROTECTED]>
--
"A standard is an arbitrary solution to a recurring problem." - Joe Hazen

Index: ext/domxml/php_domxml.c
===
RCS file: /repository/php4/ext/domxml/php_domxml.c,v
retrieving revision 1.117
diff -u -c -r1.117 php_domxml.c
cvs server: conflicting specifications of output style
*** ext/domxml/php_domxml.c   20 Feb 2002 23:35:20 - 1.117
--- ext/domxml/php_domxml.c   24 Feb 2002 20:55:20 -
***
*** 984,989 
--- 984,990 
 xmlNodePtr nodep = obj;
 object_init_ex(wrapper, domxmlentityref_class_entry);
 rsrc_type = le_domxmlentityrefp;
+add_property_long(wrapper, "type", Z_TYPE_P(nodep));
 add_property_stringl(wrapper, "name", (char *) nodep->name,
strlen(nodep->name), 1);
 break;
  }
***
*** 1787,1792 
--- 1788,1796 
  child = php_domobject_new(last, &ret TSRMLS_CC);
  add_next_index_zval(return_value, child);
  last = last->next;
+ 
+ /*  TRICKY:  For entity refs, we only want to assign one  */
+ if ((Z_TYPE_P(nodep) == XML_ENTITY_REF_NODE)) break;
   }
  }
  /* }}} */


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Extension checkins?

2001-11-02 Thread Jonathan Gillette

On Thu, 1 Nov 2001 18:25:52 -0600, [EMAIL PROTECTED] (Matt McClanahan) wrote:
> Mentioning what it does may be a good start..

I have been in communication with the developer for DbTcp 
[http://www.fastflow.it/dbftp/], a proxy server for Windows ODBC connections.  I rely 
on PHP for production work and recently encountered a large client that needed a 
site to interface with their FoxPro database.  I scoured the web, including the PHP 
mailing lists, major code repositories and such.  I experimented with iODBC, unixODBC, 
ODBCSocketServer with unacceptable results.  I used 
ODBCSocketServer for a week until I discovered that it can't handle large result sets 
from the database.  DbTcp is a similiar setup to ODBCSocketServer, in that you run a 
service on the Windows machine that communicates through 
TCP/IP.  It doesn't seem to have the limitations of other software (in that it is 
handling 233,000 row result sets without a problem), it is currently GPL, and is in 
active development.

The current distribution of DbTcp comes with a PHP extension and this week I've spent 
some time in communication with the author in bringing the extension up to speed.  
We've debugged some issues, rounded out the memory 
management better, we're allowing for persistent connections now, and it's becoming 
par with the other PHP database extensions.  I know much could still be done to 
libdbftp to ensure it is cross-platform, but I have it performing well 
on both a Linux box and a FreeBSD box.

I'm not trying to market this extension, or make it sound like the answer to 
everything.  I'm not sure what the general need for an ODBC bridge is.  For unixODBC, 
I know Easysoft's ODBC-ODBC bridge sells for $400-$5600 depending 
on the license.  I think that's an indication of the need.

The author, Giussani Cristian, has opened a public project at SourceForge 
[http://sourceforge.net/projects/dbtcp/] and checked the source code in.  I'm 
interested in any feedback concerning the module itself and a possible place 
as an extension included in the PHP distribution.  I'd certainly like to see the 
project progress into public view, so other people aren't banging their heads against 
other projects that are still unstable.

Much appreciated,

Jonathan


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Extension checkins?

2001-11-01 Thread Jonathan Gillette

Hi.  I'm aware of an extension that would fit quite nicely into the current set.  
What's the protocol for proposing a entry into the extension repository?

Thanks,

Jonathan


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12716 Updated: Add the imagecopyresizedbicubic function

2001-08-13 Thread jonathan

ID: 12716
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: Red Hat Linux 7.1
PHP Version: 4.0.6
New Comment:

Ok I checked there but I don't really see an answer!? Status is still open although 
the request is dated march 2001?

Previous Comments:


[2001-08-13 11:53:55] [EMAIL PROTECTED]

#9875



[2001-08-13 11:23:17] [EMAIL PROTECTED]

Hi, I would very much like to see you add the imagecopyresizedbicubic function to the 
list of PHP/GD functions (as described in the user comments of the imagecopyresized 
function docs) to a new release of PHP. I don't know if you are already planning this 
(I couldn't find anything on it), but judging by the size of the newsgroup archives on 
this topic I think I am not the only one. It really is a great function to create 
thumbnails from uploaded images.

I hope to hear from you soon and thank you for PHP!





Edit this bug report at http://bugs.php.net/?id=12716&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12716: Add the imagecopyresizedbicubic function

2001-08-13 Thread jonathan

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.1
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Add the imagecopyresizedbicubic function

Hi, I would very much like to see you add the imagecopyresizedbicubic
function to the list of PHP/GD functions (as described in the user comments
of the imagecopyresized function docs) to a new release of PHP. I don't
know if you are already planning this (I couldn't find anything on it), but
judging by the size of the newsgroup archives on this topic I think I am
not the only one. It really is a great function to create thumbnails from
uploaded images.

I hope to hear from you soon and thank you for PHP!
-- 
Edit bug report at: http://bugs.php.net/?id=12716&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CPdf Font file?

2001-01-13 Thread Jonathan Sharp

Where is the font.lst file for the cpdf lib supposted to go? It's used to
map font names to font files...any place that I stick it it gives an error
that it can't find 'font.lst'...

Thanks,
-Jonathan


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]