RE: [PHP] Re: Displaying PDF file

2002-09-12 Thread Matt Schroebel
-Original Message- From: Erwin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Displaying PDF file Joseph Szobody wrote: Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the

Re: [PHP] Problem updating post on a basic weblog system

2002-09-12 Thread Chris Wesley
code snippet if ($post == post) { postBlog ($post,$input,$title); }elseif ($post == edit){ updateBlog ($input,$edit_post); // BINGO! } /code snippet Just looking at the code you posted to your site, there's only one thing obvious to me: You want

Re: [PHP] Processing PHP in Template File

2002-09-12 Thread [-^-!-%-
You are absolutly correct. Thx! =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Thu, 12 Sep 2002, Chris Boget wrote: The above process works, as far as replace the place holders, and

[PHP] MS SQL Problem

2002-09-12 Thread Christopher J. Crane
I am trying to get a script to work to retrieve data from a MS SQL database. I also tried using a ODBC connection, but that didn't work either. Here is the error I get; Warning: MS SQL: Unable to connect to server: LocalServer in C:\WEBS\CTTechCouncil\stocks\mssql.php on line 7

[PHP] phpscript as command line with setuid, weird result

2002-09-12 Thread Patric de Waha
Hi, I wrote a command line script which makes some administration things on my server. The script is setuid (set uid to root). I call the script simply through its name. I've put a print getuid(). .get_current_user(); in the script to see under which user it is running. When I su to

Re: [PHP] whois query

2002-09-12 Thread Tom Ray
Yes, but how do you format the information that comes back out of the whois? I'm doing this: ? $whois = system(whois [EMAIL PROTECTED]); print pre$whois/pre; ? But all the information is shown as one big line, no breaks or anything. How would I do this so it showed properly formatted

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
try with p /p and see if that works. Adam On Thu, 12 Sep 2002, Tom Ray wrote: Yes, but how do you format the information that comes back out of the whois? I'm doing this: ? $whois = system(whois [EMAIL PROTECTED]); print pre$whois/pre; ? But all the information is

[PHP] pdflib encoding error

2002-09-12 Thread Michael Plies
Hello, maybe someone can help me. i have specified the *.PFB and the *.AFM file. this all works by setting the encoding to pdf_set_font(the_typo_name,size,winansi,1); i got the error : Warning: Internal PDFlib warning: Can't reencode Symbol font 'TheSansBold-Caps' (using builtin) in

Re: [PHP] whois query

2002-09-12 Thread Tom Ray
Nope still comes up with everything in one big line. I'm running through different options right now..but I'm tired and my brain is starting to hurt :) Adam Williams wrote: try with p /p and see if that works. Adam On Thu, 12 Sep 2002, Tom Ray wrote: Yes, but how do you

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
try using nl2br() on it before you print it. Adam On Thu, 12 Sep 2002, Tom Ray wrote: Nope still comes up with everything in one big line. I'm running through different options right now..but I'm tired and my brain is starting to hurt :) Adam Williams wrote: try

[PHP] PERMISSIONS

2002-09-12 Thread Breno Cardoso Perucchi
HI, I am trying to use a script php with the command: system(mkdir /home/hosting/test); but the PERMISSION IS DENIED and I am the root on my server. How I change the user to root? Thanks -- Atenciosamente Breno Cardoso Perucchi [EMAIL PROTECTED] Consultor - Omega Tecnologia

[PHP] PHP4.2.2 Windows

