[PHP] Re: Echo $PHP_SELF not working

2003-10-10 Thread Al
Put a ";" [no quotes] after such as: echo $PHP_SELF; Jeff McKeon wrote: I've just published a new website and something is wrong. I suspect the PHP.ini on the server but I can't seem to find anything. The line: Doesn't seem to work. If I look at the "view source" from the web browser I

[PHP] str_replace question

2003-09-09 Thread Al
I've got a simple expression " where "xx" is a number from 0 to 99. I want to replace it with simply . That is, I want to remove the numbers. Will "str_replace" do it, or must I use ereg_replace? I haven't figured out from reading the php manual on regular expression how to do this simple thi

[PHP] Re: Table format needs php correction

2003-08-30 Thread Al
There are too many problems with your code for anyone to spend the time going thru them all. I'd suggest, first constructing a regular html table that looks like you want it to. Hint, IE6 requires something in TDs [e.g.,  ] for borders to show. When the table looks the way you want it to, va

[PHP] Re: Freeze Pane

2003-07-25 Thread Al
Inline frames http://www.cs.tut.fi/~jkorpela/html/iframe.html Jason Martyn wrote: This is probably under the category of javascript, however I would like ot know if it is possible to be done with php. Let's say I have a table that is 30 columns wide and so the entire table doesn't fit on the scr

[PHP] Question about Include_once

2003-07-19 Thread Al
Does file called by "Include_once" stay with the client's session or just for operations in the page where it is stated? For example, assume I have one file that contains several functions, then if use "include_once('functions.php')" on several pages, does the server reload the file for every

[PHP] Re: corrupt images

2003-05-29 Thread Al
Check that you are using the correct MIME type. There is a note on this in the User Contributed Notes under the function definition. Jason Jacobs wrote: Hi all. I've been struggling with getting images to upload cleanly. I'm using php 4.2.2. When I look at the uploaded file info, it gives

Re: [PHP] Anyone know of a php script to extract files from a zipfile.

2003-05-27 Thread Al
Does appear to be promising. I'll try it. His description is a bit vague about what zip formats it handles. Evan Nemerson wrote: http://dev.maxg.info/projets/projet.ziplib.en.maxg maybe??? haven't tried it On Tuesday 27 May 2003 12:16 pm, Al wrote: I doing a little ph

[PHP] Anyone know of a php script to extract files from a zip file.

2003-05-27 Thread Al
I doing a little photos album application and I'd like my, non-techie, users to be able to zip together their photos and upload them to a folder on the site. I've got everything going nicely except the unzipper. I would not like to teach them to use ftp, even with a browser. I'm on a virtual

[PHP] Re: Is there any easy way to take out the mime of an email...

2003-03-29 Thread Al Nutile
-X To: -X From: -X Subject: | /home/nepso/nepso-mail/report_gateway.php) } This is working so far with Mozilla as the client. The nice thing too is it by passes the attachment which was another problem I was having since I do not want those. Hope this is more clear and thanks Tyler for your time.

[PHP] Removing a string from one area to another...

2003-03-29 Thread Al
t to remove from the inforamtion So maybe with a preg_match on the boundary and then strip from that value until the next time you see the value?? Though now to put this in a language php understands?? Thanks --Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with procmail script...

2003-03-28 Thread Al
use of the aliase file for sendmail. Though using procmail to strip the above info my be better in the long run? Thanks, --Al Gateway.php #!/usr/local/bin/php -q /* $Id: gateway.php,v 1.11 2002/10/28 15:52:27 root Exp $ * Copyright (C) 2002 Justin Mazzi <[EM

[PHP] File uploads...

2003-03-24 Thread Al
Any ideas what settings I need to change to make this simple process happen? Thanks --Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about str_replace()

2003-02-23 Thread Al
for me. The following printed: "leadingtexttrailingtext" to the screen '); $text = "leadingtext[p]trailingtext"; $words = str_replace ($find, $replace, $text); print $words; ?> "Al" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] I have a simple str_replace

[PHP] Question about replacing \r\n with

2003-02-22 Thread Al
I can't find a way to replace \r\n codes with in a text file. I'm reading a text file that was prepared with windows notepad The hex code shows OD OA for CR/LF as I expect. I'd like to replace the OD/LF with s. I spent hours trying every User Notes in the PHP Manual for this simple operation.

[PHP] Question about str_replace()

2003-02-22 Thread Al
I have a simple str_replace function that obviously has a syntax problem. The [p] in the $find array ignores the brackets. Every "p" in my text is replaced by a . Just for the heck of it, I've tried " instead of ', and preg_replace(), etc. $find= array('& ','W&OD', '"&"', chr(146), '[p]'); $

