[PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread M
Hello, I posted a question some days ago, but no answers received. I notice many people discussing OPEN_BASEDIR apache restriction here, but all discussion are from server admin point of view. Let me ask question in another way: Is it possible to tell HTTP FORM command the complete

Re: [PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread M
Jim Lucas wrote: php will return you four $vars to work with. check this out. http://www.php.net/manual/en/features.file-upload.php then work with the tmp file and get done with it what needs to be done before the script closes cause php will delete the file when the script is done. jim

[PHP] About thumbnail functions

2002-02-12 Thread M
From: Torkil Johnsen [EMAIL PROTECTED] Subject: How do I check GD version? To: [EMAIL PROTECTED] Cheers all... This mail got rather long, so here are my 3 questions in a short version: 1) What is GD? (fore use with imagecopyresampled function) 2) How can I run a function that will

[PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Hello, you know all GD functions work via image pointer , which appoints to some file, or else empty image $img_pointer = imagecreatefromjpeg($image_file_name); or $img_pointer = imagecreate($width,$height); I have stored lot of images into BLOB Mysql fields, and need recover it to resize.

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Robert Cummings wrote: M wrote: I have stored lot of images into BLOB Mysql fields, and need recover it to resize. How can I create some image pointer from string stored into BLOB field? Thanks Miguel imagecreatefromstring() seems to be the candidate... however a comment

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-10 Thread M
Robert Cummings wrote: M wrote: I have stored lot of images into BLOB Mysql fields, and need recover it to resize. How can I create some image pointer from string stored into BLOB field? Thanks Miguel imagecreatefromstring() seems to be the candidate... however a comment

[PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
Hello, I am interested on some info - how do robots work to fill web forms authomatically? Sometimes I notice a blurr code to be manually writen to avoid these robots when filling forms, but I am interested in programm just one of these machines. Is it necessary PHP of another script for this

Re: [PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
1LT John W. Holmes wrote: You need to get a little more specific. Is this a specific form, or do you want to be able to post any form? What kind of script is processing the form? Is it looking for GET or POST data? GET data is as simple as creating a URL with the nec. fields. POST is a

Re: [PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
SHEETS,JASON (Non-HP-Boise,ex1) wrote: You need to tell PHP to input the value and you should be using 's example: input type=text name=driver length=20 value=?php echo $_GET['driver']; ? This example assumes you are using at least PHP 4.1, also you may use $_REQUEST instead of $_GET if

[PHP] How retrieve database data from email?

2002-08-15 Thread M
Hello People: I have my pages built in PHP / Mysql, all working ok, but now I need solve a problem I don't know how to solve or even how search about. Case this problem was already discussed in this list, I would be grateful if someone pass to me correct date so I can search about. My problem

[PHP] How to program very basic chat on PHP?

2002-09-07 Thread M
Hello, this question is about dynamic communication between browsers. I have a site to meet people (PHP/Mysql).These people have their profiles and pictures stored into the site. I would like to make some kind of chat (very single chat), so when people log into system, I can trace their

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M
Philip J. Newman wrote: You could create a scema, or module that is called with each page load, that checks for messages when the user is logged in. So when the message is stored into the databace, when the user loads the anypage while logged in it checks for new messages, and if the user

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M
timo stamm wrote: Hi Mig, to create something that behaves more like a true chat, you need an active client side. For example, you could let a frame with the PHP be reloaded in a short interval. To create a real chat, you need a socket connection. The best solution would be Flash (which

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M
Gerhard Hoogterp wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Phil, your idea is interesting. I am evaluating it because it is not a true 'chat' (if user doesnt load any page he will never see incoming msg), but your idea is the only thing I have to this time. But with a

Re: [PHP] How to program very basic chat on PHP?

2002-09-09 Thread M
Justin French wrote: An extremely basic chat would be a frame or iframe which has a meta tag refresh (or javascript refresh) of a plain HTML page every 10-20 seconds. As far as the flash stuff goes, have a look at macromedia.com or the 1000's of flash sites... I'm positive you'll find some

[PHP] Javascript document variable names for complex forms

2001-09-24 Thread M
Hello people. First , let me thanks all of you who answered my mime-mail question (special Richard Lynch). Next question (probably not for proper list, but I couldn't get answer, so please sorry me). I have http frame page (classical 'top', 'left' and 'center' frames), then 'center' frame

[PHP] Running WML (WAP services) under PHP

2001-12-09 Thread M
Hello, I am trying to develop some WML apps using PHP. To run WML apps into my local Apache (win98) server, I added AddType application/x-httpd-php .wml into httpd.conf. This works ok when calling directly from netscape http://localhost/mywml.wml , treating script like a true PHP program.

[PHP] Uploading files with FORM METHOD=POST on webhostings

2001-12-10 Thread M
Hello, first of all, thanks very much for your answer about WAP and WML php headers. I corrected headers and page works ok now. == Now a question about uploading files (.gif .jpg) using form method=post to be stored into Mysql blob fields. I hope somebody here having sites on

[PHP] RE: Dynamic Thumbnail From Database Solution!

2001-08-01 Thread M
Subject: Dynamic Thumbnail From Database Solution! Date: Mon, 23 Jul 2001 17:37:56 -0700 From: Jason Bell [EMAIL PROTECTED] To: PHP Users [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Using getpic.php in conjuction with the IMG tag can display the fullsize picture. Now, to the fun

[PHP] How to index HTML fields for Javascript and PHP at same time?

2001-09-03 Thread M
Hello, I have table with lot of input type = text name=myfield ... fields. I need to refer these fields like vector in PHP and Javascript mode. When I write input type=text name=myfield[]... then I can see values in PHP sccript, BUT can't see values in javascript mode, thats to say

[PHP] About old msg on attachements using PHP mail function

2001-09-20 Thread M
Hello, regarding old email from [EMAIL PROTECTED] about mail attachements From: py [EMAIL PROTECTED] 21/05/01 08:25 Subject: Re: [PHP] sending attachements with mail To: Tolga \thorr\ Orhon [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Here is a nice class that handles e-mail attachment.

[PHP] passing variables from - to frames

2001-06-26 Thread M
Hello, sorry this question here (it is not true PHP question), but I use some variables into PHP scripts and need pass these variables from one frame to another. I want pass variable values between frames, these definded via input hidden tags into form definition. I have first frame name=framea

Re: [PHP] Issue when inserting Slovak characters in database via PHP code

2006-11-05 Thread M
The important steps: 1. display the form on utf-8 page: header('Content-Type: text/html; codepage=utf-8'); ... and the same in meta tag 2. use pg_set_client_encoding('UTF8') after connecting to posgres 3. have your database, tables and rows in UTF8 (you have already) 4. again,

[PHP] PHP ImageCreateFrom.. malfunctioning in last PHP releases...

2005-06-12 Thread M
Hello people, I use ImageCreateFromString PHP functions to resize (thumbnails and so) dynamically my JPG images. I use third party WEB hosting provider , so I have no control about new releases and updates of server softwares. I have not changed my images in last 3 years (they are used for

Re: [PHP] Sending UTF-8 mail with mail()

2006-06-13 Thread M
Peter Lauri wrote: How can I send UTF-8 mails with the mail() function. Right now I am doing: mail('[EMAIL PROTECTED]', 'Subject', 'Message', From: The Sender [EMAIL PROTECTED] \n . Content-Type: text/plain; charset=utf-8 \n . Content-Transfer-Encoding: 7bit\n\n) The message is being sent,

Re: [PHP] whitch class can I read EXCEL .xls file

2005-11-03 Thread M
Manish Marathe wrote: On 11/2/05, bala chandar [EMAIL PROTECTED] wrote: Hi, On 11/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear all: whitch class can I read EXCEL .xls file I want to read data from a excel's .xls file on Linux use php,please tell me way. There is a

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) file_exists() takes filename as parameter, not file pointer. besides, spare the one http

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: - Original Message - From: M [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Monday, November 07, 2005 11:12 PM Subject: Re: [PHP] FileExists? Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain

Re: [PHP] Catch the WMV first frame picture in PHP script?

2005-11-08 Thread M
張 峰銘 wrote: Hello: I'm try to design WMV movie upload system im my school. when teachers upload the wmv movie to the web , I hope I can grab the first frame picture of wmv and save it to a jpeg file. Dose any one do that before ? Is is difficult to implement in PHP ? (I'm in

Re: [PHP] PEAR on PHP 5+?

2005-11-09 Thread M
Minuk Choi wrote: I can't seem to get pear to work correctly. if I type [/]# pear install DB I get the usage printed out back(no error message, no action) and if I go to the PHP-5.0.4/lib/php directory, I get [PHP-5.0.4/lib/php]# pear install DB br / bFatal error/b: Call to undefined

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread M
Ben Ramsey wrote: B is a secure page, with a CC info form that when submitted will process their card, charging the amount of money passed in the encrypted packet, and if the charge succeeds, redirecting back to A. A would probably need to send an order number to B, and B could pass that back

Re: [PHP] Unable to send variables to MySQL table

2005-11-09 Thread M
Stewart Priest wrote: snip What is the structure of that table? /snip +---+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +---+--+--+-+-+---+ | invoice_no| int(10) |

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread M
Chris Shiflett wrote: Ben Ramsey wrote: $clean = array(); $sql = array(); Glad to see someone spreading this habit. :-) Thanks, Ben. if (ctype_alnum($_POST['pass'])) { $clean['pass'] = $_POST['pass']; } I think it's fine to cheat a bit with the password and trust the output

Re: [PHP] php session in ie

2005-11-11 Thread M
sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. ?php session_start();

Re: [PHP] php session in ie

2005-11-11 Thread M
Stephen Leaf wrote: For security.. *never* store the password in a cookie.. OP stores the password in session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Catch the WMV first frame picture in PHP script?

2005-11-12 Thread M
張 峰銘 wrote: Mr. M: Hello, thanks for your kind help. But my Linux system is Fedora Core 1 , there isn't any totem-video-thumbnailer. What should I do? Do I have to upgrade the Linux system to FC 3 or heigher ? (the Totem exists in FC3 ) or Is there any other method to solve

Re: [PHP] Regex to wrap a href= tag around a p tag

2005-12-01 Thread M
The second parameter to preg_replace is the replacement string (with optional backreferences), not another patern. Use '/p\(.*)(?=\/p)/' for patern, 'a href=edit_paragraphtext=$1p$1' for replacement string, however, this does not urlencode the text parameter. You can use preg_replace_callback

Re: [PHP] need session_start() to recall session data.

2005-12-04 Thread M
Matt Monaco wrote: Yes, I actually changed the destructors to handle the session as you indicated a few minutes after I posted, however I still have no clue as to why I would need to do a session_start() to get data from the session. How else would php know you want session started? You can

Re: [PHP] href links not working in XP

2005-12-10 Thread M
Marlin Unruh wrote: Sure, here is the main function and the function that sends the files/links to the browser. This works fine on two w2k machines, but not on our XP machine. If I place the mouse pointer over the link on the web page it shows correct in the IE status bar. Example:(

Re: [PHP] Transfer-Encoding: chunked problem

2005-12-10 Thread M
kumar kumar wrote: Hi i am sending encrypted data(AES-CBC) every large files to the php pages as streams, in php i am decrypting the data . The code is working fine for the filesize less than 12MB each (if 30files each of 12 Mb total = 360 Mb) its working file . If i am trying to upload a

Re: FW: [PHP] IE6 not returning POST data from a textarea

2005-12-12 Thread M
Jay Blanchard wrote: [snip] Everyone keeps asking it. Of course it's named or Mozzilla wouldn't work. [/snip] You can insert a textarea into a page without a name and mozilla will work. Are you sure? I just tried it using FF and textarea is not posted. Even if I set id attribute. -- PHP

Re: [PHP] HTML rendering extension?

2005-12-21 Thread M
Marcus Bointon wrote: Has anyone seen such a thing? I'm looking to be able to generate web page previews dynamically and automatically, so I need to render the page on the server. The most efficient way would be if there was a PHP HTML rendering extension - gecko or KHTML perhaps. HTML2PDF

Re: [PHP] MySQL update killed my login...

2006-01-03 Thread M
It seems the upgrade was from Mysql 4.0. PASSWORD() function changed between 4.0 and 4.1, it uses longer hashes now. You can still use OLD_PASSWORD() function instead. William Stokes wrote: Hello, My ISP updated their MySQL DB to 5.0.18 and that killed my login procedure which was OK

Re: [PHP] Problems requesting page

2006-01-03 Thread M
PHP Superman wrote: Hey everyone, i'm on a windows box with PHP 5 on Apache 2 and I have a strange problem. When i try to access a page it seems to be blank, before it always worked but now it sudenly stopped. I am not a big computer techy but i cleared IE's cache and it still doesen't work.

Re: [PHP] Timezone and DST

2006-01-06 Thread M
Mark Steudel wrote: Hi All, I've got a little problem where our servers are in PST but the customer operates in Hawaii (-10 GMT). I believe I can just get the time for them by doing something like date(d H i, strtotime('now -2 hours') ); But here's the catch, how should I deal with day

Re: [PHP] Re: Using GPG in Safe Mode

2006-01-18 Thread M
[EMAIL PROTECTED] wrote: Hi Edwin! Thanks for the tips but my ISP hasn't given me root. I'm very sad to hear gpg from cli won't work under safe mode. Are there any 100% php implementations of GPG I could use? (because I guess that is the only way that is left?) /Emil If you are using

[PHP] How PHP recover value from another frame?

2003-03-05 Thread M
Hello, I know probably this question already solved, but I couldnt find msgs about. I have page with two frames. frameA is built by frameA.php and frameB is built by frameB.php scripts. Into frameA is form variable named 'varA', frameA.formA.varA.value = 'ok' . I know PHP knows this variable

[PHP] Why MySql doesn't free space when erasing BLOB fields?

2003-11-22 Thread M
Hello, sorry this mysql question here, but I cant't answer this one. I have database with BLOB fields to hold pictures (60-90 kb each). Actually I am erasing these BLOB fields (move '' into and update rcord) to free some space from my DB, but space is not released by mysql. I verified BLOB fields

[PHP] How check if URL is running ok before try open it?

2004-02-19 Thread M
Hello, I decided to make a pre-URL caller into my script, so when user try link to another URL, instead show these annoying http errors (when URL off), I could direct him to more user friendly environment. I checked FOPEN($url-name,'R') command, but in some cases it will pop up fire-walls alerts

[PHP] User IP

2004-08-04 Thread M
How can I get a user's IP who is behind a proxy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Blocking gethostbyname and Net_DNS2 behaviour

2012-09-11 Thread a m
Hi, I was using gethostbyname up until recently but switched to Net_DNS2 due to lack of support for a timeout. Now I discovered some worrying behaviour and hope someone here get shed some light onto it. I am running PHP inside an Apache 2 installation as module and noticed that once I call

[PHP] Re: Blocking gethostbyname and Net_DNS2 behaviour

2012-09-11 Thread a m
My apologies, it looks like it was a false alarm and the blocking actually comes from PHP's session manager. Sorry, Alexander On 11 September 2012 14:22, a m ner...@gmail.com wrote: Hi, I was using gethostbyname up until recently but switched to Net_DNS2 due to lack of support for a timeout

[PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: ?php $lang = 'pt_BR'; include('lang/'. $lang .'/login.php'); echo $lang['Username']; ? On the file lang/pt_BR/login.php i have this... ?php

Re: [PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
and not an array. On Tue, 05 Dec 2006 13:11:12 -0200, Fernando M. M. [EMAIL PROTECTED] wrote: Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: ?php $lang = 'pt_BR'; include('lang/'. $lang .'/login.php

[PHP] Retransmiting post variables

2006-12-12 Thread Fernando M. M.
Hello, I have a script called redir.php that is used only for redirecting using the following code: header('Location: ', $_GET['url']); But now i need to redirect post varibles too. Example: If someone access redir.php?url=my_page.php and post: a=1b=2 I need to send this post string (as

[PHP] date() and timezone

2006-12-14 Thread Fernando M. M.
Hello, I have a lot of php scripts that uses date() for some important operations. Yesterday those scripts were moved to another server which is on an different timezone. I haven't predicted this so my scripts aren't working anymore. The servers timezone is GMT -4 and mine is GMT -2. Is there

Re: [PHP] date() and timezone

2006-12-14 Thread Fernando M. M.
I´m using php5 here. But like i said i have lots of scripts inside this folder, is there a way to set something on .htaccess to change the timezone? Fernando M. M. wrote: Hello, I have a lot of php scripts that uses date() for some important operations. Yesterday those scripts were

Re: [PHP] Re: date() and timezone

2006-12-15 Thread Fernando M. M.
Hello, But like i said i have lots of scripts inside this folder, is there a way to set something on .htaccess to change the timezone? why? ;-) Because i can't set the timezone for every single script. Inside this folder and subfolders i guess there are about 10,000 scripts. What you

[PHP] Curl and cookies

2006-12-15 Thread Fernando M. M.
Hello, I have just started using curl and i have some question about cookies. The website i'm logging in controls everything using cookies (from login to the actions inside it). Is there a way to store the cookie values into a php session variable ($_SESSION['cookie'])? How do i make curl

Re: [PHP] Re: date() and timezone

2006-12-15 Thread Fernando M. M.
that will teach not to use global include files to init your apps. even if you we stuck with editing 10,000 scripts (btw it sounds very fishy to 10,000 scripts with date() calls in them - can anyone say 'code reuse'?) exactly how hard would it be to write something that would go through

[PHP] Problems when running Java program

2007-04-04 Thread Fernando M M
Hello, I have a Java program that gives me a string. When i run this program on the shell everything works fine but when i try to run using shell_exec i get Error occurred during initialization of VM Could not reserve enough space for code cache This script is currently on a VPS server with

[PHP] Betr.: [PHP] where to get info on developing web e-mail

2001-03-27 Thread M. Verheijen
Dear Khai, If you're planning to your webmailapplication in PHP visit www.phpposta.com. Right now it's in a developing stage but you can download the code and have a look at it. Ofcourse it's GPL, if you make some additions, changes in the code please let me know! Best regards, Maarten

[PHP] Betr.: [PHP] Page Counter

2001-04-02 Thread M. Verheijen
Dear Wendy, Check out http://www.hotscripts.com/PHP/Scripts_and_Programs/ You should all you the scripts you'll need here!, still some problems? Let me know? Best regards, Maarten Verheijen MvG, Maarten Verheijen T/EXP kamernummer C558 Telefoonummer 4559 Wen Ni [EMAIL PROTECTED] 02-04-01

[PHP] problem finding out original filename while using php to upload.

2001-12-16 Thread Neil M
, its image files i am uploading , how do i know what type of image the file was ? like .jpg , .png etc. Any help appreciatted , i am really stuck on this ;0) Thanks Neil M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

[PHP] checkboxes vs text filed array and hidden variables

2002-01-14 Thread m. ali
Hi my problem : i have to pass the price, and part number which i get from the database to the shopping cart so when i select some of the items by checking the checkboxes and submit the form i get only the last item in the list i use hidden variables to pass these values to shopping cart. my

[PHP] Redirection and Passing Data (arrays)

2002-01-15 Thread m. ali
hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with number of items where the user can select some them using checkboxes and enter the quantity that he needs, then add them to his shopping cart this works

Re: [PHP] Re: Redirection and Passing Data (arrays)

2002-01-19 Thread m. ali
o.com.br/wishlistclient.asp?wlid=664176742884 M. Ali [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi may can some body help me I'm writing a shopping cart system where the user can search for a product. the search result is a page with numbe

[PHP] Re: Form ID name

2002-04-07 Thread M Green
If you are using a function as an easy way to add links to your page, i'd recommend that you define a function that echoes a hfref=your function parameter in that manner. /Mattias Morten Nielsen [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I got a

[PHP] import_request_variables() is undefined!?

2002-04-07 Thread M Green
When i just migrated to linux instead of win2k the function import_request_variables() is not defined anymore. I used 4.1.2 in win2k and 4.0.6 now under linux. I was wondering if it had to do with the versions or someting. Seems odd. Very tankful for any help that might get me to solve the

[PHP] Problems with libgd.so under linux

2002-04-08 Thread M Green
Php works in general (phpinfo()). The gd-lib however will not work for some reason. I tried extension=libgd.so in php.ini without any result. Anyone familiar with this problem? /M Green -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with libgd.so under linux

2002-04-08 Thread M Green
familiar with this problem? /M Green Too few arguments ;-) Did you already compiled GD ? Did you compile php with gd support? Oliver I just followed the instructions on php.net for apache servers and changed php.ini. http://www.php.net/manual/en/html/install.apache.html Is there any way to check

[PHP] problems compiling php-4.2.1 / solaris 2.6

2002-06-26 Thread Neil M
problems compiling php-4.2.1 / solaris 2.6 -- [root@sunnsr02] 240 /tmp cd /export/php-4.2.1 [root@sunnsr02] 241 /export/php-4.2.1 make Making all in Zend /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main

[PHP] Re: problems compiling php-4.2.1 / solaris 2.6

2002-06-28 Thread Neil M
Neil M wrote: problems compiling php-4.2.1 / solaris 2.6 -- [root@sunnsr02] 240 /tmp cd /export/php-4.2.1 [root@sunnsr02] 241 /export/php-4.2.1 make Making all in Zend /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I

[PHP] $PHP_AUTH_USER

2002-04-20 Thread Alec M.
Hello, I have trouble unseting the values of $PHP_AUTH_USER and $PHP_AUTH_PW. I use the WWW-Authenticate via header() to authorize the user when accessing the page. But when the user logs out, values in $PHP_AUTH_USER and PW seem to remain and the user isn't asked again to authorize till a new

[PHP] Sorry, this is relate to subscription problem but cant solve it

2002-04-25 Thread M VM
Hello, sorry this off-topic msg but I don't know how to solve subscription problem to this list. Due yahoo email changes (no more pop services), I am trying to subscribe this list using alternate email address ([EMAIL PROTECTED]) but receive = Hi. This is the qmail-send program at

RE: [PHP] Exiting from an include or required file

2002-08-21 Thread M . A . Bond
Or just do a return(); ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; return; } -Original Message- From: Roedel, Mark [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 15:48 To: Henry; php-general Subject:

RE: [PHP] Re: Mail problem

2002-08-30 Thread M . A . Bond
I actually had to set the SMTP setting to localhost on our solaris boxes to get this to work. I discovered this because we have a few older machines without php.ini files altogether, and the default is to have this set (the older machines worked). Thanks Mark Bond -Original Message-

RE: [PHP] MS SQL Problem

2002-09-13 Thread M . A . Bond
?PHP $hostname = LocalServer; ^^ This should be LocalHost (unless you are trying to connect to a server with a DNS alias of LocalServer). Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Confused

2002-09-23 Thread M . A . Bond
Nope, Do a select like so: Select user_name, group_name from users,groups where users.group_id=groups_id order by group_name; Then do a php loop (you'll need to find the eact php commands, this is just an example): While (!$results-EOF) { If ($results[group_name]!=$old_groupname) {

RE: [PHP] mysql_num_rows error

2002-09-23 Thread M . A . Bond
I am new to php and that the folowing error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tbonestu/public_html/smallimages.php i dont know what i am doing wrong here is the code: $db = mysql_pconnect(connect info);

RE: [PHP] How do i assign Integers only and not real numbers?

2002-09-23 Thread M . A . Bond
that year would be 1998 or 2002 only. Does anyone know what function would do this? Sorry if I`m wasting your time if its a really obvious one! thanks in advance, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

[PHP] Redirecting Using Header{} Function

2001-10-25 Thread Chris M
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that

[PHP] Header Refresh Function

2001-10-25 Thread Chris M
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that

[PHP] PHP File not found

2001-10-25 Thread Chris M
Hi, I have just set up PHP on my webserver (IIS 4 on NT4). I have set up the script mapping so that I can save php files as .html and php processes them. This works fine until someone goes to a page that doesn't exist - instead of getting the customised error 404 page (i.e. the page you

Re: [PHP] PHP File not found

2001-10-26 Thread Chris M
The only pages that are getting this error are the ones that php is mapped to parse (i.e. .html .php .phtml) if I go to a page that doesn't exist with a .htm or .cgi extension etc it works fine and I get the standard IIS 404 error page. But when it is a page that php processes thats when the CGI

[PHP] Cannot view source via IE browser

2001-05-20 Thread John M
for awhile and then all of a sudden I could not. I am posting this question in a few other PHP newsgroups as I am unsure where this would fall under: php.dev php.doc php.general php.windows Thanks to anyone who can assist. John M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Executing PHP

2007-10-25 Thread M. Sokolewicz
Philip Thompson wrote: Hi. Feel free to tell me this is a duh question. I don't know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server running PHP5 (manual install) and IIS6. I've pointed to the php5isapi.dll in IIS. I'm assuming b/c

[PHP] Re: Email question

2007-10-31 Thread M. Sokolewicz
Jake wrote: while($begin $end) { if ($start == 'false') { if (empty($temp[$begin])) { $start = 'true'; } } else { $data .= chop($temp[$begin]) . \n; } $begin++; } return $from|$subject|$data; } You have got to be joking me.

[PHP] Re: mysql_fetch_array

2007-11-03 Thread M. Sokolewicz
Eduardo Vizcarra wrote: I have a WHILE sentence to retrieve all records from a SELECT query in a database and am using mysql_fetch_array to store them in a matrix, the sentence is like this: while($row=mysql_fetch_array($fotos)) { $fotos_mostrar[] = $row; } $fotos contains all

Re: [PHP] Cannot send a hyperlink

2007-11-11 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: The Answer is quiet simple. $E_MAIL = [EMAIL PROTECTED]; $to = [EMAIL PROTECTED]; $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; $headers .= To: Their Name[EMAIL PROTECTED] \r\n; $headers .= From: your email [EMAIL

Re: [PHP] Cannot send a hyperlink

2007-11-15 Thread M. Sokolewicz
Brad, please, try solving these kinds of things yourself. Especially seen as the parse error which you posted here was already found and shown to you in one of your earlier posts to this list (if I'm not mistaken). So, your problem is: $body.= 'a href='http://www.zoneofsuccessclub.com'link

Re: [PHP] Open Source BTS??

2007-11-16 Thread M. Sokolewicz
Richard Heyes wrote: I am needing to install a bug tracking system on a web server and looking for a good PHP open source solution. Looking for a pretty mature system that still has active development. Thanks for any suggestions. The only one I have had experience of is Mantis:

[PHP] Re: getenv ... i think

2007-11-22 Thread M. Sokolewicz
Steven Macintyre wrote: Hi all, http://steven.macintyre.name/myscript.phps is my code as it stands The purpose of the code is as follows; Its for a non-profit company - wanting to offer support banners for users who pay for them right ... as in donation. They want to be able to restrict

[PHP] Re: Fatal error: Function name must be a string

2008-01-02 Thread M. Sokolewicz
Adam Williams wrote: I'm getting the following error and I don't see whats wrong with my line. Any ideas? *Fatal error*: Function name must be a string in */var/www/sites/intra-test/contract/perform.php* on line *57* and my snippet of code is: if ( $_POST[perform] == View Contracts )

[PHP] Re: Where is FAM ?

2008-01-31 Thread M. Sokolewicz
Anup Shukla wrote: Hi all, The manual says, XXXVII. File Alteration Monitor Functions .. .. Note: This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.1.0. .. .. But i am unable to locate it on PECL either. Is there any way to use FAM/GAMIN

Re: [PHP] www. not working

2008-02-16 Thread M. Sokolewicz
Jim Lucas wrote: Valedol wrote: On Fri, 15 Feb 2008 23:46:57 +0300, nihilism machine [EMAIL PROTECTED] wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? ?php class URL

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread M. Sokolewicz
Daniel Brown wrote: On Wed, Feb 27, 2008 at 5:08 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: Thank you again Robert, and thank you too Daniel. I have gotten both methods to work flawlessly so far :). I am slowly learning by trial and

Re: [PHP] Re: Variable post as array

2008-03-05 Thread M. Sokolewicz
And you don't do: $txtPhotoData = addslashes(fread(fopen($_FILES['txtPhoto']['tmp_name'], r), filesize($_FILES['txtPhoto']['tmp_name']))); because ? - Tul P.S. if you want more readable code (PHP = 4.3.0, which you should have anyway) use: $txtPhotoData =

[PHP] Re: Return or not to return, that is the question

2007-05-30 Thread M. Sokolewicz
Richard Davey wrote: Hi all, Just a quick straw-poll really: What is your take on using 'return' when you end a function, if you don't actually need to return a value? If you have to return say a true/false as the result of an operation, then it's an obvious choice. But what if all the

[PHP] Re: local v remote

2007-05-31 Thread M. Sokolewicz
Jared Farrish wrote: Jared Farrish wrote: On my localhost this works fine $result= mysql_query(SELECT date_format(date, '%d/%m/%Y') as date, title, id, display FROM NEWS); while ($row = mysql_fetch_assoc($result)) { but on my remote i get a mysql_fetch_assoc(): supplied argument

  1   2   3   4   5   6   7   8   9   10   >