Re: [PHP3] PHP Ticketing system
We took a look at Keystone, but we are having various
problems with it and it doesn't have quite what we need.
Does anyone know of another PHP based ticketing system?
-------
Chris, this is what you need ??
http://phphelpdesk.sourceforge.net/
--
idban secandri, mail send on June 20, 2000
To have one joy, you must share it.
http://php.klik.or.id || joy inside!
|
6/20/2000 7:22:10 PM
|
0
|
id...@satunet.com
|
List administrativa
As a part of the list migration plan, the following lists
php3@lists.php.net
php4beta@lists.php.net
are disabled from now on. No further messages or
subscriptions will be accepted.
You can subscribe to the new general PHP list by sending an
empty email to:
<mailto:php-general-subscribe@lists.php.net>
We have also created a number of theme-specific mailing
lists. You can find more information about these on our
support page:
<URL:http://www.php.net/support.php>
Thank you for your attention.
|
6/20/2000 7:20:51 PM
|
0
|
sas...@schumann.cx (Sascha Schumann)
|
ereg_replace
I'm trying to edit a skeleton file and fill in the blanks, but
ereg_replace() doesn't seem to work. I'd appreciate some insight from you
php gurus out there.
The error message:
None, that's the problem.
the script:
<?php
include "admin_header.inc";
$floorvar = "floor";
$long_floorvar = "long_floor";
$fd = fopen ("/usr/local/www/forums/skel/floor/index.phtml",
"r+");
$contents = fread ($fd, filesize
("/usr/local/www/forums/skel/floor/index.phtml"));
print $contents;
ereg_replace("FLOORVAR", $floorvar, $contents);
|
6/20/2000 5:47:53 PM
|
0
|
list...@wacko.trickster.net (Travis Ruthenburg)
|
Printing highlighted PHP syntax
------=_NextPart_000_000E_01BFDA9A.B6F520C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I've asked a question similar to this before on this list. But how do I =
print "pretty php" onto a webpage without using the .phps extension or =
by show_source("file.php"); ? I have some PHP code in a MySQL database =
that needs to be displayed onto a webpage and it needs to be pretty. =
Does anybody know how to do this?
Regards,
Tyler Longren
------=_NextPart_000_000E_01BFDA9A.B6F520C0
Content-Type: text/html;
charset="iso-8859-1"
Co
|
6/20/2000 4:34:21 PM
|
0
|
tyler.long...@midiowa.net ("Tyler Longren")
|
R: [PHP3] oracle8: correct date insert??
try the following:
INSERT INTO my_table (my_date_field) VALUES (to_date('2000-06-20
12:05:01','yyyy-mm-dd hh24:mm:ss'));
or
INSERT INTO my_table (my_date_field) VALUES =
(to_date('200600','ddmmrr'));
From Oracle7.3.4 manual:
TO_DATE=20
Syntax TO_DATE(char [, fmt [, 'nlsparams'] ])
Purpose=20
Converts char of CHAR or VARCHAR2 datatype to a value of DATE datatype. =
The
fmt is a date format specifying the format of char. If you omit fmt, =
char
must be in the default date format. If fmt is 'J', for Julian, then =
char
must be an integer. For information on date form
|
6/20/2000 4:33:19 PM
|
0
|
robe...@mionetto.it (Roberto Sartor)
|
RE: [PHP-DB] oracle8: correct date insert??
I'm pretty sure you need to use a to_date('string','format') on it.
to_date('06/06/2000','MM/DD/YYYY') ...or something fairly close to that.
CJ
"No other personal quality contributes to success more than relentless
persistence in the pursuit of one's goals."
-----Original Message-----
From: Dieter Kneffel [mailto:data@wap4.com]
Sent: Tuesday, June 20, 2000 11:02 AM
To: php3@lists.php.net; php-db
Subject: [PHP-DB] oracle8: correct date insert??
help, please: What is the proper format to perform an insert
of date and time information into a date field using oracle8.
t
|
6/20/2000 4:33:05 PM
|
0
|
cj...@rx.com (CJ Romberger)
|
[PHP3] Sessions - PHP Vs. ASP
How different are PHP sessions from ASP sessions? How
do u really use sessions in PHP? I'm from an ASP
background and i always found sessions to be one of
the most usefull things in ASP.
Regards,
T. Edison jr.
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech@yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.
|
6/20/2000 4:25:53 PM
|
0
|
thomasediso...@yahoo.com ("Thomas Edison Jr.")
|
MySQL returns data-set even if where clause doesn't match ???
------=_NextPart_000_000B_01BFDAE4.E65B3940
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi!
I've got a large problem. Using my own function to verify if the =
userpassword and firmid is right some strange things happen, or at least =
I don't understand them
username, password and firmid are passed to the following function. In =
my view the mysql query now tries to fetch all passwords, and acountIDs =
where a_name is like the username and the firmID passed is like the
value stored in the a_firmennummer column.
Now what happe
|
6/20/2000 4:25:24 PM
|
0
|
...@4freedom.de ("Jan Mussler")
|
from Checkboxes to e-mail
Hi,
I've read numerous entries about getting selected checkbox values recognised
but haven't been able to figure out my dilema.
I hava group of check boxes on a form:
<INPUT TYPE=CHECKBOX NAME="Options" VALUE=Black>Black
<INPUT TYPE=CHECKBOX NAME="Options" VALUE=White>White
<INPUT TYPE=CHECKBOX NAME="Options" VALUE=Grey>Grey
And when I compile the e-mail, I want to slot these selected itmes into the
message:
mail("$SentBy", "$Subject", $Message,
"From: $Email\nReply-To: $Email\n
Options - $Options <-- NEED THEM HERE
");
Any suggestions?
Thanks.
Martin E. Koss
|
6/20/2000 4:14:47 PM
|
0
|
...@mek.co.uk ("Martin E. Koss")
|
Re: [PHP3] Simple counter
When I get home from work I will be posting PHP source and supplying instructions
on its use.
-Paul
>Feel free to post it to me if you like.
>tnx // Jonatan Bagge
>
>
>Paul Fontenot wrote:
>
>> Take a look at http://www.code-slinger.com There is a counter I use there
>> that if you are interested I will gladly post source to.
>>
>> -Paul
>
http://netwinsite.com
|
6/20/2000 4:09:15 PM
|
0
|
p...@code-slinger.com ("Paul Fontenot")
|
from Checkboxes to e-mail
Hi,
I've read numerous entries about getting selected checkbox values recognised
but haven't been able to figure out my dilema.
I hava group of check boxes on a form:
<INPUT TYPE=CHECKBOX NAME="Options" VALUE=Black>Black
<INPUT TYPE=CHECKBOX NAME="Options" VALUE=White>White
<INPUT TYPE=CHECKBOX NAME="Options" VALUE=Grey>Grey
And when I compile the e-mail, I want to slot these selected itmes into the
message:
mail("$SentBy", "$Subject", $Message,
"From: $Email\nReply-To: $Email\n
Options - $Options <-- NEED THEM HERE
");
Any suggestions?
Thanks.
Martin E. Koss
|
6/20/2000 4:07:46 PM
|
0
|
...@mek.co.uk ("Martin E. Koss")
|
oracle8: correct date insert??
help, please: What is the proper format to perform an insert
of date and time information into a date field using oracle8.
the following just does not work: 'insert into my_table ( my_date_field
)VALUES( '2000-06-20 12:05:01')
using other notation, e.g. slashes (01/01/2000) nstead of minus (as
above) works, but only on dates.
I am not able to insert date and time! the my_date_field is simply
defined as 'date'
In some manuals, I have seen a notion like ... TO_DATE() where you have
to supply the date/time as
an integer and give formatting information. Is this the only way?
Please
|
6/20/2000 4:02:12 PM
|
0
|
d...@wap4.com (Dieter Kneffel)
|
Twin Cities PHP User Group
After a small technical fiasco the Twin Cities PHP User Group is
reorganizing itself and planning its next meeting. If you are
interested in getting involved with the group, check out
http://www.moewes.com/tcphp.php3, or send an email to
tcphpug-subscribe@moewes.com. If you were previously subscribed to
this emai list, please resubscribe to guarantee that you are still
there.
If you are looking for a PHP User Group in your area, or have a group
and want to help people find it, visit
http://www.moewes.com/phpug.php3
--
--
Christopher R. Moewes-Bystrom
cmoewes@moewes.com
h
|
6/20/2000 3:31:29 PM
|
0
|
christop...@moewes.com
|
IMAP (cyrus)
Is there any way to change the ACL of an cyrus IMAPD from PHP?
Creating user-mailboxes works just fine by just logging in as someone defined as
'admin', but deleting a mailbox (user.<user>) is impossible (as the admins lack
the D flag in the ACL for that mailbox).
Therefore I need to change the ACL - any way to do this using PHP?
(or is there any way to set the default flags to include delete permissions for
admins?)
Also - is there any way of setting the Quota using PHP when creating the
mailbox?
(or a way to set default quota? ;))
Finally, any way to GET the quota minus t
|
6/20/2000 2:43:51 PM
|
0
|
Markus.Ha...@abc.se (Markus Harma)
|
Re: [PHP3] Query question about how to do a select which
Many databases support a function called SOUNDEX. This function converts
a string into a 4 character value. Now to get my "snipe" in. Most real
databases support the function. Its a published algorithm so if SQL
Server doesn't support it you should still be able to find it on the
net. I'm fairly sure SQL Server does support it. These values can then
be compared to see if the strings "sound similar". The most common use
of this function is for name matching - such as Rubinstein, Runenstein,
Rubinstien, Rubenstien. It will work with any string. Not sure how well
it will do with more tha
|
6/20/2000 2:43:50 PM
|
0
|
...@spacelab.net (Einar Le Blanc)
|
ODBC DSN not found
Hi, I have installed php4 (cgi) with odbc (--with-iodbc=3D/usr/local) and
under /usr/local/etc/ I have the file odbc.ini with this into it:
;
; odbc.ini
;
[ODBC Data Sources]
OpenLink =3D OpenLink (MT)
NETWORK =3D DB2
[OpenLink]
Driver =3D /home/openlink/lib/oplodbc.so.1
Description =3D Sample OpenLink MT DSN
Host =3D localhost
ServerType =3D Oracle 8
FetchBufferSize =3D 99
UserName =3D
Password =3D
Database =3D
ServerOptions =3D
ConnectOptions =3D
Options =3D
ReadOnly =3D no
[NETWORK]
Driver
|
6/20/2000 2:38:08 PM
|
0
|
mic...@ziobudda.net (michel)
|
Re: [PHP3] Re: Communicating with FileMaker?
Thanks.
>>I will try and se how it goes.
>
>Do so, you might like using odbc. It has it's uses, to be sure! I don't mind
>either route. Whatever tool works best for the job. Good thing that PHP
>gives you so damn many tools. ;)
I just realized something.
How do I do a connection to tha datbase so I can communicate with it?
If I have a webserver with php at 192.168.100.1 and want to connect to a
filemaker database with ODBC, how do I do that?
The database is called "test.fmp".
<?
// -----------------------------------------------------------
$database = "test.fmp";
$s
|
6/20/2000 2:27:09 PM
|
0
|
mag...@macnytt.com (Magnus Hammar)
|
Re: [PHP3] Open source editor for windows?
Hi all!
I myself also like phpED ( http://www.soysal.com ) a great deal. This is
a topic (editors for PHP) that has come up pretty often in the past. Try
going to Geocrawler ( http://www.geocrawler.com ) and search the PHP
archive.
- Erik
-----Original Message-----
From: Meir Kriheli - MKsoft <mksoft@netvision.net.il>
To: gfunk007 <josh@gfunk007.com>; php3@lists.php.net <php3@lists.php.net>
Date: Tuesday, June 20, 2000 1:30 AM
Subject: Re: [PHP3] Open source editor for windows?
>You don't have to download the JDK to use jEdit.
>
>You can download JRE which is smaller
|
6/20/2000 2:23:04 PM
|
0
|
e...@butlerandco.com ("Erik Mathy")
|
Multiple Recordsets
------=_NextPart_000_0021_01BFDA9C.A538F530
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Looking for a way to retrieve multiple recordsets generated by a MS SQL =
Server Cursor with the odbc functions.
I do this quite regularly in ASP using ADO.=20
I'm hoping that I can eliminate the use of ADO with PHP.
Also I've recently downloaded PHP 4 for Windows and the MS SQL Server =
DLL wasn't included. Does anyone know where I can go to download the =
DLL?
------=_NextPart_000_0021_01BFDA9C.A538F530
Content-Type: text/html;
charset=
|
6/20/2000 1:48:11 PM
|
0
|
bsout...@greavesinc.com ("Ben Souther")
|
require() problem
------=_NextPart_000_0009_01BFDB06.5758FE40
Content-Type: text/html;
Content-Transfer-Encoding: 8bit
<HTML><HEAD><TITLE> Message </TITLE></HEAD>
<BODY><IMG SRC="http://user4.orgio.net/orgiomail/button.php3?id=fgcdaztrrhophp3&user=FBISKR">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=ks_c_5601-1987" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hello php users!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>require c
|
6/20/2000 1:24:47 PM
|
0
|
FBI...@orgio.net (=?ks_c_5601-1987?B?vufAz7Xu?=)
|
Please do NOT open any email titiled "Funny" from me!
------=_NextPart_000_0000_01BFDA97.940D9C20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi All,
This morning I opened an email titled with the subject "Funny".
And later when I read news online, it says a new email virus just found,
and usually contains "Funny" in the subject. And it doesn't hurt
any system file, but it would send email automaticaaly to the addresses
listed in the contacts book.
Therefore, please do not open any email from me with attachment ,
and this one is the only email I sent to you today!
Iris Zhong
TEK DigiTel C
|
6/20/2000 1:11:54 PM
|
0
|
izh...@tekdigitel.com ("Iris Zhong")
|
RE: [PHP-DB] Query question about how to do a select which return s things that resemble the input
Use LIKE
SELECT * FROM MyTable WHERE MyField LIKE '%MyWord%'
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: Maarten Stolte [mailto:M.Stolte@Samhoud.nl]
Sent: Tuesday, June 20, 2000 10:48 AM
To: 'php3@lists.php.net'; php-general@lists.php.net; php-db@lists.php.net
Subject: [PHP-DB] Query question about how to do a select which returns
things that resemble the input
Hi,
I'd like to know how to return some possibilities based on
a users input, e.g:
The users input is "terd
|
6/20/2000 12:54:23 PM
|
0
|
ber...@netvision.net.il (Boaz Yahav)
|
Max execution time
Hi, I'm working on some scripts that haev to edit a huge httpd.conf file.
I have no problem writing to the file however I need to do some error
checking to make sure the name doesn't already exist in the file and even
if I just try to print it out with a for loop I get
Fatal error: Maximum execution time exceeded in
/web/sites/roy20/lapidary.com/stats-new/ereg-test.php3 on line 16
I'm assuming this is due the file size. Any suggestions?
Thank you
Ken N
http://cleveland.lug.net/~rocket/
The answer is simple if you grant that ironies are like submarines;
dangerous only
|
6/20/2000 12:40:58 PM
|
0
|
k...@pcintelligent.com (Ken N)
|
memory-friendly chat/irc - script
Hi all,
I heard some PHP-chat/irc-scripts use a lot of memory from the server. Does
anyone know a memory-friendly chat/irc - script ?
TNX in advance
dIVUS
|
6/20/2000 10:37:12 AM
|
0
|
jonas.riemsl...@planetinternet.be ("dIVUS")
|
Upload problems in Windows98, php3 and pws environment
Upload problems in Windows98, php3 and pws environment
I have made thiese simple upload scripts below, but I get an error =
message while trying to run it:
Warning: Unable to open 'c:\\windows\\TEMP\\php2' for reading: Unknown =
error in C:\Inetpub\wwwroot/php/upload3.php on line 7
I have tried to set the php3.ini file like this:
upload_tmp_dir =3D C:\Inetpub\tmp;
....but that doesn=B4t seem to take affect.
What am I doing wrong?
___
file: upload.php
<?=20
echo "<html><head><title>Multiparttest</title></head>\n";
echo "<body>\n\n";
echo "<H3>Upload file to server</H3>
|
6/20/2000 10:30:25 AM
|
0
|
e-s...@telia.com ("Tobias Stenmark")
|
download http file
Is there a command in PHP4 to download a URL file. I need the script to
download something like http://where.ever.com/path/index.html
Is there a funtion in PHP for doing this?
Thanks
"And I'm happy, because you make me feel good, about me." - Melvin Udall
-----------------------------------------------------------------
Mart=EDn Marqu=E9s=09=09=09email: =09martin@math.unl.edu.ar
Santa Fe - Argentina=09=09http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------
|
6/20/2000 10:19:00 AM
|
0
|
mar...@math.unl.edu.ar ("Martin A. Marques")
|
Re: [PHP3] Copying a mySQL database
Mark
I'd try something using the mysqldump and mysql command line utility
programs that come with mysql and are available for UNIX and Win32.
mysqldump --host=the.remote.ip -t databaseName tableName
will output the data in the table in sql statement format. You may will
almost certainly need to add --password=xxx and --user=aaa options. the -t
option means "just the data"
If you direct that output to a file called "mydump" you can then feed it all
in to the master database using
mysql --host=the.master.ip databaseName < mydump
Again, add user and password options as
|
6/20/2000 9:46:36 AM
|
0
|
ni...@powys.gov.uk ("Nick Talbott")
|
PHP4 Warning
I have
Warning: Unable to fork [scopy c:\temp\test c:\temp\dasdda /s] in
D:\www\index1.php on line 44
php4, IIS4, NT4.
Any idea ?
|
6/20/2000 9:46:00 AM
|
0
|
david.tho...@exceed.lu ("David THOMAS")
|
Again: Query question about how to do a select which returns thin gs that resemble the input
Thank you all for the swift replies, but I think the question
was not completely clear. Your answers all search for exact
data matches though we would like to find data that is the
closest match to the search argument.
Let's say we've got a table that contains the following data in a column
teststring
thisisnothing
test strong
west ring
best-thing
nomatchatall
and we search that column for let's say 'press thing'.
We would like that the database would come up with the closest matches like:
teststring
west ring
best-thing
we are going to use a MSSQL server
is this
|
6/20/2000 9:40:33 AM
|
0
|
...@Samhoud.NL (Jeroen Wesbeek)
|
RE: [PHP3] Copying a mySQL database
Hi Andy,
I have myadmin running on both servers. I guess I'm
asking for a command which copies directly between the
databases without intermediate text files being
involved, and no FTP'ing (might not be possible and
have to go the suggested route though.) I remember
seeing something which included compression options
etc but might not be it. The other possibility I guess
will be a script to do this manually, but, yuk, no
unless I have to!
Thanks,
Mark
--- Andy <andy@angelsolutions.co.uk> wrote:
> If you have MyAdmin running on the server you can
> take a database dump which
|
6/20/2000 9:32:33 AM
|
0
|
selby_m...@yahoo.com (Mark Selby)
|
Re: [PHP3] Query question about how to do a select which returns things that resemble the input
<?
$link=mysql_connect('localhost','user','pass');
mysql_select_db('mydatabasename',$link);
if($submit == 'search')
{
$query = "SELECT * FROM towns WHERE towns.name LIKE
'".$inputbox."'";
echo $query; // Shows you the query that was built
}
$result_set = mysql_query($query,$link);
while($row = mysql_fetch_row($result))
{
echo $row[0].$row[1].$row[2].'<HR>';
}
?>
<FORM METHOD="POST" TARGET="thisfilename.php3">
<INPUT TYPE="TEXT" NAME="inputbox">
<INPUT TYPE="submit" NAME="submit" VALUE="search">
</FORM>
Something along these lines will help to show you
what's going on.
|
6/20/2000 9:27:05 AM
|
0
|
selby_m...@yahoo.com (Mark Selby)
|
Copying a mySQL database
Hi All,
How do I copy a database from a remote mySQL server to
a local mySQL server? I want to append the new records
from the web server to the master database on the
local server. The records don't need modifying in any
way.
What's the quickest / best way?
Thanks,
Mark.
__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/
|
6/20/2000 9:09:45 AM
|
0
|
selby_m...@yahoo.com (Mark Selby)
|
Warning with PHP4
I have
Warning: Unable to fork [scopy c:\temp\test c:\temp\dasdda /s] in
D:\www\index1.php on line 44
php4, IIS4, NT4.
Any idea ?
|
6/20/2000 9:06:17 AM
|
0
|
david.tho...@exceed.lu ("David THOMAS")
|
Re: [PHP3] Err 1067 Installation NT
I haven't had the problem before - I don't use ISAPI, however I thought I'd
look up what the error 1067 actually meant.
Sadly, its no great help, but here's what winerror.h says:
//
// MessageId: ERROR_PROCESS_ABORTED
//
// MessageText:
//
// The process terminated unexpectedly.
//
#define ERROR_PROCESS_ABORTED 1067L
The error message is lumped in with errors generated by NT services.
Sorry not to be too helpful!
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
|
6/20/2000 8:53:47 AM
|
0
|
p...@dialsolutions.co.uk ("Phil Driscoll")
|
Query question about how to do a select which returns things that resemble the input
Hi,
I'd like to know how to return some possibilities based on
a users input, e.g:
The users input is "terdam", and the db returns 'rotterdam,amsterdam,tordam'
How do i do this?
Maarten
|
6/20/2000 8:48:11 AM
|
0
|
M.Sto...@Samhoud.nl (Maarten Stolte)
|
foreign charcaters
i have data in my data base that contains german umlaut characters in html
format. ie v = 'ö'
the semicolon causes my statments to be abnormally terminated. when i try a
mysql> select name, replace(name,'ö','v') from info;
i get the following error
ERROR 2013: Lost connection to MySQL server during query
mysql> bin/safe_mysqld: 16652 Memory fault - core dumped
mysqld daemon ended
replace(name,'t','i') works
any suggestions on how i can correct my data
r
|
6/20/2000 8:44:18 AM
|
0
|
aardv...@mpipks-dresden.mpg.de (Reiner Peterke)
|
Log report
Dear PHP3 Masters,
PHP3:
I have created a PHP3 application with MySQL database for member
registration. And its online now. Its working properly from my machine and
some other computers (IBM PC's with Windows 95/98) using Netscape & IE. But
some users (some on Mac )were complaining that they were getting errors
while accessing some part of the script. I have checked these sections from
my computer and its working fine. While setting cookies is there any
compatibility problem with different OS and browsers.
Is there any log file created by the PHP3 module on the server to fin
|
6/20/2000 8:37:14 AM
|
0
|
sh...@cyber-gear.com ("Sheni R. Meledath")
|
Re: [PHP3] Multiple includes.
Travis - I actually like the approach of confining most code to include
files and having one short master file that ties it all togther. So my
typical approach to any non-trivial project might look like this:
main file:
----------
include ( - global definitions - )
include ( - security and session checking stuff - )
include ( - login if required - )
switch ( on basis of value attached to a submit button in a form)
case 1: include (first module); exit;
case 2: include (next module); exit;
...
default: include (main menu module);
module files:
-------
|
6/20/2000 7:51:29 AM
|
0
|
ni...@powys.gov.uk ("Nick Talbott")
|
PHP and PostgreSQL's arrays
Hi,
how can I easily access to PostgreSQL's arrays in PHP? Look at this
snippet:
test=# CREATE TABLE foo (bar char[]);
CREATE
test=# INSERT INTO foo VALUES ('{f,b,n,h}');
INSERT 19241 1
test=# SELECT * FROM foo;
bar
-------------------
{"f","b","n","h"}
(1 row)
test=#
When I tried to read this stuff from the db with:
$con=PG_Pconnect("", "", "", "", "test");
$res=pg_Exec($con, "SELECT bar FROM foo");
$record = pg_fetch_array($res, 0);
echo "Num of Fields: ".pg_numfields($res)."\n";
echo "Name of Field: ".pg_fieldname($res,0)."\n";
ech
|
6/20/2000 6:50:04 AM
|
0
|
Pavel.Ja...@linux.cz ((Pavel =?iso-8859-2?q?Jan=EDk?= ml.))
|
Open source editor for windows?
------=_NextPart_000_0011_01BFDAD4.52477580
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi, is there an open-source editor for windows that's
good for php? I know there's a couple of windows
php editors, but none seem to be open source, which
defeats the purpose, as there's some thngs I want
to put into a decent text editor so I don't have to start
from scratch, which I haven't time for.
I have jedit, but can't download 50mb for the JDK to
run it.
Any help?
-Josh
------=_NextPart_000_0011_01BFDAD4.52477580
Content-Type: t
|
6/20/2000 6:26:43 AM
|
0
|
j...@gfunk007.com ("gfunk007")
|
Re: [PHP3] syntax error creates empty document
Maybe your php file is wrong.You can open php.ini and find if=
this line like below:
"display_errors=09=3D=09On=09;"
If "display_errors=3Doff",change it and try again.If you get same=
results,I think I
can't help you.In fact,I am a newbie to php too. ;-)
>If I have a syntax error using PHP4 in a php script, instead of=
getting a
>message telling me about the error like I would on php3, I'm=
getting an
>error:
> The document contained no data
> Try again later or contact the server's administrator
>
>you can see my problem at=
http://www.brickies.net/~smoser/te
|
6/20/2000 6:08:56 AM
|
0
|
zh...@diablo.jftt.fujitsu.co.jp (rainfall)
|
Last Modified getlastmod()
Hi,
I'm using date( "D M d, Y \@ h:i a", getlastmod() ) in one of my scripts
but need it to do a specific page, I'm running a script inside a page and I
need it to do the last update of the script, not the page it's on...
Any suggestions ?
Rick
|
6/20/2000 6:05:57 AM
|
0
|
a...@mediaone.net ("Rick Proctor")
|
Re: Help on uploading files to NT with IIS
Hi
Could anyone advice me on how to upload a file to an NT server running IIS?
I can do this with apache but not IIS!
I know one can use the file cpshost.dll but I have my own php3 script that
needs to process the uploaded file? Also how can I avoid NT asking me for
a
username and password each time I want to upload a file?
Thanks for any help
Tim
|
6/20/2000 5:37:38 AM
|
0
|
tchem...@ing.sun.ac.za ("Tim")
|
syntax error creates empty document
If I have a syntax error using PHP4 in a php script, instead of getting a
message telling me about the error like I would on php3, I'm getting an
error:
The document contained no data
Try again later or contact the server's administrator
you can see my problem at http://www.brickies.net/~smoser/test.php and the
source to the script at http://www.brickies.net/~smoser/test.phps . I'm
guessing that its something to do with my php.ini file, so check out the
output to my phpinfo() at http://www.brickies.net/~smoser/info.php
What could I have done wrong, any suggestions?
Thank
|
6/20/2000 5:24:33 AM
|
0
|
smo...@brickies.net (Scott Moser)
|
include() question
Hi,
I'm having a problem with an "include()". I'm using php 3.0.16 with Apache
1.3.11.
Basically, what I'm trying to do this is:
put the name/value pairs into a include file
and then perform a header("Location:...") using those name/value pairs.
eg. test.php3(This code works)
<?php
$value = "name=test&address=test";
header("Location: destination.php3?".$value);
exit();
?>
If I take the $value = "name=test&address=test" and put it into a separate
file:
details.inc:
============
<?php
$value = "name=test&address=test";
?>
Then the test.php3 looks like this:
|
6/20/2000 5:16:53 AM
|
0
|
saman...@cfs.net.au ("Samantha Savvakis")
|
Re: [PHP3] windoze install
Hi scott
I am a newbie to php too.After several days hard work,I succeed to install
php3 under windows98 with pws4.0.
I think maybe you missed one step.That is add c:\php3 to your path in
autoexec.bat.
Hope this is helpful to you!
>Hi all.
>newbie
>Having major trouble getting php 3 or 4 to run under windoze 98 with
>pws. any hints or tips appreciated. Have run the INF and checked the
>registry and all correct. The DLLs and EXE are in c:/php3 and the ini
>file is correct and in the windows directory.
>any silly things I have missed.
>I am running as a test a simple HTML fi
|
6/20/2000 5:01:14 AM
|
0
|
zh...@diablo.jftt.fujitsu.co.jp (rainfall)
|
Simple counter
Someone requested a simple counter a day or two ago,
You need to set the counter name in the second line (var/count/COUNTERNAME).
It will automatically set up the counter name if it does not exist.
To view it in use check out the following; www.timaru.com/railway
<?php
$fname="/var/count/count";
if (file_exists($fname)){
$ct = file($fname);
}
else{
$ct[0] = 0;
}
$ct[0]++;
$fp = fopen($fname, "w+");
fputs ($fp, $ct[0]);
fclose($fp);
print "<p>";
print "<table border = '1'><tr><td >";
print "Hit Counter";
print "</td></tr>";
print "<tr><td border = '1' bgcolor = 'b
|
6/20/2000 3:50:47 AM
|
0
|
t...@timaru.com ("Tim Homes")
|
using preg_replace when searching for a literal '\' char?????
In perl, one would expect s/\\//g to replace all instances of the '\'
charachter with nothing in whatever string you apply it to.. This is why I
am perplexed as to why this does NOT yield the desired result:
$foo = "some \ chars \\";
$foo = preg_replace("/\\/","",$foo);
Doing this results in an error!!! It comes back saying that no ending
delimiter was found since apparently the php interpereter doesn't realize
that the backslash is being escaped? What do I need to do to get the
desired result here?
Thanks
-Marc-
#/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
#Mar
|
6/19/2000 10:41:09 PM
|
0
|
marcswan...@mediaone.net ("Marc Swanson")
|
Digital camera
Hello all,
Has anybody got any suggestions or hints about taking a picture, adding a
description and price and making it available to the browser.
Any sample scripts would be appreciated.
What is the best camera to buy?
I'm trying to help an auctioneer put cars on his web site as soon as he gets
them, he (and/or his guys) must be able to do the data entry.
--
Pierre Marceau
pierremarceau@hotmail.com
Edit your PHP
and HTML files
right from your
browser.
Try EditPHP . . . http://www.skynet.ca/~pierre/
It's free!
________________________________________________
|
6/19/2000 10:38:04 PM
|
0
|
pierremarc...@hotmail.com ("Pierre Marceau")
|
how to print long records in more than one pages??
Hi All,
I have a set of records retrieved from database which is in array. I want to
print them out in a nice format, each page only shows 4 items. in that way
it could be in more than one or 2 pages. I have a "next" hyperlink and
....when user click on the "next", it would show the rest of records with a
same http address http://shoppingcart/rings.php3 I'm wondering if you
know the effective way of dealing with it. any suggestion is appreciated.
thank you.
|
6/19/2000 10:12:13 PM
|
0
|
c...@peerwork.com ("Cicy Chen")
|
Installation of PHP3 under WINDOWS
--------------F9C900EAFAFF67B96CC2A521
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi all beginners with PHP,
(I am an absolute beginner, I started with PHP five days ago!)
if you have problems to start PHP3 unter WINDOWS98 & APACHE like me,
please have a look to your REGISTRY with "regedit" (be carefully!):
HKEY_CLASSES_ROOT\.php3\phpfile\shell\command
i.e. c:\php3\php.exe -q %1
You should see in the path the windows own backslashes! It have taken me
three days to find out, that the installation routine had used in the
registry
|
6/19/2000 9:50:47 PM
|
0
|
claus...@luebeck.com (Ulrich Claussen)
|
Download
How can I download ex. zip-file (or any binary file) from another
www-server? Please give me easy working example.
Best Regards,
Matti Simperi
|
6/19/2000 9:50:22 PM
|
0
|
matti.simp...@suomenwebpalvelut.fi ("Matti Simperi / SWP")
|
location.replace(url)
After a user submits a form,
I want to prevent them from using the back button to revisit the form and =
trying to correct their work.
location.replace will replace the page in the history list with the next =
page, but how do I use location.replace in the ACTION attribute of my =
form?
Thanks.
Tim
|
6/19/2000 9:49:45 PM
|
0
|
tim.mcgu...@dnr.state.mn.us ("Tim McGuire")
|
Re: [PHP3] Re: Communicating with FileMaker?
Hi Eric...
I was actually talking to a pal of mine (my old roommate, actually) who
does alot of development with Tango and FileMaker. We were talking about
FileMaker as a webserver, using it's CDML (Claris Dynamic Markup Language, I
believe) language to get records and such. He, who has done some massive
projects with FileMaker, made the point that FMPro 4 (and 5)'s built in
webserver capability simply isn't robust enough for really big web apps.
Here, let me quote him ;)
<quote>
Yeah, it's not a high-performance server, so it never became that popular in
high-traffic situati
|
6/19/2000 9:40:46 PM
|
0
|
e...@butlerandco.com ("Erik Mathy")
|
Re: [PHP3] ODBC Num Rows
------=_NextPart_000_052C_01BFD9FB.46D8DF60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Jordan!
Actually, there is a way...depending on the database. You can try a =
Select Count() statement.
They go something like this:
SELECT Count(UserID) AS TotalUsers FROM UserTable;
The result should be a single number giving you the total count of =
users in the UserTable. Change it to narrow your results as you will =
with Where clauses.
<example>
// This one gets the count
$Query =3D "Select
|
6/19/2000 9:33:03 PM
|
0
|
e...@butlerandco.com ("Erik Mathy")
|
401 & $PATH_INFO
Does having a url like http://mydomain.com/mypage.php/myvariable interfere
with using an authentification header. I'm trying to limit access according
to what is in myvariable and I keep getting a blank page. The page works
fine w/o the 401 and selects content according to myvariable.
Rossi Designs
PO Box 1084
Holly Hill, FL 32125-1084
Phone : (904) 226-8979
URL : http://rossidesigns.net
URL : http://datadrivendesign.com
|
6/19/2000 9:23:32 PM
|
0
|
webmas...@rossidesigns.net ("Rossi Designs")
|
ODBC Num Rows
------=_NextPart_000_010A_01BFD9FC.65E29F80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Is there any other way to get the number of rows that a query returns =
other that the odbc_num_rows() function? That function is returning -1 =
just like the manual says it could after a SELECT statement.
I am hoping that there is another way to get the number other than going =
through every row first and counting them.
jordan
------=_NextPart_000_010A_01BFD9FC.65E29F80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Enco
|
6/19/2000 8:41:05 PM
|
0
|
jor...@cynetech.com ("Jordan Pickup")
|
RE: [PHP3] Directory tree listing
------_=_NextPart_001_01BFDA2E.08F747BC
Content-Type: text/plain;
charset="iso-8859-1"
Trio,
That works great thanks
Robert
-----Original Message-----
From: Trio [mailto:trio@surffi.net]
Sent: Monday, June 19, 2000 1:24 PM
To: PHP List
Subject: VS: [PHP3] Directory tree listing
Yes, it's possible. You have to use regursive-function. This is how you can
do it:
<?
function directory_tree($address){
@$dir = opendir($address);
if(!$dir){ return 0; }
print "<ul>";
while($entry = readdir($dir)){
if(is_dir("$address/$entry") && ($entry != ".." && $entry
|
6/19/2000 8:37:13 PM
|
0
|
rcoll...@Insight.com (Robert Collins)
|
Re: [PHP3] Re: Communicating with FileMaker?
Hi!
>I guess that's the answer to my question and there is no other way of
>doing this.
Alas, not at the moment.
>No to the final question - is it hard to do or is it as easy as with
>MySQL? ;)
It's all just as hard/easy. The only difference, from a code standpoint, is
slightly different calls. odbc_do rather than mysql_query, etc, etc...no big
deal. It's a bit of a switch if you're used to mysql_* calls because they
use slightly different syntax.
<example>
mysql_query (query_string, connection)
while odbc uses
odbc_do(connection, query_string).
</example>
Th
|
6/19/2000 8:05:15 PM
|
0
|
e...@butlerandco.com ("Erik Mathy")
|
Directory tree listing
------_=_NextPart_001_01BFDA28.C77730CC
Content-Type: text/plain;
charset="iso-8859-1"
Is there an easy way to get a full directory tree list using php?
Robert
------_=_NextPart_001_01BFDA28.C77730CC
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>Directory tree listing</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Is there an easy way to get a full directory tr
|
6/19/2000 7:59:27 PM
|
0
|
rcoll...@Insight.com (Robert Collins)
|
RE: [PHP-GENERAL] PHP Ticketing system
> When you say ticketing system...what exactly do you mean?
Like a bug tracking system.
Chris
|
6/19/2000 7:58:27 PM
|
0
|
Chris.Bo...@wild.net ("Boget, Chris")
|
PHP Ticketing system
We took a look at Keystone, but we are having various
problems with it and it doesn't have quite what we need.
Does anyone know of another PHP based ticketing system?
Chris
|
6/19/2000 7:43:33 PM
|
0
|
Chris.Bo...@wild.net ("Boget, Chris")
|
Re: Communicating with FileMaker?
>just use ODBC.
I guess that's the answer to my question and there is no other way of
doing this.
No to the final question - is it hard to do or is it as easy as with
MySQL? ;)
I will try and se how it goes.
Thanks.
/Magnus
|
6/19/2000 7:41:09 PM
|
0
|
mag...@macnytt.com (Magnus Hammar)
|
PHP Tags for Ultraedit
------=_NextPart_000_0010_01BFD9F1.0C979670
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
In addition to the currently existing PHP syntax-highlighting plugin, has
anyone developed a plugin for PHP tags?
JG
------=_NextPart_000_0010_01BFD9F1.0C979670
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGE
|
6/19/2000 6:19:51 PM
|
0
|
jgrif...@mmind.net ("Jonathan Griffin")
|
RE: [PHP3] Slash code
You know there is a PHP version of Slash, right?
http://phplib.netuse.de/download/index.php3
-----Original Message-----
From: Peter Smith [mailto:hoxis@hotmail.com]
Sent: Sunday, June 18, 2000 8:54 PM
To: php3@lists.php.net
Subject: [PHP3] Slash code
Hi guys,
I'm looking for a PHP message board or forum with the look of Slashdot.
Like you know, Slashdot is Perl based. The problem is that I hate Perl, so
I'm trying to find any code like Slash but in PHP.
Anyone?
Best regards,
Peter Smith
________________________________________________________________________
G
|
6/19/2000 6:07:04 PM
|
0
|
c...@beachassociates.com (Chad Day)
|
I wish to contact you on the ICQ Network
Hello!
I have tried to contact you through ICQ but couldn't find you in the ICQ Community! If you are using ICQ, please send me your ICQ number by ICQ Email Express to 77977525@pager.mirabilis.com
If you are not using ICQ, I would like to invite you to join the ICQ community so we can send messages, chat and find more friends to join us.
Download ICQ by going to:
http://www.icq.com/
Once you do so, we can communicate online.
Seek you @ ICQ
James Cloud
ICQ #: 77977525
Here are the 4 ways you can find me in the ICQ community:
- My ICQ number is 77977525
- My Personal
|
6/19/2000 2:22:38 PM
|
0
|
ja...@add.com
|