[PHP] PDFLib

2002-03-10 Thread Evan Nemerson

From http://www.pdflib.com/pdflib/faq.html:

This demo stamp appears when one of our binaries distributed by PDFlib GmbH 
is used. It can be disabled by purchasing a PDFlib license, and applying the 
delivered license key (serial) at runtime with the PDF_set_parameter() 
function as indicated in the manual. With the ActiveX/COM edition of PDFlib 
the serial can also be supplied during the installation process.

I have a license key, now what parameters do I pass PDF_set_parameter()? The 
PHP man doesn't say, nor does the PDFLib man (so far as I can tell). Any help 
would be greatly appreciated- I'm getting pretty frustrated.


Thanks in advance,
Evan Nemerson





-- 

Employ your time in improving yourself by other men's writings, so that you 
shall gain easily what others have labored hard for.

-Socrates

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




[PHP] Different field sizes!

2002-03-10 Thread hauger.itg

Hello,
I 've a question: If I select data from a mysql database in the www with the
php script to show it on my web site, I get different field sizes in the
same coloumn. It's a format problem but I don't no which one. Has anybody
the solution to my question?

Best regards

Innovations- und
Technologiefoerdergemeinschaft e.V.(ITG)
Willi Hauger (Vorsitzender)

Gefördert durch das Institut
der deutschen Wirtschaft in Köln
(INSTI-Erfinderclub der ITG e.V.)

Erlenstrasse 48
78050 VS-Villingen
Telefon: (07721)53821
Telefax: +49 (0)69 791213262
mailto:[EMAIL PROTECTED]
http://www.t-online.de/home/forum.itg/
Oeffnungszeiten des ITG_Bueros_VS:
Mittwochs von 18h-20h


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




[PHP] Execute bash shell script in php

2002-03-10 Thread Neal Dewing

Amit,

