[PHP] how to get calling method identity?

2002-07-04 Thread Alberto Serra
Hi! I already made this question, but probably I kinda made it in obscure terms. Trying to get clearer. let's look at this: function utility() { } Class a { function some_method() { utility(); } } now, how can utility know that it's being called by a::some_method()? What I

Re: [PHP] Strange MySQL Query Problem

2002-07-04 Thread Alberto Serra
eat pasta type fasta wrote: $result = mysql_query(SELECT some_id, some_description, some_feature FROM '$pop-up1' WHERE some_description LIKE '%$texfield%' AND some_feature LIKE '%$pop-up2'); have this query echoed to video and then cut it and paste it to mysql terminal. Most probably

Re: [PHP] Weird preg problem

2002-07-04 Thread Miguel Cruz
On Thu, 4 Jul 2002, SP wrote: Hi I am trying to check if a word contains only capital letters. For some reason it's not working. The below example is checking the word weird to see if it's all capital letters but it's saying it's matches. I've tried checking for only lower case letters

Re: [PHP] addslahes and magic quote woes

2002-07-04 Thread Miguel Cruz
On Wed, 3 Jul 2002, Jean-Christian Imbeault wrote: Erik Price wrote: Turn off magic_quotes and do addslashes() explicitly every time you do a database insert. Then make sure you always stripslash() data returned from a database query. magic_quotes is convenient for newbies, but after a

[PHP] Java in PHP4

2002-07-04 Thread Idaham
Hi, I'm really new to Java in PHP, and curious to this great features. Q: How do I convert the sample code below so that it can run within PHP? === import com.my.sm.api.*; import com.my.sm.api.interfaces.*; public class my1 { public

[PHP] fsockopen question

2002-07-04 Thread Jose Arce
Hi, i'm making a script to transfer all the zips from my old server to my new one, i mean, server to server. That's the easy part. The cuestion is: Can i open more than just one instance for fsockopen to retrieve more files in the same script, at the same time? i mean, not one by one (that

Re: [PHP] fopen with external file

2002-07-04 Thread Analysis Solutions
On Thu, Jul 04, 2002 at 08:04:59AM +0100, morka ++ wrote: i try to open the external file using fopen() function. I use the example from php.net: $filename = http://www.aaa.com/index.html; $fd = fopen ($filename, r); $contents = fread ($fd, filesize ($filename)); This function will not work

RE: [PHP] fsockopen question

2002-07-04 Thread Martin Towell
you can do more than one fsockopen(), but since php isn't multi-threaded - you'll still only be able to download one file at a time. -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 4:39 PM To: [EMAIL PROTECTED] Subject: [PHP] fsockopen question

[PHP] Re: PHP: Script Security: Best coding practices

2002-07-04 Thread Jean-Christian Imbeault
Manuel Lemos wrote: Check out http://www.phpadvisory.com/ . An ok site but only three articles, of which two are on security. One article is too general and the other too specific :) Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] checking the path from which someone has arrived at aspecific script

2002-07-04 Thread Miguel Cruz
On Fri, 28 Jun 2002, Kris Vose wrote: Basically I want to check to see if a user has gone to PayPal.com and paid for a product before I disseminate the username and password through a script called thankyou.php. I tried using an if statement that checks the global variable $HTTP_REFERER:

RE: [PHP] fsockopen question

2002-07-04 Thread Jose Arce
So...i can do more than one fsockopen()...but is not multi-thread? i don't understand...i mean...if i can open more than one fsockopen...it is multithread, or in wich cases php open more than one fsockopen? thx :D From: Martin Towell [EMAIL PROTECTED] To: 'Jose Arce' [EMAIL PROTECTED], [EMAIL

RE: [PHP] Weird preg problem

2002-07-04 Thread SP
Thanks Miguel it works now! $str = abcA; if (preg_match('/^[a-z]*$/', $str)) echo The string '$str' contains only lower-case letters.; -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:29 AM To: SP Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] fsockopen question

2002-07-04 Thread Martin Towell
I mean, you can do ? // been a while, so syntax is prob. wrong :( $sock1 = fsockopen($host, 80); $sock2 = fsockopen($host, 80); fputs($sock1, GET /file1.html HTTP/1.0\r\n\r\n); fputs($sock2, GET /file2.html HTTP/1.0\r\n\r\n); $content1 = fgets($sock1, 102400); $content2 = fgets($sock1,

