php-windows Digest 23 Jan 2003 16:16:38 -0000 Issue 1551
Topics (messages 18039 through 18046):
Re: How to extract PHP code from php pages
18039 by: toby z
18044 by: Neil Smith
an other tool thinggy ......
18040 by: toby z
Re: Who is foo & what is bar?
18041 by: leo g. divinagracia iii
printing (might be OT)
18042 by: Bobo Wieland
Re: Running PHP 4.3 under WIN 2000 IIS with MSSQL Server.
18043 by: Neil Smith
PDF extensions seems to do not work properly on IE
18045 by: Leonardo Javier Belén
IIS PHP permissions
18046 by: s.garriock.rgc.aberdeen.sch.uk
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
hi ha duy
will u please be a bit more specifick about this extracting code
thinggy out of php and html mixxup
toby .....
--- Ha Duy Thien <[EMAIL PROTECTED]> wrote: > Hi everyone
>
> Could you show me how to extract php code (in <?php ?>) from a php
> pages
> mixed with HTML
>
>
> Thanks for any help
> Thien
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
At 02:49 23/01/2003 +0000, you wrote:
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
From: "Ha Duy Thien" <[EMAIL PROTECTED]>
Date: Thu, 23 Jan 2003 10:37:23 +0900
Subject: How to extract PHP code from php pages
Hi everyone
You can't , at least not when its been run through the PHP parser, since of
course you get HTML not PHP tags in the output.
If you want to view your PHP pages *as* HTML, save them *additionally* as
.phps :
.phps is recognised by the PHP parser as asking for the source code, neatly
formatted with colour coding for tags, functions and the like.
Could you show me how to extract php code (in <?php ?>) from a php pages
mixed with HTML
If you want to copy somebody elses page by accesing the raw PHP then you're
out of luck - PHP doesnt work like that.
Cheers
Neil Smith.
--- End Message ---
--- Begin Message ---
hi guyz
im tryin to reverse engineer design model a project that has expanded
a bit broader than my assumptionz
its db is all intact n runnin perfect
i only have to design the system in uml n submitt the darrned
doccumentation
the thingg is i cant work around with rational rose 98 it sumhow aint
workin
cant install rose 2000 aint got the key n no money 2 but it
any free tools out there that do the thing
:$ i no bout google.com :( it didn help much im afraid ..... :$
thnx a mill guyz
bangin head in the wallz .....
toby.....
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Svensson, B.A.T. (HKG) wrote:
IT actually exist an RFC about the etymology of Foo:
http://www.ietf.org/rfc/rfc3092.txt
now i have seen it all... is there an RFC for "hello world" too? lol...
--
-----------------------
Leo G. Divinagracia III
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi!
I'm sorry if this is OT but I really need an answer to this question and I
can't find it anywhere...
I have a link on a page that basicly should work as a print-button. When you
click it, it should print some of the information that is currently
displayed and ad a header and footer of some sort.
The only way i know of doing this is using CSS and showing/hiding layers,
but it would be much easier if I could generate a file of some sort that
will be sent to the printer...
Is there a way to do this sort of thing with php, or could you guys please
help pointing me to some information about this...?
thanks!
:: bobo ::
--- End Message ---
--- Begin Message ---
At 02:49 23/01/2003 +0000, you wrote:
[EMAIL PROTECTED] (Lukasz Karapuda) wrote:
>Hello.
>
>I am in the process of migrating from a Win2000+ASP+MSSQL Server 2000 web
>environment to a Win2000+PHP+MSSQL Server environment.
>1. Session Handling.
yes
>2. MSSQL Server access / ODBC access to MySQL server.
yes. There are performance problems with access to remote MSSQL
servers (see e.g. http://bugs.php.net/bug.php?id=21772). Why do you
want to access mysql over ODBC? The native API is much more
powerful...
>3. E-mail sending functionality.
Yes
>4. DOM XML parser.
> don't know much about this. Have a look at www.php.net/domxml
This (DOM XML) works just as expected (though get the *latest* version of
PHP you can find to ensure most of the bugs have been worked out) DOM
implementations are requireds to provide certain standardised functionality
though the syntax might be language specific the actual results from a
gived piece of code should not : Heres an example chunk I've worked on this
week :
if ($xmldoc=xmldoc($fields->data)) {
// Get some XML data from the database : $fields is a retrieved recordset
object
// If statement ensures the xmldoc could be read and parsed if xmldoc()
returns true)
$context=xpath_new_context($xmldoc);
// Set up your context (document) reference for XPth to work with
$root=$xmldoc->root();
// This is my document root (obviously !)
$nodepath="/scenes";
// OK - top level node called scenes - this is an XPath expression
$result=xpath_eval($context,$nodepath);
// Evaluate the Xpath against the document specified above
$scenes=$result->nodeset[0];
// This is your nodeset - its an array of objects (nodes)
print(domxml_get_attribute($scenes,"description"));
// Get an attribute
print($scenes->content);
// Get the text of a node
} else {
print("Error : Document was not valid XML");
}
So this would parse out the following description attribute from this
document :
<scenes description="my scene description">
Act one scene one
</scenes>
and print
My scene description
Act one scene one
Cheers,
Neil Smith
--- End Message ---
--- Begin Message ---
Hi all!
I am facing a problem with PHP (binaries from php.net) over APACHE 1.3.x on
Windows 95 and IE5&6 as a client (in both WinNT40 and Win95). The problem is as
follows:
I need to use the pdf libraries (both cpdf and pdflib) and I cannto make work any
sample. If i use the "hello world" from the documentation pack, which is with cpdf:
<?php
$cpdf = cpdf_open(0);
cpdf_page_init($cpdf, 1, 0, 595, 842, 1.0);
cpdf_add_outline($cpdf, 0, 0, 0, 1, "Page 1");
cpdf_begin_text($cpdf);
cpdf_set_font($cpdf, "Times-Roman", 30, "WinAnsiEncoding");
cpdf_set_text_rendering($cpdf, 1);
cpdf_text($cpdf, "Times Roman outlined", 50, 750);
cpdf_end_text($cpdf);
cpdf_moveto($cpdf, 50, 740);
cpdf_lineto($cpdf, 330, 740);
cpdf_stroke($cpdf);
cpdf_finalize($cpdf);
header("Content-type: application/pdf");
header("Content-Disposition: filename=test.pdf");
Header("Expires: 0");
cpdf_output_buffer($cpdf);
?>
the answer is always the same:
1. a dialog box asking me to discard the file based on the information on the control
(which I suspect is a problem with the settings on IE but at least shows me it
recognises the right control).
2. start to load the control and then a dialog box (during initialization of the
control) tells me that the file is no available.
Please help! I dont know what the problem is.
Thanks in advance.
Leonardo J. Belén. AFIP-AR.
--- End Message ---
--- Begin Message ---
Hi
I am trying to setup a intranet with IIS 5.1 and PHP 4.3.0
The problem I am having is that I want to retrieve all the usernames of the
people on the network (aka DOMAIN\username) for security. I am using ISAPI
to do this due to the CGI not retrieving the username.
The problem I am having is that no user can login to the site for a php page
unless they are a administrator but they can access ordanary .htm files etc
without problem. I believe its permissions that are the problem and I was
wondering if anyone could tell me how to set them up.
Thanks
>From Shaun Garriock
RGC Webmaster
*** The contents of this message are confidential and are intended for the addressee
only. The views expressed in this message do not necessarily represent those of Robert
Gordon's College. Electronic mail transmission is not guaranteed to be secure,
therefore, Robert Gordon's College does not accept liability for the contents of this
transmission. This message does not form a legal binding contract. ***
--- End Message ---