$output = shell_exec(./checklist');
echo nl2br($output);

Works great,

Neal

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




[PHP] exec() fails?

2002-03-10 Thread samug

Hi,
I'm quite new to php and I'm trying to execute a file with
exec(executable.exe); and nothing happens.
I have win2k with apache 1.3.23 and php 4.1.1 (ISAPI).
I read somewhere that running external programs with isapi is impossible. Is
that true? I can still run system commands, i.e. system(dir *.*); Why is
that? Any ideas?




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




Re: [PHP] apache and php installation problem

2002-03-10 Thread Chris Hewitt

Duncan,

Just a thought, does the user that apache is running as have permissions 
to read/execute the file?

Regards

Chris

Duncan wrote:

Hi,

i currently installed latest apache and php on my RH 7.2 system.
However, i allways get the following error now:

/usr/local/apache/bin/apachectl configtest 
Syntax error on line 216 of /usr/local/apache/conf/httpd.conf: 
Cannot load /usr/local/apache/libexec/libphp4.so into server: 
€Ø+@€Ø+((Ø+@Ø+˜Ø+@˜Ø+ Ø+ 
Ø+@¨Ø+¨Ø+@°Ø+°Ø+@¸Ø+¸Ø+@ÀØ
+@ÀØ+ÈØ+@ÈØ+ÐØ+@ÐØ+ØØ+@ØØ+àØ+@àØ+èØ+@èØ+ðØ+@ðØ+øØ+@øØ
+: shared object not open 



The error_log says:

Cannot load /usr/local/apache/libexec/libphp4.so into server: 
/usr/local/apache/libexec/libphp4.so: cannot open shared object file: No such file or 
directory

...but the file IS there! I don't understand this error.

I had to comment all php-based lines within the httpd.conf file, to get apache up and 
running again! 

My problem is, that i need to get php up and running asap, so any help is more than 
welcome. 

Thanks in advance, 

regards, 

Duncan


:wq




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




php-general Digest 10 Mar 2002 14:53:55 -0000 Issue 1218

2002-03-10 Thread php-general-digest-help


php-general Digest 10 Mar 2002 14:53:55 - Issue 1218

Topics (messages 87892 through 87902):

Re: Selecting a Queried Row
87892 by: Stephano Mariani
87893 by: hugh danaher

Can anyone tell me which mail server is good???(Use in WindowsME/XP, don't use IIS)
87894 by: hei
87895 by: Jason Wong

Re: need help converting code to more efficient loop
87896 by: Jason Wong

CSS Group
87897 by: jtjohnston

PDFLib
87898 by: Evan Nemerson

Different field sizes!
87899 by: hauger.itg

Execute bash shell script in php
87900 by: Neal Dewing

exec() fails?
87901 by: samug

Re: apache and php installation problem
87902 by: Chris Hewitt

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]


--

---BeginMessage---

If you mean what I think you mean:

TDA HREF=somewhere.php?somevar=somethingSome Text (ID?)/A/TD

 -Original Message-
 From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, 10 March 2002 12:13 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Selecting a Queried Row
 
 As a newbie at PHP (and relative newcomer to HTML and web design) I've
 been
 wading through documentation trying to accomplish various tasks.
However,
 I'm
 stumped on how to proceed with the following:
 
 I would like a web vistor to be able to select a row from a table that
has
 been generated from a query. The problem is I don't know how to code a
 paricular column (using the present td . . /td syntax of the
table) so
 that each cell would have a clickable element (perhaps the 'ID'
number).
 
 Once that cell is clicked, I would like to code
'onclick=some_function()'
 
 Does this sound reasable way of approaching the problem, or is there a
 better
 way. [Btw, at present, while learning PHP, I am using
global_variables=on,
 but would like to try $PHP_SELF method to pick up session variables.]
 
 Any help would be greatly appreciated, as well as pointers of where to
 look!
 
 Tia, Andre
 
 
 --
 Please pray the Holy Rosary to end the holocaust of abortion.
 Remember in your prayers the suffering souls in Purgatory.
 
 May God bless you abundantly in His love!
 
 For a free Cenacle Scriptural Rosary Booklet --
 http://www.webhart.net/csrb/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




---End Message---
---BeginMessage---

Andre,

The following code block is from a site I'm developing for a local museum.
The site is now located at www.ironorchid.com/museum/  but will move
eventually to its own site.  In it, I have a list of the landmark trees,
with links to a map showing the location of the tree, a link to
maps.yahoo.com to get a detailed map of the location and or driving
directions, and links to show all the trees in an area of the city.  In
other words, the table is link crazy--sounded enough like what you want to
do that I responded to your question.  All of the data in the html table
comes from a mysql database with three database tables (heritage, trees,
sites).
If you use the mysql_fetch_array() command in a WHILE statement, you create
an array of the row or rows resultant from your query and have the mysql
column titles as your array keys.  You can then use the a href= html tag to
put a link under the words in your table cells and generate the html code to
go to the next row of data.
As I said earlier, I have the bad habit of writing everything in php once I
need it on a page, so the code block might be a bit hard to read.  Let me
know if you need further details on what's provide.
Hope this helps,
Hugh

?php
print table align=center bgcolor=white cellspacing=0 cellpadding=4
border=1 ;
 print tr bgcolor=Cornsilktdh5bID # a href=list.php
title=\scientific name\bCommon
Name/b/a/h5/tdtdh5bAddress/b/h5/tdtdh5bDistrict/b
/h5/td/tr;

 $db=some_database;
 $pass=some_password;
 $link=mysql_connect(localhost,,$pass);
 if (! $link) die(Can't log in at this time);
 mysql_select_db($db,$link) or die (Can't log in at this time);
 $query=select * from heritage where asset_num'0' order by asset_num;
 $result=mysql_query($query);
 if (!$result) die(mysql_error());
 while ($heritage=mysql_fetch_array($result))
  {
  $query2=select * from trees where id='.$heritage['plant_num'].' ;
  $result2=mysql_query($query2);
  $trees=mysql_fetch_array($result2);
  $query3=select * from sites where plant_num='.$heritage['plant_num'].'
;
  $result3=mysql_query($query3);
  $num=0;
  while ($sites=mysql_fetch_array($result3))
   {
   $links[$num]=$sites['link'];
   $num=$num+1;
   }
  print trtd valign=top align=leftpa
href=mapmastr.php?list1=1tree=1coordinate_x=.$heritage['x'].coordinate_
y=.$heritage['y']. title=\.stripslashes($trees['scientific_name']).
native to .$trees['native_to'].\ 

[PHP] newbie: the superglobal $_SESSION

2002-03-10 Thread bob

In mannual,it says:
creating new entries in the $_SESSION array will automatically
register them as session variables, as if you called
session_register(). 
If you are using $HTTP_SESSION_VARS/$_SESSION, do not use
session_register(), session_is_registered() and session_unregister()
unless you know internal of session module. 

but ,
Example 1.

?php

if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $count;
?
  
I only get a warning :Warning: Undefined variable: count in
C:\WebShare\wwwroot\netk\5\test.php on line 

whie in the following example:
?php
session_register('count');
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $count;
?
  
it outputs 1(2,3..)

why?
thanks in advance.

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




[PHP] PHP/Apache/Windows question

2002-03-10 Thread George E. Papadakis

Hello ,

I am using PHP 4.x on Windows/Apache 1.3.x.
Using the same confing on Linux , I can get  something like
index.php/something/anotherSomething/blah blah.
Trying to do this  windows just failes. I think it has to do with Apache
look back feature which for some reason is not working on Windows. The only
thing I get is premature end of headers error..
Any ideas what migh be wrong.?


-- GeorgeP


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




[PHP] Re: CSS Group

2002-03-10 Thread Shu Chow

Can anyone recommend a good CSS news group?

Eric Meyer, author of O'Reilly's CSS book and keeper of Web Review's 
master list runs an excellent CSS mailing list.

http://two.pairlist.net/mailman/listinfo/css-discuss
-- 
Shu-Wai Chow, Iron Chef Sloppy Joes :: [EMAIL PROTECTED]

Extremism in the defense of liberty is no vice...
Moderation in the pursuit of justice is no virtue.
-Barry Goldwater

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




[PHP] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Nick Patsaros

I'm working with a simple form which submits field
data to a MySQL database.  This is for the purpose of
generating a dynamic news page for my site. 
Interestingly enough I've found that any time I try to
submit data that contains an apostrophe ' it gives
me an error and will not send the data (any of it) to
the database. 

How can I change my database query, or escape out
apostrophes?  I'm looking for the easiest fix out
there of course.  Below is my current DB query. I
realize I'm using apostrophes for my variables... is
this acceptable syntax and/or is there a replacement?

$query = INSERT into $table values ('0', '$year',
'$month', '$day', '$hour', '$minutes', '$seconds',
'$article_name', '$content', '$admin_name');


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




[PHP] problem

2002-03-10 Thread Roman

Hello,
i got the following problem:
i'm using linux/redhat7.2/apache/php

php was working good, but as i changed the files in the /var/www/ directory
my the following error occured:
(shortened:)
warning...failed for inclusion index.php ...(include
path=/usr/share/php/:/php/includes/)...unknown in line 0

can someone halp me?
THANX, ROMAN



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




[PHP] Re: [PHP-DB] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Robert Weeks

See the manual at php.net:

addslashes()
stripslashes()

I've found it easier to just turn on magic-quotes in the php.ini file

This is all covered at php.net

Robert
- Original Message - 
From: Nick Patsaros [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 10, 2002 11:23 AM
Subject: [PHP-DB] MySQL and apostrophes, interesting problem. 42082


 I'm working with a simple form which submits field
 data to a MySQL database.  This is for the purpose of
 generating a dynamic news page for my site. 
 Interestingly enough I've found that any time I try to
 submit data that contains an apostrophe ' it gives
 me an error and will not send the data (any of it) to
 the database. 
 
 How can I change my database query, or escape out
 apostrophes?  I'm looking for the easiest fix out
 there of course.  Below is my current DB query. I
 realize I'm using apostrophes for my variables... is
 this acceptable syntax and/or is there a replacement?
 
 $query = INSERT into $table values ('0', '$year',
 '$month', '$day', '$hour', '$minutes', '$seconds',
 '$article_name', '$content', '$admin_name');
 
 
 __
 Do You Yahoo!?
 Try FREE Yahoo! Mail - the world's greatest free email!
 http://mail.yahoo.com/
 
 -- 
 PHP Database 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] newbie: the superglobal $_SESSION

2002-03-10 Thread Matt Schroebel

 ?php
add a session_start() here
 
 if (!isset($_SESSION['count'])) {
 $_SESSION['count'] = 0;
 }
 else {
 $_SESSION['count']++;
 }
 echo $count;
 ?
 


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




Re: [PHP] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Matt Schroebel

Read the manual about magic_quotes_gpc and addslashes()
I prefer to add slashes myself, that way I can verify input lengths but it
has the risk that I might miss a field. The trouble with magic_quotes_gpc is
that if you have to re-display a variable you have to stripslashes() first.

- Original Message -
From: Nick Patsaros [EMAIL PROTECTED]
Subject: [PHP] MySQL and apostrophes, interesting problem. 42082


 I'm working with a simple form which submits field
 data to a MySQL database.  This is for the purpose of
 generating a dynamic news page for my site.
 Interestingly enough I've found that any time I try to
 submit data that contains an apostrophe ' it gives
 me an error and will not send the data (any of it) to
 the database.



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




[PHP] scope issue?

2002-03-10 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi, 
I have the solution to my problem here but can't see why i need it?

this snippet takes $AuthId from a form and but does not work (doesn't
seem to pass it to the function)

case edit:
$tips-get_author($AuthId);
$content=edit_author_form($tips-auth_id);
break;

but this works fine...

case edit:
$id=$AuthId;
$tips-get_author($id);
$content=edit_author_form($tips-auth_id);
break;

Why?

Many thanks

- -- 
- ---
 www.explodingnet.com   |Projects, Forums and
+Articles for website owners 
- -- Nick Wilson -- |and designers.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD4DBQE8i5SQHpvrrTa6L5oRAuh7AKCmdRmslIv+sexSyW+vtuad8flu0wCXYaKt
bjROMlsgU5XtiZ2ewhybJQ==
=6ZTA
-END PGP SIGNATURE-

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




[PHP] which rights to set for dirs containing uploaded files?

2002-03-10 Thread Andy

Hi there,

I am wondering which right I should set for a directory where users can
upload pictures. What would be a secure way? Currenly I did set the rights
to 777 which allows everything. This seams verry insecure to me. But
otherwise php can't store the file.

Thanx for any suggestion.

Thanx andy



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




[PHP] setting up virtual hosts

2002-03-10 Thread Andy

Hi guys,

I know this is not an apache group, but I am sure you guys did deal with the
same problem as I do currently. So somebody might know it.

I did set up 3 Virtual hosts in my httpd.conf with the same ip adress but a
different name and dir. Serving 3 different applications. This works fine on
the local machine. As soon as I access the names from another machine in my
network I do only get the first application (the first entered in the
httpd.conf). No matter which name I type in.

Does anybody know how to solve this prob or can make a good hint?

Thanx in advance

Andy



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




Re: [PHP] Alphabet

2002-03-10 Thread Angel Fenoy

Robert V. Zwink wrote:
 What could be simpler than:
 
 $range = implode( , range('A', 'Z'));
 echo $range;
 
 result:
 A B C D . . .

The most short expression I found:

$r=join('',range(A,Z));
echo $r;

result: ABCDEFGHIJKLMNOPQRSTUVWXYZ


 Am I missing something here?  All this loop, chr()  ord() stuff going on. .

Function range() is buggy in PHP 4.0.6 and others... range(int, int) is 
ok, but range(str, str) is not.

Saludos
Àngel


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




[PHP] Re: gd-library ...

2002-03-10 Thread Andy

Hi Marcel,

I did struggle with the same prop a while ago.

It's quit easy. Get yourself php4.1.2 . This version has the gd library
included. after installing uncomment
the libgd module line in php.ini. Look out for the different versions. There
might be one line for the old 1.8x library.
save it and restart your webserver.

Thats it.

Good luck, Andy

Marcel Besancon [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 i'm trying to use the gd-library under windows, but it doesn't work.
How
 can I include the gd.dll? Where do I put this file? I tried some different
 directories which are written in the php.ini as include-directories. What
am
 I doing wrong? Is there a way to use this library under windows???

 Any hint can be useful.

 Sincerely

 Marcel

 --
 registered Fli4l-User #0388





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




Re: [PHP] which rights to set for dirs containing uploaded files?

2002-03-10 Thread Matt Schroebel

- Original Message -
From: Andy [EMAIL PROTECTED]
Subject: [PHP] which rights to set for dirs containing uploaded files?


 I am wondering which right I should set for a directory where users can
 upload pictures. What would be a secure way? Currenly I did set the rights
 to 777 which allows everything. This seams verry insecure to me. But
 otherwise php can't store the file.

You can also set the owner of the directory to nobody:nobody and give write
auth to user and group but not other. That probably wouldn't make any
security difference on a dedicated server, but would on a shared box.


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




Re: [PHP] Netscape vs. IE/Mozilla

2002-03-10 Thread James Arthur

On Friday 08 Mar 2002 15:44, Vlad Kulchitski wrote:
 Hi guys,

 I know it's a wrong place to ask about this, but I am sure someone here
 faced the same problem. I am trying to get the site to look consistent
 in
 Netscape Navigator and it's giving me hard times.

Yes, this is a bug in Netscape 4.x. You just have to make your site so that 
it doesn't look too bad without the table backgrounds.

 Either tables or/and cell background doesn't show up or spacing between
 two tables is not what it is supposed to be.

Netscape doen't do table backgrounds properly.

I suppose you could test to see if the client browser is Netscape6 and 
adjust accordingly..?

--jaa

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




[PHP] Can Anyone translate my script to php?

2002-03-10 Thread Ceyhun Güler

I have a small picture and when I click on this image
image opens resimgoster.asp with resimgoster.asp?res=main tumbled images
picture.jpg
and this asp code includes

%@language=vbscript%
%location=request.querystring(res)
location=replace(location,  , /)
%

body
img src=%=location%
/body

this code gets res variable and replace   fields with /
by this way I use only one file to enlarge of these picture...
but I need it in php now

can any one translate my asp code to php code?







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




Re: [PHP] Can Anyone translate my script to php?

2002-03-10 Thread Jason Wong

On Monday 11 March 2002 01:48, Ceyhun Güler wrote:
 I have a small picture and when I click on this image
 image opens resimgoster.asp with resimgoster.asp?res=main tumbled images
 picture.jpg
 and this asp code includes

 %@language=vbscript%
 %location=request.querystring(res)
 location=replace(location,  , /)
 %

 body
 img src=%=location%
 /body

 this code gets res variable and replace   fields with /
 by this way I use only one file to enlarge of these picture...
 but I need it in php now

 can any one translate my asp code to php code?

There's a program called asp2php which does just that, converting asp code 
into php:

  http://asp2php.naken.cc/


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
You are going to have a new love affair.
*/

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




Re: [PHP] PDFLib

2002-03-10 Thread Jason Wong

On Sunday 10 March 2002 16:29, Evan Nemerson wrote:
 From http://www.pdflib.com/pdflib/faq.html:

 This demo stamp appears when one of our binaries distributed by PDFlib
 GmbH is used. It can be disabled by purchasing a PDFlib license, and
 applying the delivered license key (serial) at runtime with the
 PDF_set_parameter() function as indicated in the manual. With the
 ActiveX/COM edition of PDFlib the serial can also be supplied during the
 installation process.

 I have a license key, now what parameters do I pass PDF_set_parameter()?
 The PHP man doesn't say, nor does the PDFLib man (so far as I can tell).
 Any help would be greatly appreciated- I'm getting pretty frustrated.


Manual, chapter 3.1.1 The PDFlib Demo Stamp and Serial Numbers.

  PDF_set_parameter(p, serial, ...your serial string...);



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
One can't proceed from the informal to the formal by formal means.
*/

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




[PHP] who can translate my ASP codes to PHP code? its very simple asp code...

2002-03-10 Thread Ceyhun Güler

I have a small picture and when I click on this image
image opens resimgoster.asp with resimgoster.asp?res=main tumbled images
picture.jpg
and this asp code includes

%@language=vbscript%
%location=request.querystring(res)
location=replace(location,  , /)
%

body
img src=%=location%
/body

this code gets res variable and replace   fields with /
by this way I use only one file to enlarge of these picture...
but I need it in php now

can any one translate my asp code to php code?




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




[PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Michael Kimsal

Ceyhun GüLer wrote:
 I have a small picture and when I click on this image
 image opens resimgoster.asp with resimgoster.asp?res=main tumbled images
 picture.jpg
 and this asp code includes
 
 %@language=vbscript%
 %location=request.querystring(res)
 location=replace(location,  , /)
 %
 
 body
 img src=%=location%
 /body
 
 this code gets res variable and replace   fields with /
 by this way I use only one file to enlarge of these picture...
 but I need it in php now
 
 can any one translate my asp code to php code?
 


I'd probably do something like

? $l = str_replace( ,/,$res); ?
body
img src=?=$l;?
/body

I'm relying on the fact that $res would be autodefined
as a variable from the querystring.  This behaviour is
not standard in the latest version of PHP I believe, but
most versions before have it come by default.  The server admin
may have disabled it, but by default that happens.  If it's
not on, you could add a line to make it:

? $res = $HTTP_GET_VARS[res];
$l = str_replace( ,/,$res); ?
body
img src=?=$l;?
/body



---
Michael Kimsal
http://www.phphelpdesk.com/
Taking the ? out of ?php
734-480-9961



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




[PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Ceyhun Güler

Thanksss
but my link will be
resimgoster.php?res=main images picture.jpg
right?





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




Re: [PHP] Can Anyone translate my script to php?

2002-03-10 Thread Ceyhun Güler

Thankss Jason!
I m downloading it

Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 On Monday 11 March 2002 01:48, Ceyhun Güler wrote:
  I have a small picture and when I click on this image
  image opens resimgoster.asp with resimgoster.asp?res=main tumbled
images
  picture.jpg
  and this asp code includes
 
  %@language=vbscript%
  %location=request.querystring(res)
  location=replace(location,  , /)
  %
 
  body
  img src=%=location%
  /body
 
  this code gets res variable and replace   fields with /
  by this way I use only one file to enlarge of these picture...
  but I need it in php now
 
  can any one translate my asp code to php code?

 There's a program called asp2php which does just that, converting asp code
 into php:

   http://asp2php.naken.cc/


 --
 Jason Wong - Gremlins Associates - www.gremlins.com.hk

 /*
 You are going to have a new love affair.
 */



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




Re: [PHP] setting up virtual hosts

2002-03-10 Thread Chris Hewitt

Andy,

Have you set up dns so that all three URLs translate to the same ip 
address? Just a thought. You could use tcpdump (assuming you are on 
unix) to check whether apache (port 80 or whatever) is being called and 
whether dns queries are answered with the right ip address.

Regards

Chris

Andy wrote:

Hi guys,

I know this is not an apache group, but I am sure you guys did deal with the
same problem as I do currently. So somebody might know it.

I did set up 3 Virtual hosts in my httpd.conf with the same ip adress but a
different name and dir. Serving 3 different applications. This works fine on
the local machine. As soon as I access the names from another machine in my
network I do only get the first application (the first entered in the
httpd.conf). No matter which name I type in.

Does anybody know how to solve this prob or can make a good hint?

Thanx in advance

Andy







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




[PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Ceyhun Güler

http://www.akademihastanesi.com.tr/kocak/resimgoster.php
look here
I have tried to do it
but notting happens?
:(




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




RE: [PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Lauri Vain

Hi Ceyhun

 http://www.akademihastanesi.com.tr/kocak/resimgoster.php
 look here
 I have tried to do it but notting happens?

Open that page in your browser and 'View source'. You don't seem to have
PHP enabled on your server. 

Yours,
Lauri
--
Tharapita Creations
[dynamic web applications]
[EMAIL PROTECTED]
Mobile: +372 53 410 610 



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




Re: [PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Ceyhun Güler

hmmm
I ll try it on my local host





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




[PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Ceyhun Güler

Thanks everyone!
IT'S WORKING NOW :P



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




[PHP] parse error? how can I print spesific message for all error mesage

2002-03-10 Thread Ceyhun Güler

Parse error: parse error in c:\inetpub\wwwroot\kocak\resimgoster.php on line
3

How can I print my own message like sorry not avaiable!
for all error happening in my php file
but I want to make it only for this file
I don' t want to configure My IIS

My script was which Michael Kimsal was helped me to translate with  can
anyone translate my script to php? post---

? $d = $HTTP_GET_VARS[dir];
$r = $HTTP_GET_VARS[res]
$d = str_replace(%,/,$d);
?
title?=$r;?/title
body
img src=?=$d;?/?=$r;?

/body

ThankS!




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




Re: [PHP] parse error? how can I print spesific message for all error mesage

2002-03-10 Thread hugh danaher

Your line 2 doesn't end with a semicolon and causes the parse error on the
next line.
I don't think you can suppress parse errors because your code isn't running
yet.

once your code is running you can append die() to any decision statement or
you can append echo

If (!isset($r)) die($r wasn't set);
If (!isset($r)) echo $r wasn't set;

Hope this helps,
Hugh
- Original Message -
From: Ceyhun Güler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 10, 2002 12:05 PM
Subject: [PHP] parse error? how can I print spesific message for all error
mesage


 Parse error: parse error in c:\inetpub\wwwroot\kocak\resimgoster.php on
line
 3

 How can I print my own message like sorry not avaiable!
 for all error happening in my php file
 but I want to make it only for this file
 I don' t want to configure My IIS

 My script was which Michael Kimsal was helped me to translate with  can
 anyone translate my script to php? post---

 ? $d = $HTTP_GET_VARS[dir];
 $r = $HTTP_GET_VARS[res]
 $d = str_replace(%,/,$d);
 ?
 title?=$r;?/title
 body
 img src=?=$d;?/?=$r;?

 /body

 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] xslt encoding problem

2002-03-10 Thread Mike Eynon


Howdy all.

I am trying to use the new XSLT translation stuff in 4.1.1 with Win2k and
IIS running ISAPI.

When I try to run even the simplest example, I get the following error:


unknown encoding ''
62


I have tried specifying the encoding in both the XML and XSL files, and even
tried both UTF-8 and ISO-8859-1.

Has anyone seen this?  I am pretty much stuck and in need of at least a
suggestion.

Below are the following xml, xsl, and php source files I am using.

t1.xml 

Company
Employee
Name
Mike
/Name
Email
[EMAIL PROTECTED]
/Email
/Employee
/Company



t1.xsl 

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:output method=html encoding=UTF-8
 omit-xml-declaration=yes/

xsl:template match=/
html
head
titleMike's php xml test/title
/head
body
xsl:apply-templates select=//Employee/
/body
/html
/xsl:template

xsl:template match=Employee
xsl:apply-templates select=Email/
/xsl:template

xsl:template match=Email
xsl:value-of select=./
/xsl:template

/xsl:stylesheet



t1.php 

?php
$xsl_parser = xslt_create();

$xmlf=c:\\t1.xml;
$xslf=c:\\t1.xsl;
$outf=c:\\out.html;

if(is_file($xmlf)){
print(XML ExistsBR\n);
}
if(is_file($xslf)){
print(XSL ExistsBR\n);
}

$result = xslt_process($xsl_parser,$xmlf,$xslf,$outf);

if ($result)
{
echo $result;
}
else
{
$err1 = xslt_error($xsl_parser);
$err2 = xslt_errno($xsl_parser);
echo BRBRBBummer./B brbrbr;
echo $err1 br;
echo $err2 br;
}

xslt_free($xsl_parser);
?



I robbed some of my test code from the example Christian posted
a couple days ago.  Thanks Christian.


// Mike Eynon
// www.MikeEynon.com
// 1366 Bulb Ave
// Santa Cruz, CA  95062
// [EMAIL PROTECTED]
// 831.588.2388 (cell)


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




[PHP] Testing mail functionality on a local network possible?

2002-03-10 Thread Andy

Hi there,

I am wondering if it would be possible to send an e-mail inside my
production environment without connecting to the internet. My application is
running on OSX and I would like to send mail via php to the win2k machine. I
was reading something about mailservers but did not really get if this would
be possible without connection to the internet.

Does anybody know a good article on that, or could give me a hint?

Thanx,

Andy



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




RE: [PHP] Testing mail functionality on a local network possible?

2002-03-10 Thread Demitrious S. Kelly

If you are running a good mailserver (I use qmail + linux or freebsd)
you can send mail internally without being connected to anything...
generally address@localhost will send without a connection to the
internet, or [EMAIL PROTECTED] if the mail server is configured to
accept mail for domain.com.  

After that the matter of connecting to the mailbox and actually reading
the mail is your problem :)

Cheers 


-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, March 10, 2002 2:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Testing mail functionality on a local network possible?

Hi there,

I am wondering if it would be possible to send an e-mail inside my
production environment without connecting to the internet. My
application is
running on OSX and I would like to send mail via php to the win2k
machine. I
was reading something about mailservers but did not really get if this
would
be possible without connection to the internet.

Does anybody know a good article on that, or could give me a hint?

Thanx,

Andy



-- 
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] SAPDB compile problem

2002-03-10 Thread Alex Black

hi all,

Apologize if php-dev is inappropriate, but since this is a compile problem I
thought it would be relevant. I have cc:d the sapdb-general list as they
should be aware of these compile problems (and that is where I first asked
for help). I would like to construct a guide for people using SAPDB with PHP
in real multi-machine enterprise situations and will do so when I resolve
this compile issue:

I'm trying to compile PHP 4.1.1 on RH 6.2 w/SAPDB. Yes, I will upgrade to
4.1.2 very soon :)

Problem:

During make, I get:
/usr/bin/ld: cannot find -lsqlrte

Which is surprising because I rsynced my copy of sqlrte into
/opt/sapdb/depend/lib from a real install I have on another machine. (the
real is a full, current server install... on this machine I only want the
client libs)

I also used the tarball from

ftp://ftp.sap.com/pub/sapdb/bin/patch/sapdb-odbc-linux-i386-7.3.0.21.tgz

which is (unless I am wrong, please correct me) fairly useless because it
does not contain that sqlrte lib that is required by PHP when compiling
--with-sapdb=/opt/sapdb/interfaces/odbc/lib

anyway, despite having included the correct path(s):

/opt/sapdb/interfaces/odbc/lib
/opt/sapdb/depend/lib

in ld.so.conf

and having run ldconfig...

I still get 

/usr/bin/ld: cannot find -lsqlrte

What's worse (and much more confusing):

root@core lib ld -v |grep sql
/// i.e. no results from this search, which lists all known libs

root@core lib ldconfig -v |grep sql
libsqlod.so = libsqlod.so
libsqlrte.so = libsqlrte.so
libsqlcls.so = libsqlcls.so

// note that ldconfig _is_ tracking these libs. AGH!

I have never seen an instance where ldconfig knows about something ld
doesn't.

I tried coping all files to /opt/sapdb/interfaces/odbc/lib just to give it a
shot, and that didn't work (though I'm not surprised it didn't). I have also
tried a number of variations of the --with-sapdb path just to ensure it
isn't me being a complete idiot.

what should I try next? or better, does anyone know how to solve this
problem?

PS: PLEASE email me directly. I'll cee my responses and findings to the
list, but I'm not subscribed.

tia all,

_alex
project leader, binarycloud
http://binarycloud.tigris.org
http://www.binarycloud.com



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




[PHP] Reading lines from a CSV file

2002-03-10 Thread Don

Hi,

I have a comma delimited text file composed of many rows of text.  I've been looking 
at the PHP documentation for file system functions but cannot see a way to read a file 
row by row.  Each row may be different byte length.  How do I read only a row and have 
the file pointer at the start of the next row so I can read it, etc... until eof?

Thanks,
Don



Re: [PHP] Reading lines from a CSV file

2002-03-10 Thread Hank Marquardt

http://www.php.net/fgetcsv

The manual is your friend:)

If you like to do the work yourself, file() will suck the whole thing
into an array with the elements being the lines of the file.

On Sun, Mar 10, 2002 at 08:35:03PM -0500, Don wrote:
 Hi,
 
 I have a comma delimited text file composed of many rows of text.  I've been looking 
at the PHP documentation for file system functions but cannot see a way to read a 
file row by row.  Each row may be different byte length.  How do I read only a row 
and have the file pointer at the start of the next row so I can read it, etc... until 
eof?
 
 Thanks,
 Don

-- 
Hank Marquardt [EMAIL PROTECTED]
http://web.yerpso.net
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D  3EDF 2BF9 8A2D 2BB5 E60C
*** Web Development: PHP, MySQL/PgSQL - Network Admin: Debian/FreeBSD
*** PHP Instructor - Intnl. Webmasters Assn./HTML Writers Guild 
*** Beginning PHP  PHP II -- Starting March 25, 2002 
*** See http://www.hwg.org/services/classes

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




Re: [PHP] Re: Checking to see what value error_reporting is set at?

2002-03-10 Thread David Robley

In article 01ba01c1c7ca$bd95b1f0$0501a8c0@zaireweb, 
[EMAIL PROTECTED] says...
 I ment, if you re-set it, as im setting it to error_reporting(E_ALL);
 depending on a value i get from a db query...
 
 -Eric
 
 - Original Message -
 From: David Robley [EMAIL PROTECTED]
 To: 
 Sent: Saturday, March 09, 2002 6:52 PM
 Subject: [PHP] Re: Checking to see what value error_reporting is set at?
 
 
  In article 00b801c1c714$b4854230$0501a8c0@zaireweb,
  [EMAIL PROTECTED] says...
   Is it possible to return what error_reporting is set at currently?  If
 not, think they would be able to throw it into the newest build of php?
  
   Thanks,
   Eric
  
 
  Have a look at the ini_get function

Well, the way I understand the manual entry, it returns the current value 
- mind you I haven't tried it. Looking through the manual, I also found 
get_cfg_var which might be worth a try.

I would highly recommend you grab a copy of the manual - if you are on 
Windows the CFM version is readily searchable and has useful cross 
referencing links.

-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

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




[PHP] Apache Password Encryption (php)

2002-03-10 Thread Ellis M. Mendez-Hidaka

Greetings all,
I was wondering if there's any way to encrypt passwords without having to
recompile apache or PHP.
Just a simple password to use instead of the xhtml input tag which does
not encrypt the data.
Thank you for your help.
Ellis



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




[PHP] A stupid question...

2002-03-10 Thread Chuck \PUP\ Payne

Hi,

I not a newie but I am not a pro at mysql either. I want to do a query by
letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP.
So can someone please so me the how.


 
 | Chuck Payne  |
 | Magi Design and Support  |
 | www.magidesign.com   |
 | [EMAIL PROTECTED]   |
 

BeOS, Macintosh 68K, Classic, and OS X, Linux Support.
Web Design you can afford.

Hartley's Second Law:
Never sleep with anyone crazier than yourself.


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




[PHP] Broadcasting

2002-03-10 Thread jtjohnston

Not really a php thing, more a loss of php :) !

My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!

I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
an IP. My question is: does my Apache server broadcast itself or its IP
for when script kiddies come check out my machine to see if they can
crash it? What does it broadcast? How did the script kiddies find me?
Can I reverse process this and see if my stolen machine still exists
anywhere? What would I look for?

I have a ghost backup going back around four week ago, but ...

Sigh :(
John


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




[PHP] Broadcasting

2002-03-10 Thread jtjohnston

Not really a php thing, more a loss of php :) !

My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!

I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
an IP. My question is: does my Apache server broadcast itself or its IP
for when script kiddies come check out my machine to see if they can
crash it? What does it broadcast? How did the script kiddies find me?
Can I reverse process this and see if my stolen machine still exists
anywhere? What would I look for?

I have a ghost backup going back around four week ago, but ...

Sigh :(
John


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




[PHP] Broadcasting

2002-03-10 Thread jtjohnston

Not really a php thing, more a loss of php :) !

My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!

I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
an IP. My question is: does my Apache server broadcast itself or its IP
for when script kiddies come check out my machine to see if they can
crash it? What does it broadcast? How did the script kiddies find me?
Can I reverse process this and see if my stolen machine still exists
anywhere? What would I look for?

I have a ghost backup going back around four week ago, but ...

Sigh :(
John


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




php-general Digest 11 Mar 2002 02:59:42 -0000 Issue 1219

2002-03-10 Thread php-general-digest-help


php-general Digest 11 Mar 2002 02:59:42 - Issue 1219

Topics (messages 87903 through 87945):

newbie:  the superglobal $_SESSION
87903 by: bob
87909 by: Matt Schroebel

PHP/Apache/Windows question
87904 by: George E. Papadakis

Re: CSS Group
87905 by: Shu Chow

MySQL and apostrophes, interesting problem. 42082
87906 by: Nick Patsaros
87910 by: Matt Schroebel

problem
87907 by: Roman

Re: [PHP-DB] MySQL and apostrophes, interesting problem. 42082
87908 by: Robert Weeks

scope issue?
87911 by: Nick Wilson

which rights to set for dirs containing uploaded files?
87912 by: Andy
87916 by: Matt Schroebel

setting up virtual hosts
87913 by: Andy
87925 by: Chris Hewitt

Re: Alphabet
87914 by: Angel Fenoy

Re: gd-library ...
87915 by: Andy

Re: Netscape vs. IE/Mozilla
87917 by: James Arthur

Can Anyone translate my script to php?
87918 by: Ceyhun Güler
87919 by: Jason Wong
87922 by: Michael Kimsal
87923 by: Ceyhun Güler
87924 by: Ceyhun Güler
87926 by: Ceyhun Güler
87927 by: Lauri Vain
87928 by: Ceyhun Güler
87929 by: Ceyhun Güler

Re: PDFLib
87920 by: Jason Wong

who can translate my ASP codes to PHP code? its very simple asp code...
87921 by: Ceyhun Güler

parse error? how can I print spesific message for all error mesage
87930 by: Ceyhun Güler
87931 by: hugh danaher

xslt encoding problem
87932 by: Mike Eynon

Testing mail functionality on a local network possible?
87933 by: Andy
87934 by: Demitrious S. Kelly

SAPDB compile problem
87935 by: Alex Black

Reading lines from a CSV file
87936 by: Don
87937 by: Hank Marquardt

Re: Checking to see what value error_reporting is set at?
87938 by: David Robley

A stupid question...
87939 by: Chuck \PUP\ Payne
87944 by: Cary
87945 by: Chuck \PUP\ Payne

Apache Password Encryption (php)
87940 by: Ellis M. Mendez-Hidaka

Broadcasting
87941 by: jtjohnston
87942 by: jtjohnston
87943 by: jtjohnston

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]


--

---BeginMessage---

In mannual,it says:
creating new entries in the $_SESSION array will automatically
register them as session variables, as if you called
session_register(). 
If you are using $HTTP_SESSION_VARS/$_SESSION, do not use
session_register(), session_is_registered() and session_unregister()
unless you know internal of session module. 

but ,
Example 1.

?php

if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $count;
?
  
I only get a warning :Warning: Undefined variable: count in
C:\WebShare\wwwroot\netk\5\test.php on line 

whie in the following example:
?php
session_register('count');
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $count;
?
  
it outputs 1(2,3..)

why?
thanks in advance.

---End Message---
---BeginMessage---

 ?php
add a session_start() here
 
 if (!isset($_SESSION['count'])) {
 $_SESSION['count'] = 0;
 }
 else {
 $_SESSION['count']++;
 }
 echo $count;
 ?
 


---End Message---
---BeginMessage---

Hello ,

I am using PHP 4.x on Windows/Apache 1.3.x.
Using the same confing on Linux , I can get  something like
index.php/something/anotherSomething/blah blah.
Trying to do this @ windows just failes. I think it has to do with Apache
look back feature which for some reason is not working on Windows. The only
thing I get is premature end of headers error..
Any ideas what migh be wrong.?


-- GeorgeP


---End Message---
---BeginMessage---

Can anyone recommend a good CSS news group?

Eric Meyer, author of O'Reilly's CSS book and keeper of Web Review's 
master list runs an excellent CSS mailing list.

http://two.pairlist.net/mailman/listinfo/css-discuss
-- 
Shu-Wai Chow, Iron Chef Sloppy Joes :: [EMAIL PROTECTED]

Extremism in the defense of liberty is no vice...
Moderation in the pursuit of justice is no virtue.
-Barry Goldwater

---End Message---
---BeginMessage---

I'm working with a simple form which submits field
data to a MySQL database.  This is for the purpose of
generating a dynamic news page for my site. 
Interestingly enough I've found that any time I try to
submit data that contains an apostrophe ' it gives
me an error and will not send the data (any of it) to
the database. 

How can I change my database query, or escape out
apostrophes?  I'm looking for the easiest fix out
there of course.  Below is my current DB query. I
realize I'm using apostrophes for my variables... is
this 

[PHP] Variables within a string

2002-03-10 Thread webapprentice

Hello,

When I try to do this:
$foo = Entry for for $HTTP_POST_VARS[\name\];

I receive this error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' on line X

Why does it do this, and how do I get around this, besides assigning the
value of $HTTP_POST_VARS[\name\] to variable $bar?

Thank you for your time and help.

--Stephen


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




RE: [PHP] Variables within a string

2002-03-10 Thread Chris Cocuzzo

I would imagine the problem has something to do with those escaped quote
marks, but in any case, you could probably get around it by doing this:

$foo = Entry for  . $HTTP_POST_VARS[name];

some correct me if I'm wrong

-chris

 -Original Message-
 From: webapprentice [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, March 10, 2002 10:09 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Variables within a string
 
 Hello,
 
 When I try to do this:
 $foo = Entry for for $HTTP_POST_VARS[\name\];
 
 I receive this error:
 Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
 `T_NUM_STRING' on line X
 
 Why does it do this, and how do I get around this, besides assigning
the
 value of $HTTP_POST_VARS[\name\] to variable $bar?
 
 Thank you for your time and help.
 
 --Stephen
 
 
 --
 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] Re: A stupid question...

2002-03-10 Thread Cary

At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote:
Hi,

I not a newie but I am not a pro at mysql either. I want to do a query by
letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP.
So can someone please so me the how.


I'm not totally sure what your looking for. If you could elaborate a little 
I am sure that one of us could help you out.

Cary




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




Re: [PHP] Re: A stupid question...

2002-03-10 Thread Chuck \PUP\ Payne

I want to sort my a letter in a set colomn. Let say I want to sort the
colomn last_name

http://www.myserver.com/mysort.php?Letter=A

Like to create a link like A then sort only the last name ore what ever I
want to sort by that letter.

I hope that's helps. I can order by, but I can't so a sort like the example
above.

Chuck Payne
Magi Design and Support


on 3/10/02 9:42 PM, Cary at [EMAIL PROTECTED] wrote:

 At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote:
 Hi,
 
 I not a newie but I am not a pro at mysql either. I want to do a query by
 letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP.
 So can someone please so me the how.
 
 
 I'm not totally sure what your looking for. If you could elaborate a little
 I am sure that one of us could help you out.
 
 Cary
 
 
 


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




Re: [PHP] Re: A stupid question...

2002-03-10 Thread Chuck \PUP\ Payne

I want to sort by a letter in a colomn. Let say I want to sort the colomn
last_name. I can do order by but I can do just the A's.

http://www.myserver.com/mysort.php?Letter=A

Like to create a link on a web A then sort only the last name are A.
 
I hope that's helps. I can order by, but I can't so a sort like the example
above.

Chuck Payne
Magi Design and Support


 on 3/10/02 9:42 PM, Cary at [EMAIL PROTECTED] wrote:
 
 At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote:
 Hi,
 
 I not a newie but I am not a pro at mysql either. I want to do a query by
 letter(a, b, c..ect.). Is there a simple way to do it. I am writing in PHP.
 So can someone please so me the how.
 
 
 I'm not totally sure what your looking for. If you could elaborate a little
 I am sure that one of us could help you out.
 
 Cary
 
 
 
 


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




[PHP] [PHP-DB] Mssql trusted connections ?

2002-03-10 Thread Kearns, Terry

How does one use trusted connections with mssql_connect()
?


Also, the manual says something about an interfaces file. Where do I find
this? Where is this interfaces file documented?

[TK] 

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




Re: [PHP] Variables within a string

2002-03-10 Thread Jason Wong

On Monday 11 March 2002 11:10, Chris Cocuzzo wrote:
 I would imagine the problem has something to do with those escaped quote
 marks, but in any case, you could probably get around it by doing this:

 $foo = Entry for  . $HTTP_POST_VARS[name];

 some correct me if I'm wrong

Or simply:

$foo = Entry for for $HTTP_POST_VARS[name];


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
If you don't have a nasty obituary you probably didn't matter.
-- Freeman Dyson
*/

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




[PHP] PHP based search engine

2002-03-10 Thread Tim Thorburn

Hi,

Does anyone know of a PHP based search engine for a website?  I was using 
Fluid Dynamics on my site - as I've got some sections of the site in a 
MySQL database, and some sections are just static pages.  However, it seems 
to get stuck in a loop while trying to index portions of my database that 
are DATE formatted.

Is it even possible to have a PHP search engine search a site that is mixed 
with MySQL and static pages?

Thanks
-Tim



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




Re: [PHP] Re: A stupid question...

2002-03-10 Thread michael kimsal

Chuck Pup Payne wrote:
 I want to sort by a letter in a colomn. Let say I want to sort the colomn
 last_name. I can do order by but I can do just the A's.
 
 http://www.myserver.com/mysort.php?Letter=A
 
 Like to create a link on a web A then sort only the last name are A.
  
 I hope that's helps. I can order by, but I can't so a sort like the example
 above.
 
 Chuck Payne
 Magi Design and Support


One of two things to do:

When you're inserting the data, figure out the first letter and store 
that as a separate column (letter perhaps)

Second, probably easier to implement in your case with existing data,
is to use LIKE.

$sql = select * from datatable where last_name like '$letter%';

The % is a wildcard symbol, so if $letter is a then a last name
of adams, aames, aston, etc. would all match.

I know there's someway to have mysql do a string manipulation to compare 
just part of a column's data with something, so you could do something 
similar to a 'substr' in PHP - but it's late and I can't remember off 
the top of my head.


Hope that helps...


--
Michael Kimsal
http://www.phphelpdesk.com
Taking the ? out of ?php
734-480-9961


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




[PHP] get data from query before while loop

2002-03-10 Thread Jason Dulberg

I have a mysql query that I need to echo a variable from once before I go
into the while loop which would list the entire contents of the array. The
field shown once will not be displayed in the while looped contents. So
theoretically, something like this:

$result = mysql_query(SELECT h.title, a.agentname, a.agenturl,
IF(h.status='Sold',1,0) AS is_sold FROM homes h, agents a WHERE h.owner=a.id
AND a.id=$aid ORDER BY is_sold ASC);

if ($is_sold==1) {
echo $agentname. .$agenturl;
}

while ($row=mysql_fetch_array($result)) {
extract($row);
echo $title.br;
}

Currently, I have everything in the while loop which prints things out more
than what I'd like. Is there a way that I can get around this problem?

Any suggestions are greatly appreciated thanks. :)

__
Jason Dulberg
Extreme MTB
http://extreme.nas.net


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




Re: [PHP] PHP based search engine

2002-03-10 Thread Underbrush

I don't see why not, but you have to write the search engine.  i.e. create a form, 
take user input, search your database, search your static files, and return some 
formatted output with links to the content.  It's a project.  Someone else might be 
able to point you to some pre-written code.  I too would like that, but as of right 
now I am planning on writing my own.

Good Luck,  Chad
  - Original Message - 
  From: Tim Thorburn 
  To: [EMAIL PROTECTED] 
  Sent: Monday, March 11, 2002 12:25 PM
  Subject: [PHP] PHP based search engine


  Hi,

  Does anyone know of a PHP based search engine for a website?  I was using
  Fluid Dynamics on my site - as I've got some sections of the site in a
  MySQL database, and some sections are just static pages.  However, it seems
  to get stuck in a loop while trying to index portions of my database that
  are DATE formatted.

  Is it even possible to have a PHP search engine search a site that is mixed
  with MySQL and static pages?

  Thanks
  -Tim



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




[PHP] SOAP

2002-03-10 Thread Kearns, Terry

Who has had a crack at using SOAP with PHP (both client and server)?

What have you learned that you would recommend to someone just starting out
with soap?

I've noticed that there are a few options on the horizon, I'm busy checking
out the scripts written by Manuel Lemos.

For all those who don't know WTF I am talking about
http://www.w3.org/TR/2001/WD-soap12-20010709/
http://www.soapware.org/directory/4/implementations


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




Re: [PHP] newbie: the superglobal $_SESSION

2002-03-10 Thread bob

it works.
?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 1;
}
else {
$_SESSION['count']++;
}
 echo $count;
?

but the first time,i also get the warning(Warning: Undefined variable:
count in C:\WebShare\wwwroot\netk\5\test.php on line 9
).then ,it outputs 2(3,4.)
can you tell me why it beheave like that?
thanks.

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




RE: [PHP] Re: A stupid question...

2002-03-10 Thread Demitrious S. Kelly

You haven't given anyone any specifics... nor a link to a phps, so I
cannot be any more specific with my advice


You could probably get away with looking through each of the elements in
the array and using something like 


if ( substr($element, 0, 1) == $letter ( {
Stuff();
}


at least that's how I would go about it if I wanted a quick fix...

$.002 given ;)

cheers

-Original Message-
From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, March 10, 2002 7:04 PM
To: Chuck PUP Payne; Cary; mysql lists.mysql.com
Cc: PHP General
Subject: Re: [PHP] Re: A stupid question...

I want to sort by a letter in a colomn. Let say I want to sort the
colomn
last_name. I can do order by but I can do just the A's.

http://www.myserver.com/mysort.php?Letter=A

Like to create a link on a web A then sort only the last name are A.
 
I hope that's helps. I can order by, but I can't so a sort like the
example
above.

Chuck Payne
Magi Design and Support


 on 3/10/02 9:42 PM, Cary at [EMAIL PROTECTED] wrote:
 
 At 08:24 PM 3/10/02, Chuck \PUP\ Payne wrote:
 Hi,
 
 I not a newie but I am not a pro at mysql either. I want to do a
query by
 letter(a, b, c..ect.). Is there a simple way to do it. I am writing
in PHP.
 So can someone please so me the how.
 
 
 I'm not totally sure what your looking for. If you could elaborate a
little
 I am sure that one of us could help you out.
 
 Cary
 
 
 
 


-- 
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] Broadcasting

2002-03-10 Thread Frank



I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
an IP.

...like e.g. Code Red or Nimda do.


My question is: does my Apache server broadcast itself or its IP
for when script kiddies come check out my machine to see if they can
crash it? What does it broadcast? How did the script kiddies find me?

No need to broadcast anything. Crackers run systematic scanning of 
IP-addresses. We reject in average 65 visitors pr. day, typically trying 
FTP, Samba, SSH or portmap.


Can I reverse process this and see if my stolen machine still exists
anywhere? What would I look for?

But... is it physically stolen? Sorry - I'd have no suggestion of how to 
look for it, unless of course you have set it up to send mail to somebody 
and can check the IP-address it is sending from if it is SMTP. Or you 
search for one of your pages in Google and find them served! Not likely, 
though.

- - -

Sorry for your bad luck. Hacking is a serious problem, also I have lost a 
server once.

I have taken these precautions, which I think are pretty standard.

1. Make sure no more services are running than needed. Carefully edit 
start-up files - don't trust the suppliers default installation. (That was 
my mistake - RH 6.2)  Enable only things you know you need.
2. Restrict (pr. IP) who has access. It is unlikely that all the world need 
access to all your services. Do you e.g. need global access to your mysql 
or is it just serving requests from Apache? If so start mysql with 
--skip-networking. Look into hosts.allow and firewalls (ipchains or ipfw 
depending on what server OS you are using). Look well into 
inetd/hosts.allow. Also SSH will limit access.
3. Subscribe to security newsletters. Install fixes and patches.
4. Look into COPS and other tools that checks suspicious changes (like e.g. 
new files running suid)
5. User proper passwords
6. Always connect securely
7. Be very careful who you let in as user. Do they need FTP only? Then 
don't allow them shell-access.
8. Don't ever let anyone in as root, even for a second, if you do not have 
100% trust.
9. Monitor logs
10. You may still get cracked. Make regular backups in a safe place.

All this costs, of course. Lots of time. :-(  But having lost one server 
makes you realize that taking out the time is probably the cheapest after all.

Then say your prayers every night and of course the good old golden rule:

Don't trust software you didn't write
Don't trust hardware you didn't build
Don't trust people you aren't.

Best

Frank


At 21:47 10/3/2002 -0500, you wrote:
Not really a php thing, more a loss of php :) !

My PHP-MySQL server has been stolen from my office (last night).
Security has not been doing their job!

I noticed in the logs once where people were trying to get in by FTP on
occasion, or adding weird things to a url, when it was running just as
an IP. My question is: does my Apache server broadcast itself or its IP
for when script kiddies come check out my machine to see if they can
crash it? What does it broadcast? How did the script kiddies find me?
Can I reverse process this and see if my stolen machine still exists
anywhere? What would I look for?

I have a ghost backup going back around four week ago, but ...

Sigh :(
John


--
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] Re: CSS Group

2002-03-10 Thread Gary

Jtjohnston wrote:

 Can anyone recommend a good CSS news group?
 
 



 
http://two.pairlist.net/mailman/listinfo/css-discuss


Very hard core CSS List

HTH
Gary



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




[PHP] NEW template class!!

2002-03-10 Thread ayu

KONNICHIWA, everyone.

I wrote a new template class for rapid web development.

Please, give me any feedback.

thanks.

Hiroshi Ayukawa




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




[PHP] New template class

2002-03-10 Thread ayu

KONNICHIWA, everyone.

I wrote a new template class for rapid web development.

Please, give me any feedback.

thanks.

Hiroshi Ayukawa


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




Re: [PHP] Broadcasting

2002-03-10 Thread Samuel Ottenhoff

This is sort of a weird question as it seemingly involves both physical
theft and virtual theft.  But here goes:

1) How do script kiddies find you?
If you have a public IP address, and you are not protected behind a
firewall, you will be probed by scripts.  How do they find you?  By port
scanning large ranges of IP addresses.  They often scan all the RoadRunner
ips... So they start in 24.x.x.1 range and work through all of them testing
out common ports (http, ftp, ssh, etc).  Then, if the script finds an open
port, it will test out an exploit (or a series of known exploits).  For
example, FTP usually runs on port 21 If the script finds an open port
21, on a RedHat 6.0 box, it may try the remote root exploit of the ftp
daemon (wuftpd).  If that doesn't work, it just moves onto the next one.

If you are running a private apache server, and you don't want the public to
see it, then it is time to learn about firewalls.

2) broadcasting your ip
Your questions are odd here But yes, you can often learn a fair bit
about an IP.  Do a reverse dns lookup on a university campus and you can
often find a lot Maybe seat13.mathlab.university.edu.

Also, you can find out a lot from what Apache sends in the headers...
Example: Apache/1.3.0 (Unix) PHP/3.0 MyMod/1.2

So, if I check out your server, and see that you are running PHP 4.06 on
linux or solaris, a hacker could try the multipart/form-data exploit with a
broken boundary check (http://security.e-matters.de/advisories/012002.html).

There is a setting in Apache to limit this information in the headers so
that you do not reveal what kind of OS you are running and what version of
PHP and Apache you are running... I suppose this could help in limiting
exploits. Although, keeping up-to-date with versions, patches, and
security alerts is a better solution.

http://httpd.apache.org/docs/mod/core.html#servertokens


Sam

On 3/10/02 9:45 PM, jtjohnston [EMAIL PROTECTED] wrote:

 Not really a php thing, more a loss of php :) !
 
 My PHP-MySQL server has been stolen from my office (last night).
 Security has not been doing their job!
 
 I noticed in the logs once where people were trying to get in by FTP on
 occasion, or adding weird things to a url, when it was running just as
 an IP. My question is: does my Apache server broadcast itself or its IP
 for when script kiddies come check out my machine to see if they can
 crash it? What does it broadcast? How did the script kiddies find me?
 Can I reverse process this and see if my stolen machine still exists
 anywhere? What would I look for?
 
 I have a ghost backup going back around four week ago, but ...
 
 Sigh :(
 John
 


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




RE: [PHP] Error Handler Problem

2002-03-10 Thread S.Murali Krishna


I think I can get something from you..
Here just in short I want to Capture Error of the following, just tell 
me what I have to do for that.

PHP: Fatal Error: Undefined function 'some_non_exi_func()'

Thanks for your reply.


On Sat, 9 Mar 2002, Dan Vande More wrote:

 I'm not understanding completely, but could this have something to do with
 it?
 [quote]
 error_reporting() has no effect if you have defined your own error handler
 with set_error_handler()
 
 [Editor's Note: This is not quite accurate.
 
 E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR and
 E_COMPILE_WARNING error levels will be handled as per the error_reporting
 settings.
 
 All other levels of errors will be passed to the custom error handler
 defined by set_error_handler().
 
 Zeev Suraski suggests that a simple way to use the defined levels of error
 reporting with your custom error handlers is to add the following line to
 the top of your error handling function:
 
 if (!($type  error_reporting())) return;
 
  [EMAIL PROTECTED]]
 [/quote]
 Read:
 http://www.php.net/manual/en/function.error-reporting.php
 
 Dan
 
 -Original Message-
 From: S.Murali Krishna [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, March 09, 2002 6:43 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Error Handler Problem
 
 
 Hi All,
   I tell my requierment first. Just in short I want to capture a
 error of Undefined Function .so and so... .
   I set Error Handler to
 
   E_ALL  ~E_ERROR and I set my own Error Handler to capture errors
 then I called a Non-Existent Function intentionally.
 
 in this case its not at all capturing the error and silently executing
 the program. 
 
 Can anyone tell me what is the workaround this.
 For clarification here is the code.
 
 ?php
 
 function ErrorHandler($Errcode, $Errmsg )
 {
 print ErrorCode:  . $Errcode  . \n ;
 print ErrorMsg :  . $Errmsg   . \n ;
 
 return false ;
 }
 
 
 error_reporting(E_ALL  ~E_ERROR);
 
 $prev_hand = set_error_handler(ErrorHandler);
 
 // It's always executing if section instead of else.
 
 if(!$prev_hand) {
 print Unable to set error handler\n ;
 } else {
 print Previous Handler . $prev_hand ;
 }
 
 
 ?
 
 
 
 
 [EMAIL PROTECTED]
 ---
 We must use time wisely and forever realize that the time is 
 always ripe to do right.
 
   -- Nelson Mandela
 ---
 
 
 -- 
 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
 

[EMAIL PROTECTED]
---
We must use time wisely and forever realize that the time is 
always ripe to do right.

-- Nelson Mandela
---


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




Re: [PHP] New template class

2002-03-10 Thread ayu

Sorry, I forgot the URL  ;)
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top


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




[PHP] New template class

2002-03-10 Thread ayu


Konnichiwa, everyone.

I wrote a new template class to separate HTML views from PHP scripts.
Give me some feedback, please.

http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

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




Re: [PHP] PHP based search engine

2002-03-10 Thread Samuel Ottenhoff

Check out phpdig: http://phpdig.toiletoine.net/

My guess is that one of these packages on the web can serve as a foundation
for you... You might just need to build a custom layer on top of it.

Check out the site freshmeat.net.  It tracks software packages and new
updates and is quite focused on open-source/GPL stuff.

A search on php search engine could get you started.

Sam

On 3/10/02 11:41 PM, Underbrush [EMAIL PROTECTED] wrote:

 I don't see why not, but you have to write the search engine.  i.e. create a
 form, take user input, search your database, search your static files, and
 return some formatted output with links to the content.  It's a project.
 Someone else might be able to point you to some pre-written code.  I too would
 like that, but as of right now I am planning on writing my own.
 
 Good Luck,  Chad
 - Original Message -
 From: Tim Thorburn
 To: [EMAIL PROTECTED]
 Sent: Monday, March 11, 2002 12:25 PM
 Subject: [PHP] PHP based search engine
 
 
 Hi,
 
 Does anyone know of a PHP based search engine for a website?  I was using
 Fluid Dynamics on my site - as I've got some sections of the site in a
 MySQL database, and some sections are just static pages.  However, it seems
 to get stuck in a loop while trying to index portions of my database that
 are DATE formatted.
 
 Is it even possible to have a PHP search engine search a site that is mixed
 with MySQL and static pages?
 
 Thanks
 -Tim


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




[PHP] New template class

2002-03-10 Thread ayu


Konnichiwa, everyone.

I wrote a new template class to separate HTML views from PHP scripts.
Give me some feedback, please.

http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

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




[PHP] New template class

2002-03-10 Thread ayu


Konnichiwa, everyone.

I wrote a new template class to separate HTML views from PHP scripts.
Give me some feedback, please.

http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top

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




Re: [PHP] SOAP

2002-03-10 Thread Andrey Hristov

Hi
I've tried the SOAPx4 by Dietriech. Looks good ('m not very profocent in SOAP).
Firstly I tried to use XMLRPC for my stuff but found the UsefulInc implementation by 
Edd Dumbill is so slow -
For array with 100 elements I 've to wait 4 seconds to transfer for the server to the 
client(in my case on one machine).
Then looked for alternative and found SOAP. After a little big search on the net I 
found SOAPx4. As far as I can remember
there are one or two more implementations but I cannot find them (phpclasses changed 
their adress to www.phpclasses.org).
At last I found that 4.1.x versions are shipped with extension for XMLRPC and I 
started to use it. Interesting is that this extension
supports SOAP 1.1 specification(by the words of his author). I've not tried the SOAP 
part but after looking at the source I found that
when receiving a packet the extension tries to distinguish whether this is xmlrpc 
packet or soap envelope.It is bad that the extension
is compilable only under Linux. There is no version for windows. I was forced to 
switch to Linux to use it.
Hope that helps.

Best regards,
Andrey Hristov

On Monday 11 March 2002 06:52 am, you wrote:
 Who has had a crack at using SOAP with PHP (both client and server)?

 What have you learned that you would recommend to someone just starting out
 with soap?

 I've noticed that there are a few options on the horizon, I'm busy checking
 out the scripts written by Manuel Lemos.

 For all those who don't know WTF I am talking about
 http://www.w3.org/TR/2001/WD-soap12-20010709/
 http://www.soapware.org/directory/4/implementations

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




[PHP] attachment through mail

2002-03-10 Thread Swati Patil

i m using php4.1.1
in the mail function, i want to provide the facility to the end user to
attach his/her  word document.
how can i do this?

swati.

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




[PHP] connection speed?

2002-03-10 Thread Kunal Jhunjhunwala

Hey,
How can I detect the users connection speed? I dont want to ask them.. :)
Regards,
Kunal Jhunjhunwala

Minds think with ideas, not information. No amount of data, bandwidth, or
processing power can substitute for inspired thought. - Clifford Stoll


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




[PHP] expose_php

2002-03-10 Thread Erwien Samantha Y


Anyone can explain the fuction oh expose_php , in php.ini .
Whatever i set ON or OFF.
There are any security issue about expose_php ?


-- 
-==  HonesT Is The BesT PoLicY ==-
 -



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




[PHP] Re: [PHP-DEV] PHP 4.1.2 for windows

2002-03-10 Thread Andrey Hristov

AFAIK the problem is not afecting windows users. Because of that there is no windows 
binary.

Best regards,
Andrey Hristov

- Original Message - 
From: Gabor Hojtsy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 11, 2002 9:42 AM
Subject: [PHP-DEV] PHP 4.1.2 for windows


 Hi!
 
 From hour to hour we receive questions at [EMAIL PROTECTED]
 about the availability of PHP 4.1.2 for Windows. First I
 tried to give an estimate, but now I don't know what to say.
 Will there ever be a PHP 4.1.2 for windows, or a 4.1.3???
 
 Guys are waiting for the security fix... Why to kick out
 windows users from installing a more secure version of PHP?
 
 Goba
 
 
 
 -- 
 PHP Development 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] expose_php

2002-03-10 Thread Zeev Suraski

expose_php tells PHP whether it's allowed to expose the fact that it's
installed on the server, or not.  If it's on, it'll be possible and easy
to determine that PHP is installed on the server.

Whether or not this poses a security risk is a matter of opinion.

Zeev

On Mon, 11 Mar 2002, Erwien Samantha Y wrote:

 
 Anyone can explain the fuction oh expose_php , in php.ini .
 Whatever i set ON or OFF.
 There are any security issue about expose_php ?
 
 
 

-- 
Zeev Suraski [EMAIL PROTECTED]
http://www.zend.com/


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