Re: [PHP] What happened to phpEdit???

2003-02-19 Thread Al
reach their site. We'll see. Mirek Novak wrote: Al wrote: Are you guys it works for in Europe, or outside the USA? I can traceroute to their site just fine, both phpEdit.com and phpEdit.net. And, I can use the IP 212.43.196.19; but it won't open the ... and what about so call

Re: [PHP] What happened to phpEdit???

2003-02-19 Thread Al
e: It works fine for me. So does www.phpedit.net Al wrote: Did you try the URL you posted? I tried that one and several others listed for phpEdit. All say the site is not responding. Bryan Lipscy wrote: Did you check google? http://ozu.arecom-sa.com/~marms/phpedit.net/ -Original Me

Re: [PHP] What happened to phpEdit???

2003-02-17 Thread Al
Did you try the URL you posted? I tried that one and several others listed for phpEdit. All say the site is not responding. Bryan Lipscy wrote: Did you check google? http://ozu.arecom-sa.com/~marms/phpedit.net/ -Original Message- From: Al [mailto:[EMAIL PROTECTED]] Sent: Sunday

[PHP] What happened to phpEdit???

2003-02-16 Thread Al
Their site no longer responds. Surely, we haven't lost one of the best php editors. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: setcookie() in various browsers..

2003-02-07 Thread Al
cookies work just fine with NS4x. Here's one I use: setcookie ("LastVisit", time(), time()+7776000); Chad Day wrote: This is with PHP 4.2 and register_globals off. I am setting cookies and starting a session in the following fashion: setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".

Re: [PHP] Question about $DOCUMENT_ROOT and include

2003-02-05 Thread Al
ted directories and would like be certain things will work if we move the site to a new host. Several references I've found suggest staying away from using $DOCUMENT_ROOT since it can be different on virtual hosts. Chris Shiflett wrote: --- Al <[EMAIL PROTECTED]> wrote: Why does the

[PHP] Question about $DOCUMENT_ROOT and include

2003-02-05 Thread Al
Why does the absolute path work and not document_root? include ("$DOCUMENT_ROOT/root_functionsT.php"); //error message says function undefined include ("/www/r/myID/htdocs/root_functions.php"); // Works just fine echo "$DOCUMENT_ROOT/root_functionsT.php"; // shows /www/r/myID/htdocs/root_functio

[PHP] How can I... force some HTML tags for all links to jpg files.

2003-01-31 Thread Al
I've got a folder with about 100 jpg files and a menu which a link to each one. Works fine but looks crude. Obviously, the image shows as a default on a white background, located in the upper left. I'd like to spiffy up the appearance with a background color and centering the image. [e.g. wit

[PHP] Re: problems with include()

2003-01-30 Thread Al
Looks like you are only backing up 2 levels when you need 3. Why not try something like: $root= "the absolute path to your root folder"; Then simply: include ($root . "mainfile.php"); etc. Daniel Negron/Kbe wrote: I have this code : which works great from the root dir where these files

[PHP] Re: List items in table with a hypertext link

2003-01-16 Thread Al
This may be a bit more than you are looking for. http://sourceforge.net/projects/phpmyedit/ Mike Tuller wrote: I have been looking for an example of how to create a listing of items in a table where you have the first item in the list have a link so that when you click on it, it will open a

[PHP] Print text and image in the same page.

2002-12-15 Thread Naif M. Al-Otaibi
Hi all, I try to print some information (text and image) that I retrieve from an oracle DB, but I got the image printed as binary junk. When I put the line that print the image in a html image tag, I got a red square with "X" inside. What can I do to solve this problem? This is my code: -

[PHP] Error in retrieving a BLOB from DB.

2002-11-27 Thread Naif Al-Otaibi
Hi all, I use the following: 1) Win XP. 2) Oracle personal eddition 8.1.6.0.0. 3) IIS. 4) php-4.2.3-Win32 runs in cgi mode. When I retrieve a blob from my DB, I got the following error: Fatal error: Call to undefined function: load() in c:\inetpub\wwwroot\php1\ora52.php on line 6 -

[PHP] Insert file into sql server binary field.

2002-11-23 Thread Naif Al-Otaibi
How can I insert a file into a binary field in sql server 2000. Do I need some function in the query like upload or just read the file and insert it. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Some error in file upload.

2002-11-23 Thread Naif Al-Otaibi
I copy a complete example from a book to upload file and I got this message error when I browse the file: Parse error: parse error, unexpected '!', expecting T_VARIABLE or '$' in c:\inetpub\wwwroot\php5\file_upload.php on line 32 Here is the content of the file (file_upload.php):

[PHP] Imagemangick, can I install on a virtual host?