Re: [PHP] checking the path from which someone has arrived at a specific script

2002-07-04 Thread Tracker 1
Miguel Cruz [EMAIL PROTECTED] wrote in message... Unfortunately...This is not working. I went to the php manual and it basically stated that not all web sites will post the $HTTP_REFERER. I believe that is what is happening in this case. Also, anyone can fake HTTP_REFERER to be

RE: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-04 Thread SP
I thought it was a good site. I was reading up on the security bugs found and now I know what not to do. -Original Message- From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 2:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP: Script Security: Best coding

Re: [PHP] gc_probability: requests tallied per server or domain?

2002-07-04 Thread Miguel Cruz
On Tue, 2 Jul 2002, Johnson, Kirk wrote: Is the number of requests (used for garbage collection), tallied on a per server basis, or on a per domain basis? What about in a load-balanced environment? Pretty fair bet it's a per-server basis. miguel -- PHP General Mailing List

Re: [PHP] fsockopen question

2002-07-04 Thread Tracker 1
you can do more than one fsockopen, which means you will have multiple sockets open, however, these are part of the same thread in the same process.. in other words, you can't do two things at once by default.. with php-gtk, you can maybe have multiple user events.. and not sure if you can

RE: [PHP] PHP in South Africa

2002-07-04 Thread Rudolf Visagie
Rudolf Visagie Principal Software Developer Digital Healthcare Solutions mailto:[EMAIL PROTECTED] Tel: +27 11 2655484 Cell: 082 895 1598 -Original Message- From: MindHunter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 4:19 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP in

[PHP] Re: Weird preg problem

2002-07-04 Thread Tracker 1
the /i means case insensitive, remove the i, and it will work as intended. -- === Michael J. Ryan - tracker1[*at*]theroughnecks.com Roughneck BBS: http://www.theroughnecks.net telnet://theroughnecks.net

RE: [PHP] fsockopen question

2002-07-04 Thread Jose Arce
now it's clear thx :D is not the same thing as: while ($i 100) { $sock = fsockopen($host, 80); fputs($sock, GET /file.$i.html HTTP/1.0\r\n\r\n); } isn't? From: Martin Towell [EMAIL PROTECTED] To: 'Jose Arce' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen question

Re: [PHP] Re: Handling of constants in strings

2002-07-04 Thread Miguel Cruz
On Tue, 2 Jul 2002, Uwe Birkenhain wrote: A question - since english is not my first language - what do you mean with It's not all that common to bury constants in strings Is something bad about it? I think so. It would slow parsing down to a crawl and create a host of ambiguities if every

RE: [PHP] fsockopen question