2002-09-12 Thread Tim Thorburn
Hi, I've got a local test machine running WinXP Pro SP1 with PHP 4.2.2 and Apache 1.3.26. What I'd like to do is change the include_path settings for PHP in a .htaccess file (as I have several sites being tested on this machine and do not wish to have to edit the php.ini in my Windows

Re: [PHP] PERMISSIONS

2002-09-12 Thread Adam Williams
you don't. php/apache run as the user nobody for security purposes. Adam On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote: HI, I am trying to use a script php with the command: system(mkdir /home/hosting/test); but the PERMISSION IS DENIED and I am the root on my

Re: [PHP] PERMISSIONS

2002-09-12 Thread Breno Cardoso Perucchi
I know, but how I change to root user? -- Atenciosamente Breno Cardoso Perucchi [EMAIL PROTECTED] Consultor - Omega Tecnologia http://www.omegatec.net/ Adam Williams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... you don't. php/apache run as the user nobody

[PHP] rewriting a line in a text file

2002-09-12 Thread drparker
hi - i have a text file that i am using as a database. the format for each line is such (2 lines shown): Fashion|508|Text Text Text.|http://qtbras.com/qtbrascat/images/508_big.jpg|http://qtbras.com/qtbrascat/images/508_thumb.jpg Fashion|510|Text Text

[PHP] array_search() problem

2002-09-12 Thread David Orn Johannsson
Hi I'm runing a PHP Version 4.0.4pl1 on Solaris 8 X86 on apache, and I'm trying to search an array while(list($findId) = mysql_fetch_row($resultNextLast)){ $NextLast[] = $findId; } $currArrayPos = array_search($ImgId, $NextLast); and this code results this error: Fatal error: Call to

Re: [PHP] PERMISSIONS

2002-09-12 Thread Chris Wesley
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote: system(mkdir /home/hosting/test); but the PERMISSION IS DENIED and I am the root on my server. How I change the user to root? Dude, you don't change to the root user ... you'll get yourself owned that way. Change the permissions on the

Re: [PHP] array_search() problem

2002-09-12 Thread Bas Jobsen
Hi I'm runing a PHP Version 4.0.4pl1 on Solaris 8 X86 on apache, and I'm trying to search an array From the manual: array_search (PHP 4 = 4.0.5) send earlier to this list: Re: [PHP] Array - Match From: Bas Jobsen [EMAIL PROTECTED] To: N. Pari Purna Chand [EMAIL PROTECTED], [EMAIL

RE: [PHP] PHP4.2.2 Windows

2002-09-12 Thread Barajas, Arturo
From: Tim Thorburn [mailto:[EMAIL PROTECTED]] Yes, I had tried the forward slashes before and I just tried to escape the backslashes as you thought - sadly neither have worked :( From the Apache site: Since it is often difficult to manage files with names like .htaccess under windows,

RE: [PHP] PHP4.2.2 Windows

2002-09-12 Thread Barajas, Arturo
BTW: AccessFileName directive Syntax: AccessFileName filename [filename] ... Default: AccessFileName .htaccess Context: server config, virtual host Status: core Compatibility: AccessFileName can accept more than one filename only in Apache 1.3 and later When returning a document to the client

[PHP] SSL inside of PHP

2002-09-12 Thread Lon Lentz
I'm running PHP 4.1.2 and am looking for information on doing an HTTP post action from PHP to another web server using SSL (and capturing the response). I've searched the online docs to no avail. Can somone point me in the right direction? __ Lon Lentz Applications

Re: [PHP] array_search() problem

2002-09-12 Thread Bas Jobsen
What I was looking for was finding out what was the index of thet value, lets say I have a array with some values like (23, 56, 45, 47) and i don't know where the walue I'm looking for is indexed in the array and I want to find out what the indexnumber is, how would that be possable ?

Re: [PHP] SSL inside of PHP

2002-09-12 Thread Chris Shiflett
I've never done this, but I understand that curl is supposed to offer support for SSL. http://www.php.net/manual/en/ref.curl.php The manual looks a bit weak in this regard, but maybe that will give you a decent starting point. If someone else has an example, that would be more useful. Happy

RE: [PHP] Re: unless something...

2002-09-12 Thread David Freeman
Doing stuff with || is always a good way to stuff up. In the case of your example it will always evaluate to true. if ($A != $C || $B != $C) { I think, but im fairly new This would work if you did this: If (!($A == $C || $B == $C)) { In perl, I would do this: unless ($c =~

Re: [PHP] unless something...

2002-09-12 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 12, 2002 09:47, Magnus Solvang wrote: I'm used to the unless-statement in perl... How do I do this: if string A or B are NOT in string C, then do something and quit. In perl, I would do this: unless ($c =~ /$a|$b/) { blabla

Re: [PHP] rewriting a line in a text file

2002-09-12 Thread Kumar Lakshminarayanan
Try using an unique number as the first field of the line. You can then use that number to select the line (entry) and update it. Kumar drparker wrote: hi - i have a text file that i am using as a database. the format for each line is such (2 lines shown): Fashion|508|Text Text

RE: [PHP] can you recommned a simple banner rotator in PHP

2002-09-12 Thread olinux
I'll second that - It's a truly professional solution. [even has a full user manual] Here are a couple articles you might want to checkk out: http://www.devarticles.com/content.php?articleId=126page=1 http://www.devshed.com/Server_Side/PHP/CommercialBreak/page1.html olinux --- Seán_Dillon

[PHP] PHP EXEC();

2002-09-12 Thread Doug Kozar
Does anyone know why the following script will not rebuild one of my sendmail databases? ? exec('/usr/sbin/makemap hash /etc/mail/virtusertable.db /etc/mail/virtusertable'); exit; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Better Images

2002-09-12 Thread Justin French
Why would you convert them to PDF on the fly??? If you wanted to show really hi-res images, yes PDF would result in *slightly* smaller files, in *some cases*, but for standard web stuff, why not consider the humble compressed JPG? Whatever format, the file is gonna be huge if they're trying to

Re: [PHP] Mail system with folders? (Clarification)

2002-09-12 Thread Leif K-Brooks
This message sounds as though I want a system that checks email, etc. That is not what I'm after. What I'm trying to do is make a system where users can mail each other, using a mysql database. Leif K-Brooks wrote: I'm designing a site, and I want to put mail with folders on it. Fairly

[PHP] Re:PHP

2002-09-12 Thread llclmc
I am trying to copy *.log files to a file called dir.data. Does anyone have a suggestion on the php code to use? I am using Redhat 7.0. Using ls *.log dir.data doesn't work. Also does anyone know how to insert a text on about the 4 or 5 line of a file using php? I can add text to the end of

[PHP] error: loading extensions / php_xslt.dll on win32

2002-09-12 Thread Marco Siegl
hi there @php.net, please, can you help me enabling the extensions in php? i tried for hours to accomplish the right settings, but it seems, the solution is out of reach. you'll find a mini screenshot of my error message so you'll see exactly what i mean. machine details: php v4.2.3, apache

[PHP] Re: PERMISSIONS

2002-09-12 Thread Jesse Cablek
Breno Cardoso Perucchi writes: HI, I am trying to use a script php with the command: system(mkdir /home/hosting/test); but the PERMISSION IS DENIED and I am the root on my server. How I change the user to root? If you /really/ want to use this, use a C wrapper that's setuid root.

[PHP] Re: PHP

2002-09-12 Thread Jesse Cablek
llclmc writes: I am trying to copy *.log files to a file called dir.data. Does anyone have a suggestion on the php code to use? I am using Redhat 7.0. Using ls *.log dir.data doesn't work. Try: cat *.log dir.data ls will just give filenames, cat will do the inside of the files. Also

[PHP] Re: PHP EXEC();

2002-09-12 Thread Jesse Cablek
Doug Kozar writes: Does anyone know why the following script will not rebuild one of my sendmail databases? ? exec('/usr/sbin/makemap hash /etc/mail/virtusertable.db /etc/mail/virtusertable'); exit; ? Check your httpd logs. I'd be willing to bet it's a permissions issue as

Re: [PHP] Re: whois query

2002-09-12 Thread Tom Ray
A working solution to the whois question ? $whois = `whois [EMAIL PROTECTED]`; print pre$whois/pre; ? Notice those are back ticks, not single quotes. This will give youthe information you need, and the pre tag puts it out in the proper format for you. yasin inat wrote: Thanx friends

php-general Digest 13 Sep 2002 05:32:35 -0000 Issue 1582

2002-09-12 Thread php-general-digest-help
php-general Digest 13 Sep 2002 05:32:35 - Issue 1582 Topics (messages 116175 through 116232): Re: local and global variables 116175 by: Neophyte Re: whois query 116176 by: yasin inat 116202 by: Tom Ray 116203 by: Adam Williams 116205 by: Tom Ray

[PHP] datetime convert

2002-09-12 Thread Alex Shi
Hi, I'm trying to convert a formated datetime string into a timestamp. The string format is Y-m-d H:i:s. I use strtotime() to convert the datetime string. However, the converted datetime seems lost its time part. Is there any easy solution to make the converting? Thanks in advance! Alex --

<    1   2