2002-09-01 Thread Al
I'd like to use some of the Imagemagick functions; but my virtual host doesn't include it and won't bother to install it. Is it practical to install Imagemagick php on a virtual host? Has php. It's not a shell account. FTP is the only basic access. -- PHP General Mailing List (http://www.p

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-12 Thread Al
on't work and the error log says "not allowed" etc. I appreciate your help. Rasmus Lerdorf wrote: > What does include have to do with DirectoryIndex? And what exactly is > your problem with include? The only trick is setting the include_path > which doesn't seem all t

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Al
tes at the bottom. It is incredible that such a basic php function should be so obtuse and ill defined. I'm going to give your other suggestion a try tomorrow. Thanks again Analysis & Solutions wrote: > On Sun, Aug 11, 2002 at 12:33:55PM -0400, Al wrote: > >>The .htac

Re: [PHP] Newbie question about UNIX command-line directives

2002-08-11 Thread Al
that may work? Thanks. Analysis & Solutions wrote: > On Sat, Aug 10, 2002 at 01:12:38PM -0400, Al wrote: > >>I'm on a virtual host without a shell account and need execute a UNIX >>command. >> >>ln -s ../afile.php index.php > > > In a PHP scr

[PHP] Newbie question about UNIX command-line directives

2002-08-10 Thread Al
I'm on a virtual host without a shell account and need execute a UNIX command. ln -s ../afile.php index.php Is there some way to do this [e.g., with a htaccess file]? What happens when you execute UNIX commands like the one above? Does it make a file, change the config? Thanks --

[PHP] Re: Sendmail "return-path" from my virtual webhost

2002-07-30 Thread Al
I was hoping there was a way to fix it without having to modify my php scripts [e.g., phpBB2, postlister, etc.] Manuel Lemos wrote: > Hello, > > On 07/29/2002 01:54 PM, Al wrote: > >> Emails sent from my php scripts, using sendmail, all have a goofy >> "return

[PHP] Sendmail "return-path" from my virtual webhost

2002-07-29 Thread Al
Emails sent from my php scripts, using sendmail, all have a goofy "return-path" variable in the header. Is there a way I can correct this, or does it require a change to the sendmail config file that I can't get to? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Re: Development Tools

2002-07-11 Thread Al Baker
I've picked up PHPed, Zend IDE, and Dreamweaver MX. - ZendIDE has the best code-completion and editing features out of all of them, best auto-tabs and auto completes. - PHPed is ok, better with database and total MySQL development then Zend IDE. - Dreamweaver MX has limited PHP support but it

Re: [PHP] PHP and Apache

2002-07-03 Thread Al Baker
I had a problem where I compiled in too many extensions and apache thought the module file was too complicated, and thus corrupt and wouldn't start. On Tue, 2002-07-02 at 14:09, B i g D o g wrote: > Sorry bro...doing to many things at once. > > Apache 1.3.23 > Linux 7.2 > PHP 4.1.2 > > Configu

Re: [PHP] Need Help with $_SESSION.

2002-07-03 Thread Al Baker
You must do a session_start() before you can use the session ID or the session array. On Wed, 2002-07-03 at 12:24, Scott Fletcher wrote: > Have not been successful in making this work for 2 days now. I'm focusing > on making the $_SESSION to work on each webpages. The 1st page is the > login.

Re: [PHP] Session Events

2002-06-26 Thread Al Baker
Well, since HTTP is stateless you can really say that this event happens in either of two places: - The next page accessed by the user with that session ID - As an event in the backend. If it's the first, I would recommend just having a lib_session that verifies a timer or whatever and then redir

Re: [PHP] Run two separate version of Apache and Php

2002-06-24 Thread Al Baker
I believe you will need to compile two versions, and point two to different php.ini locations. Here's a snipet from the manual. http://www.php.net/manual/en/install.configure.php#install.configure.options.php Al --enable-maintainer-mode Enable make rules and dependencies not useful

[PHP] When are Form Variables Null?

2002-06-22 Thread Al Baker
ly apparent way I could know *for sure* that independent of the browser, I knew what the heck was being submitted. Thoughts? Thanks, Al -- This email was sent with Ximian Evolution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie needs some help picking a php editor.

2002-06-11 Thread Al
I spent a good bit of time looking at editors to help me prepare and modify php scripts. I've found it very time consuming to evaluate them. In general, I've found you have to download, install and play with them some just to determine if they fit your needs. And I know from experience, ofte

[PHP] What are pros and cons of the Apache module verses cgi version?

2002-06-08 Thread Al
I notice that some webhosts offer the apache module and some the cgi. On the surface, the cgi version appears to be a lot of extra hassle. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about set_time_limit and max_execution_time

2002-06-07 Thread Al
I've got a mail function script that occasionally terminates midway while sending out about 600 emails. The symptoms point to the "max_execution_time", which is set for 30 seconds. The question is how to best handle it. set_time_limit only seems to apply to the script that contains it. Yet t

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Al
n message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Al, > > Interesting. I use Mozilla and I've never had any emails rejected or > heard of anyone else have it happening. Have you some more information > or is this an urban legend? > > Regards > > Chris >

[PHP] Question about Mail function time out

2002-06-07 Thread Al
Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup server seems to ignore postings from it. This one is posted from IE. I've got a mail function script that occasionally terminates midway while sending out about 600 emails. The symptoms point to the "

[PHP] Re: Newbie Questionabout variables

2002-05-25 Thread Al
o the "index.php" a little secure with a password. I've seen other applications with this technique. Thanks again, Al.. "Al" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I hope this posting is not a du

[PHP] Posting problem with Mozilla

2002-05-25 Thread Al
Anyone have a clue why I can't post messages with Mozilla [RC2]? Goes through all the motions as if the message is sent. Shows in my sent folder and the terminal icon indicates the message is sent. Works fine for all other newsgroup servers. I'm posting this with IE6. -- PHP General Mailin

[PHP] Newbie Questionabout variables

2002-05-25 Thread Al
I hope this posting is not a duplicate. I originally posted it yesterday, but it doesn't show on the newsgroup for me. Apparently you can set a variable as part of a URL statement. For example: www.company.com/index.php?admin=password. Where "password" might be a simple variable to test as a

[PHP] XMLDOM

2002-03-02 Thread Khalid Al-kary
Sir/Madame, i'd like to ask about PHP support for XMLDOM is it stable and where i could find better explanation for it?

[PHP] javascript delete

2002-02-04 Thread Mostafa Al-Mallawani
hi, i know this question's been asked before but i can't find the email...how do i do the delete link that pops up a message box with the information of the deleted entry using php? like the one in phpmyadmin 2.2.3. thanks. :)