2002-07-04 Thread Martin Towell
That's still running sequentially -Original Message- From: Jose Arce [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 5:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] fsockopen question now it's clear thx :D is not the same thing as: while ($i 100) {

[PHP] Using fsockopen

2002-07-04 Thread ER Lees
Help I'm a newbie to indepth PHP. I want to issue an fsockopen command to pass a POST data set to a remote server script. I understand the pricipals behind fsockopen, but I cannot figure out the string I need to pass to POST the data - I will be emulating the output from a Form element. In

Re: [PHP] Re: PHP: Script Security: Best coding practices

2002-07-04 Thread Jean-Christian Imbeault
Sp wrote: I thought it was a good site. I was reading up on the security bugs found and now I know what not to do. True. It's just too specific. In order for me to figure out what to do I need to read every advisory to see what it is about and how to prevent against that particular

[PHP] Help!

2002-07-04 Thread John Lazos
Hi, I installed apache with support of php as i found on the online manual at php.net. I created a simple php file named hello.php html head titlePHP Test Page/title /head body ?php echo Hello p; ? /body /html and i put the file in my htdocs directory i restarted apache and when i'm trying

Re: [PHP] Help!

2002-07-04 Thread Alberto Serra
John Lazos wrote: and i put the file in my htdocs directory i restarted apache and when i'm trying to access the page http://localhost/hello.php as a result i'm getting the contents of the file hello.,php What is wrong is my apache able to display php pages? Looks like Apache does not

[PHP] Thanx!!!

2002-07-04 Thread John Lazos
Thanx all for your help it worked..!!! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help!

2002-07-04 Thread Alberto Serra
John Lazos wrote: and i put the file in my htdocs directory i restarted apache and when i'm trying to access the page http://localhost/hello.php as a result i'm getting the contents of the file hello.,php What is wrong is my apache able to display php pages? Looks like Apache

RE: [PHP] Re: Weird preg problem

2002-07-04 Thread SP
A that's what that means. Thanks Tracker -Original Message- From: Tracker 1 [mailto:[EMAIL PROTECTED]] Sent: July 4, 2002 3:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Weird preg problem the /i means case insensitive, remove the i, and it will work as intended. --

[PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Uwe Birkenhain
Hi everybody on this rainy morning! My problem: I give the user a form with a list of options with checkboxes. The list is long and not predictable - the values change always. I want to put the checked values (or all, that doesn't matter) in an array, to pass it to my function. How can I write

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Jason Wong
On Thursday 04 July 2002 16:52, Uwe Birkenhain wrote: Hi everybody on this rainy morning! My problem: I give the user a form with a list of options with checkboxes. The list is long and not predictable - the values change always. I want to put the checked values (or all, that doesn't

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Alberto Serra
Uwe Birkenhain wrote: Hi everybody on this rainy morning! Rainy!? It's damn hot in Kiev :) My problem: I give the user a form with a list of options with checkboxes. The list is long and not predictable - the values change always. I want to put the checked values (or all, that doesn't

[PHP] Nothing will execute after calling imagejpeg.

2002-07-04 Thread Victor Spång Arthursson
This thread has been up before, but there was never sent a reply to it, and I'm having the same problem… Anyone who knows what to do? Sincerely Victor -Original Message- From: Kris Johnson [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 11:11 PM To: Leotta, Natalie

[PHP] extension problem

2002-07-04 Thread adelpfephp
hi I have an extension problem. i have wrote this exemple #include... char* xx(){ return true; } it's a simple example. I have compiled it into .SO dynamic library. when I try to load it into PHP i get this message cannot include .(may be not php extension). CAN YOU HELP ME PLEASE.

[PHP] Picture Cache

2002-07-04 Thread Steve Vernon
Hello, At the moment I have a PHP script which accesses a database, to get the data to return a picture. So the follwing url is actually a picture of type image/jpeg: getdata.php?id=6 So I can use: img src=getdata.php?id=6 Thats great and it works fine,

[PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread Wilbert Enserink
Hi all, I have to tables A and B. They boyh have a column with the same name. Now, I wrote this MySQL statement performing a left join. This results in a data set with rows consisting of 2 columns of the same name, in which the date is stored when the record was last altered. This column is

Re: [PHP] Re: Program executing in PHP. Please help (SOLVED)

2002-07-04 Thread Latex Master
Hello Richard, PHP, Well I did a typo here. Sorry about it. At that moment i was really nuts, and needed a rest. Now I solved that problem, but only after UPDATING PHP from 4.0.6 to 4.2.1 And shell_exec worked. Exec didn't :( I'm going to investigate this question in the future. Thank's

[PHP] loop problem

2002-07-04 Thread Emmanuel FAIVRE
Hi All, I'm currently working with a friends that want to use irc protocol at his work cause there is only http proxy. so it is very easy, i found phpIRC and everything works fine...He is very happy i've just seen that some process are always connected. this is really weird. so i started

Re: [PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread Jason Wong
On Thursday 04 July 2002 17:23, Wilbert Enserink wrote: Hi all, I have to tables A and B. They boyh have a column with the same name. Now, I wrote this MySQL statement performing a left join. This results in a data set with rows consisting of 2 columns of the same name, in which the date

RE: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Rudolf Visagie
Hi Uwe, If you define the checkbox list as an array (OptionList[] in the example below), only the checked values will be returned as an array $OptionList when you post the form. You can then use this as an array or pass it as an array to a function in the script: ? $i = 0; while

RE: [PHP] Need Help with $_SESSION.

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 20:58 Still working on the script. Here what I found out so far. Why does the example #1 work and example #2 doesn't? Example #1 Page 1 $_SESSION[0] = Zero; $_SESSION[1] = One;

Re: [PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread W. Enserink
thx Jason, now I understand the use of aliases in select queries. Good ID:-) Wilbert - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 04, 2002 11:38 AM Subject: Re: [PHP] mysql/php how to retrieve the right column with 2 columns of

RE: [PHP] Re: Does Location: headers constantly

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 21:17 [...] It's a good idea to get in the habit of doing: header(Location: xxx); exit; There's no point in sending any more data after the Location: header anyway, I can't let this go

RE: [PHP] adding a variable to a variable name

2002-07-04 Thread Ford, Mike [LSS]
-Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: 03 July 2002 21:41 For the current issue I'm trying to unset some variables with common names and I would like to step through them with a loop. Here's where I'm at to give you an idea but the code doesn't

Re: [PHP] mysql/php how to retrieve the right column with 2 columnsof the same name

2002-07-04 Thread Alberto Serra
Wilbert Enserink wrote: Later on in my script I'm calling the value of this column with php. $query=select * from tblA LEFT JOIN ; it's been said over and over :) NEVER EVER write a select * query... use syntax Select a.column1, a.column2, b.column1 from tbl1 as a,

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Terence Kearns
This is a nice easy one :) It couldn't be simpler. Just put empty square brackets (as used in arrays) in front of your checkbox name. The example below assumes you have PHP 4.1 or greater (which uses $_POST to contain form posted data) notice how name=ck[] html head

[PHP] HTML Java script doubt..

2002-07-04 Thread Balaji Ankem
Hi friend, sorry for putting this question to php-list. Here I am getting the error as Object doesn't support this property or method in line number 22. html head script language=javascript function checkall() { var n=0,i=document.form1.OptionList.length;

[PHP] IIS unexpected error

2002-07-04 Thread news.per.connect.net.au
I am setting up PHP on WinXP Pro with IIS 5.1. I tried to start the IIS server and I get an Unexpected error 0x8ffe2740 occured. error. Anyone know how to resolve this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML Java script doubt..

2002-07-04 Thread John Legg
Hi Balaji Have re-written the code now works.. two problems: 1. checkall() appears to be a reserved function - have renamed function to checkitall 2. You didn't need to put [] after OptionList in checkbox name html head script language=javascript function checkitall() { var

[PHP] Content-Length

2002-07-04 Thread Grant
Hi I am currently having problems with a custom written web-authentication-proxy. The proxy works fine with standard html pages but not with php pages. After doing a bit of digging I have found that the proxy does a HEAD request and checks the Content-Length to see if the page if valid. I

[PHP] Sort with PHP or SQL?

2002-07-04 Thread Patrick Teague
Hey, I'm working on a way to pull menus/pages from a database. Currently I have this working on 2 levels - Topic headers actual page titles - it prints it out fairly nice doesn't take long to load. What I need to do is add a level between the 2, a sub-header. I'm running both the apache

[PHP] AdRotator for PHP?

2002-07-04 Thread Patrick Teague
Hey, I'm wondering if anyone has found or ended up writing something similar to the MSWC AdRotator object in ASP, but for PHP? Or is there already a module on apache.org that I missed? Thanks for any help :) Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Nothing will execute after calling imagejpeg.

2002-07-04 Thread val petruchek
This thread has been up before, but there was never sent a reply to it, and I'm having the same problem… Just idea. If you doesn't have GD installed and php error reporting turned off this situation is possible. In other words php simply dies because of undeclared function and doesn't report

[PHP] MySql_Error();

2002-07-04 Thread Skyhawk
Please, How do I make to get all errors of MySql ? I'm making a function for translate all errors. Example: function TranslateErrors($err) { global $result; global $text; Switch ($err) { case 1045 : $text = User or Password invalid; Break; case 2005 :

Re: [PHP] Content-Length

2002-07-04 Thread Daniel Tryba
On Thu, Jul 04, 2002 at 01:24:04PM +0200, Grant wrote: My question is how do I go about calculating the correct Content-Length for each and every php page on my site. I have done some digging and presume I need to do Output buffering and calculate the strlen of the response the php returns,

RE: [PHP] AdRotator for PHP?

2002-07-04 Thread joakim . andersson
I'm pretty sure you'll find what you are looking for here: http://www.hotscripts.com/PHP/Scripts_and_Programs/Ad_Management/ /Joakim -Original Message- From: Patrick Teague [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 1:31 PM To: PHP-General Subject: [PHP] AdRotator for

[PHP] Function imap_headers question.

2002-07-04 Thread Latex Master
Hello php-general, I've got a little question about imap_headers. I working on a project which must connect to local nntp server. I have no problems doing it, but as far as I know from documentation Imap_headers() fetches msg headers in to the arrey. So let's say I've got 5000 post in

Re: [PHP] AdRotator for PHP?

2002-07-04 Thread Latex Master
Hello Patrick, Try to look at hotscripts.com there are lots of scripts there. Personally i prefer to write ones by myself. Thursday, July 4, 2002, 3:31:20 PM, you wrote: PT Hey, PT I'm wondering if anyone has found or ended up writing something similar to PT the MSWC AdRotator

[PHP] PHP 4.2.1 - Apache 2.0.36 - Win98SE

2002-07-04 Thread Erik Hegreberg
Php 4.2.1 - Apache 2.0.36 -Win98SE This configuration works great, but when I try to upgrade to Apache 2.0.39 nothing works.Even when I try php 4.3.0 it wont work. My question is: Is there anybody out there who have tried to configure php 4.2.1 or 4.3.0 with Apache 2.039 and Win98SE? Please

Re: [PHP] Re: $this in an XML data handler ... in a class

2002-07-04 Thread Peter Clarke
I hadn't noticed that. My php.ini was set to on, changing it to off gave the warning. Having changed: xml_set_object($this-parser,$this); to: xml_set_object($this-parser,$this); Stops the warning and the parser works fine. This is the class I'm using and it works fine: class parse_words_xml {

[PHP] Button can't see form!

2002-07-04 Thread Mark Colvin
I use the following line in some of my php scripts to navigate between pages: td align=left width=40pxinput type='button' class='bginput' value='New' onClick=this.form.action='newproduct.php?mode=new'; this.form.submit()/td The problem I have is with a page I build dynamically. The whole page

[PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Hi people, I want to move a file from one location to another. I expect I can only do this with 'rename', because there's no 'move'-command (at least nog in the manual). Following situation: original file: /var/www/html/webfotos/tmp/thumb_phpibmGBF.jpg with /var/www/html/webfotos being a

[PHP] Microsoft Access PHP

2002-07-04 Thread Daniel J Owen-Mcgee
Hi, I'm gleaning microsoft SQL from queries within a MS Access database, for insertion into my PHP pages. This has been working fine but the example below just refuses to work, SELECT ExamPapers.EPaperID, ExamPapers.EPapersText, ExamPapers.[Title of Paper], ExamPapers.Course,

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Latex Master
Hello Tim, Tim why don't you try shell_exec ? Thursday, July 4, 2002, 5:03:34 PM, you wrote: TS Hi people, TS I want to move a file from one location to another. I expect I can only do TS this with 'rename', because there's no 'move'-command (at least nog in the TS manual). Following

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
rename can move the file only on the same partition, it is realy just _rename_, not full _move_ Marek Tim Stoop wrote: Hi people, I want to move a file from one location to another. I expect I can only do this with 'rename', because there's no 'move'-command (at least nog in the

Re: [PHP] Microsoft Access PHP

2002-07-04 Thread Latex Master
Hello Daniel, Try to use a query line like below: WHERE (((ExamPapers.School)=\Colour and Imaging Institute\) AND ((ExamPapers.[Add to Webpage])=True)); And let us know it it will work Thursday, July 4, 2002, 5:21:50 PM, you wrote: DJOM Hi, DJOM I'm gleaning microsoft SQL from queries within

RE: [PHP] Other than substr

2002-07-04 Thread César Aracena
Thanks for all the responses. C. -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 03, 2002 1:36 PM To: PHP General List Subject: [PHP] Other than substr Hi all. I need to show up some data from a DB which consist of phone numbers with

[PHP] How to trigger particular java script function?

2002-07-04 Thread Balaji Ankem
Hi friend, I want to trigger one java script function ( time delay) every time. How can I achieve this? Here my questuion is: I want to play all song files from my database. Here what I do is initially I display one button PLAY and then call java script delay function and it has to come back

[PHP] User generated Web pages?

2002-07-04 Thread Anthony Rodriguez
I'm trying to develop a software package for end users with no knowledge of PHP. The package would allow these users to generate Web pages displaying a custom questionnaire to be used by consumers to answer questions online. I thought of writing a PHP script that asks the end users the type

Re: [PHP] mySQL and phpMyAdmin

2002-07-04 Thread Marek Kilimajer
You need to install php-mysql* too. Jadiel Flores wrote: Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but I'm receiving the error message: cannot load MySQL extension, please check PHP Configuration. I checked the php.ini and couldn't find anything related, my configure

Re: [PHP] User generated Web pages?

2002-07-04 Thread Justin French
It's the right approach, but since you're dealing with large amounts of user-contributed (untrusted, dangerous, suspicious, whatever) data both to create the forms AND to gather information from form submissions, I'd be very wary about security. Infact, I wouldn't recommend it for a first

[PHP] eregi problems

2002-07-04 Thread dan radom
I've got a form that's posted to a php page where I'm attempting to validate a field contains a valid email address. The eregi below seems to be totally ignored... if (eregi(^[a-z0-9\._-]+@[a-z0-9\._-]+$, $emp_email)) { echo centerplease enter a valid email address/center;

[PHP] extension problem

2002-07-04 Thread adelpfephp
Hi all I am working with php on linux. I want to create dynamic library and use it in php. For example: I have to built this #include iostream.h char* aa(){ return true; } I succeed to compile this into a dynamic library x.so. When I try to call this from php I get Cannot load x.so.

[PHP] mail atashments

2002-07-04 Thread adi
HI, How to send atashments with mail() function? I have a form to mail page, and i want to atash and transmit files tx

Re: [PHP] Using fsockopen

2002-07-04 Thread Remy Dufour
Take a look at this class. I think thats what you want ! Help I'm a newbie to indepth PHP. I want to issue an fsockopen command to pass a POST data set to a remote server script. I understand the pricipals behind fsockopen, but I cannot figure out the string I need to pass to POST the

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Marek Kilimajer wrote: rename can move the file only on the same partition, it is realy just _rename_, not full _move_ So there is no full-features move in PHP? -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Latex Master wrote: Hello Tim, Tim why don't you try shell_exec ? As a last resort, I might, but I'd rather do it in PHP... Code-portability, y'know :) -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] eregi problems

2002-07-04 Thread Justin French
Dan, I'll give you a little piece of advise that was given to me a little while back on this list: Go to http://www.killersoft.com/ and grab a copy of the validateEmailFormat program. QUOTE PHP4 translation of Jeffrey E.F. Friedl's definitive Email Regex Program from O'Reilly's Mastering

[PHP] Broken Cookies

2002-07-04 Thread Robert Wray
Hiyas :) I'm having a problem with the code copied below not creating the cookies that it should do; setcookie(loggedInUID,$_POST['uname'],ms_cookie_time((time()+120)),'/', $cookie_base); setcookie($_POST['site_id'],$_POST['ucaps'],ms_cookie_time((time()+120)),'/' , $cookie_base); Basically

Re: [PHP] eregi problems

2002-07-04 Thread dan radom
My main cnocern at this point is that the eregi is being totally ignored. I just want to make sure the email address is in a valid format, not that it is a valid email address. I'll look at validEmailFormat as well, but I don't understand why it's not even being examined. dan * Justin

Re: [PHP] Re: Does Location: headers constantly

2002-07-04 Thread Analysis Solutions
On Thu, Jul 04, 2002 at 11:01:50AM +0100, Ford, Mike [LSS] wrote: I can't let this go unchallenged -- what happens if you're sending this to a browser which *doesn't* honour the Location: header, but *is* capable of displaying any attached page content? The poor user will be

RE: [PHP] extension problem

2002-07-04 Thread joakim . andersson
You probably shoul start here: http://www.php.net/manual/en/zend.php /Joakim -Original Message- From: adelpfephp [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 04, 2002 4:34 PM To: php-france; [EMAIL PROTECTED] Subject: [PHP] extension problem -- PHP General Mailing List

Re: [PHP] Sort with PHP or SQL?

2002-07-04 Thread Analysis Solutions
Patrick: Grouping and sorting is something databases specialize in. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D

[PHP] Microsoft Access PHP - Solved

2002-07-04 Thread Daniel J Owen-Mcgee
Hi All, My query (below) has been solved. Thanks to all who responded so quickly! Putting single quote marks around 'Colour and Imaging Institute' did the trick. DAniel Hi, I'm gleaning microsoft SQL from queries within a MS Access database, for insertion into my PHP pages. This has been

Re: [PHP] MySql_Error();

2002-07-04 Thread Analysis Solutions
On Thu, Jul 04, 2002 at 08:48:26AM -0300, Skyhawk wrote: Please, How do I make to get all errors of MySql ? I'm making a function for translate all errors. Example: Uh, why? PHP's mysql_error() does the job for you. http://www.php.net/manual/en/function.mysql-error.php If you're hell bent

Re: [PHP] Button can't see form!

2002-07-04 Thread Analysis Solutions
On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote: I use the following line in some of my php scripts to navigate between pages: td align=left width=40pxinput type='button' class='bginput' value='New' onClick=this.form.action='newproduct.php?mode=new'; this.form.submit()/td And

[PHP] Paradox Tables with PHP (Still the Same old Question)...

2002-07-04 Thread Kondwani Spike Mkandawire
Hallo Folks I have come across this problem many times... But still haven't seen anyone give a reasonably coherent solution... I am trying to get my script to read Paradox Tables... Its a no go so far... I do believe that this can be achieved via. odbc... I have tried the configurations but

[PHP] Problem uploading an image

2002-07-04 Thread Barajas, Arturo
Greetings. I have two pages where I upload images to a database. The first one is a capture, where I insert a record to the database, and the second is to edit the data. The problem: When I go to insert, the following code works flawlessly: ? if ($cmdOk == Save) { if (isset($imagen)

Re: [PHP] eregi problems

2002-07-04 Thread Marek Kilimajer
If the regexp matches, it is a valid email, so you need ! in front of it. dan radom wrote: I've got a form that's posted to a php page where I'm attempting to validate a field contains a valid email address. The eregi below seems to be totally ignored... if

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
None that I know of. You need to use copy unlink Tim Stoop wrote: Marek Kilimajer wrote: rename can move the file only on the same partition, it is realy just _rename_, not full _move_ So there is no full-features move in PHP? -- PHP General Mailing List

Re: [PHP] Button can't see form!

2002-07-04 Thread Marek Kilimajer
I dont think forms can be nested. In fact I'm pretty sure. Mark Colvin wrote: I use the following line in some of my php scripts to navigate between pages: td align=left width=40pxinput type='button' class='bginput' value='New' onClick=this.form.action='newproduct.php?mode=new';

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Are you able to do an nslookup of these domains from the server? Those, of course, were just example email addresses (I'd replaced them before sending out this email so it would be more clear). If I use a real email address I get the same error unrouteable mail domain I am able to nslookup the

Re: [PHP] Button can't see form!

2002-07-04 Thread Analysis Solutions
Folks: On Thu, Jul 04, 2002 at 11:05:38AM -0400, Analysis Solutions wrote: On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote: td align=left width=40pxinput type='button' class='bginput' value='New' onClick=this.form.action='newproduct.php?mode=new'; this.form.submit()/td

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Jason Wong
On Thursday 04 July 2002 23:47, Liam Gibbs wrote: Are you able to do an nslookup of these domains from the server? Those, of course, were just example email addresses (I'd replaced them before sending out this email so it would be more clear). If I use a real email address I get the same

RE: [PHP] resizing images comming out of blobs

2002-07-04 Thread Barajas, Arturo
From: andy [mailto:[EMAIL PROTECTED]] Hi there, Hey, Andy. I am wondering how to resize an image which is stored in a mysql blob field. With files this workes just fine, but how to do this with the image comming from blob? Has anybody done this already? Incidentally, I've done this

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Jason Wong wrote: On Thursday 04 July 2002 23:47, Liam Gibbs wrote: Are you able to do an nslookup of these domains from the server? Those, of course, were just example email addresses (I'd replaced them before sending out this email so it would be more clear). If I use a real email

[PHP] returning first paragraph from a string

2002-07-04 Thread Lowell Allen
I'm having difficulty returning the first paragraph of a string called $summary. (Usually this string will only be one paragraph, but it might contain more than one paragraph. Current data has one occurrence of a two-paragraph $summary.) Here's how I process when I want multiple paragraph

Re: [PHP] AdRotator for PHP?

2002-07-04 Thread Liam Gibbs
I'm wondering if anyone has found or ended up writing something similar to the MSWC AdRotator object in ASP, but for PHP? Or is there already a module on apache.org that I missed? (Figre I should pull my weight on this list here.) Hmm. Not sure exactly what MSWC AdRotator is, but here's

[PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread René Fournier
echo rtrim($feat,, ); On my local Apache-OSX web server (PHP 4.1.2), this command works fine. (The reason I use it is that sometimes $feat contains a comma and a space at the end of the string, which I want to remove (if it's there) before echoing.) When this same script is run on my ISP (PHP

Re: [PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread Jason Wong
On Friday 05 July 2002 00:41, René Fournier wrote: echo rtrim($feat,, ); On my local Apache-OSX web server (PHP 4.1.2), this command works fine. (The reason I use it is that sometimes $feat contains a comma and a space at the end of the string, which I want to remove (if it's there) before

  1   2   >