RE: [PHP] mailing to 19000 users

2002-01-28 Thread Mostafa Al-Mallawani
I found some nice mailing list managers at http://www.hotscripts.com/PHP/Scripts_and_Programs/Mailing_List_Managers / -Original Message- From: Anas Mughal [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 5:33 PM To: Mostafa Al-Mallawani; [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] mailing to 19000 users

2002-01-27 Thread Mostafa Al-Mallawani
do you mean a mail server? would the mail server of IIS handle this? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Monday 28 January 2002 14:23, Mostafa Al-Mallawani wrote: > > hi, does anyone know how to send mail to 19000 users using t

[PHP] mailing to 19000 users

2002-01-27 Thread Mostafa Al-Mallawani
hi, does anyone know how to send mail to 19000 users using the mail() function, I need to create a mailing list of this number of users and looping on 19000 users takes up a heck of a lot of resources...any solutions? thanks.

[PHP] emergency: Need to see how I can delete these folders??!!!!

2002-01-16 Thread Al Fujii
into it? Or it is neccessary. I know I have >>permissions,but I might be wrong. If someone could help me I would >>appreciate it. >> >>Thanks >> >>Al >>case "del": >> ### The user has comfirmed the deletion >&

[PHP] INPUT type=file value=????

2001-08-20 Thread Al
x27;t get Mozilla, Netscape, nor IE to do this. Here's my code: METHOD="POST"> Attachment #1: The wrapped lines do have a space in front of them. Is this an oversight, did I miss something in the docs, or have I done something really stupid? -Al -- PHP General Mail

[PHP] Re: javascript reference (slightly ot)

2001-08-15 Thread Al
Try searching for "javascript" and "reference" on Google for online references. If you want a decent book, get something like "JavaScript: The Definitive Guide" by David Flanagan, published by O'Reilly. Regardless, pay attention to flags stating IE or Netsc

[PHP] Opening a page in the same window

2001-04-29 Thread Abdullah Al-Juaid
hello, How to open a page in the same window by means of PHP or JavaScript? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTE

[PHP] Hmmm... What's problems?

2001-03-15 Thread Al
I'm using manual online on php.net and use example of File uploader. If i changed TEXT file All right! If i changed Binary file php script answer Error! in sources code PHP using Binary method... And temporary subject $source_file is empty! if i insert in PHP { echo "source: $source_file"; } and

[PHP] One some problem with uploading

2001-03-15 Thread Al
I have one script on PHP for uploading files on ftp server. This source code downloaded from PHP manual help (upload files) His work not correctable. If i changed Text files for uploading on ftp server it's work all right . if i changed Binary files to uploading (for example logo.gif) it's don't w

<    3   4   5   6   7   8