Re: [PHP] Check type of uploaded file

2003-12-06 Thread Gerard Samuel
On Saturday 06 December 2003 11:01 pm, Richard Davey wrote: > Yes, check the $_FILES['userfile']['type'] after upload. > That can be spoofed. There isn't really a way to determine file types... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Persistence of session files

2003-12-06 Thread Chris Shiflett
--- Pablo Gosse <[EMAIL PROTECTED]> wrote: > Hi all. I'm wondering if anyone can tell me how long temporary > session files stay on the server after the session has ended if > session_destroy() is not called. This is defined in php.ini (session.gc_maxlifetime), and you can write your own garbage c

Re: [PHP] Help!session problem!

2003-12-06 Thread Chris Shiflett
--- ÎÚÓÐ ÎÞ <[EMAIL PROTECTED]> wrote: > Reproduce code: > --- > login.php: > $user_array=sybase_fetch_row($result); > session_start(); > session_register("user_array"); > ... > index.php: > session_start(); > $user_name=$user_array[1

[PHP] Persistence of session files

2003-12-06 Thread Pablo Gosse
Hi all. I'm wondering if anyone can tell me how long temporary session files stay on the server after the session has ended if session_destroy() is not called. I'm curious as part of the CMS I've been writing for the past year is a class which dynamically generates and validates all forms in the

[PHP] Help!session problem!

2003-12-06 Thread 乌有 无
Hello: I want your help! And i am pool in english! The session sometime works well,sometime works badly! It creates new empty file in /tmp.I also find this problem with apache1.3.12&php4.1.1&sybase11.9.2&linux My php.ini is fault my server config: php4.3.3 httpd2.0.44

RE: [PHP] Re: Random Numbers..

2003-12-06 Thread Burrito Warrior
No, I wouldn't do that. What if another quote gets deleted. The new assigned QuoteID would be 6 and your solution wouldn't work. This would: /* selecting a random record, where n = 1. Works fine on small tables */ mysql> SELECT value FROM table ORDER BY RAND() LIMIT n; /* selecting a random re

[PHP] Re: Random Numbers..

2003-12-06 Thread Alex
Theheadsage wrote: Hey, I've got a script which used to generate a random quote. It worked fine untill this problem occurred.. Say we have 4 quotes with QuoteID's of 1 through to 4 The script would grab a number of rows, and generate a random number between 1 and this value (being 4 in this case)

RE: [PHP] Apache 2 + PHP

2003-12-06 Thread Yves Arsenault
Thanks to all who replied! I will try to avoid using PHP 4 on Apache 2. Does PHP 5 look like it will suit apache 2 for production? Yves Arsenault Carrefour Infotech 5, Acadian Dr. Charlottetown, PEI C1C 1M2 [EMAIL PROTECTED] (902)368-1895 ext.242 -Original Message- From: Mike Morton [m

Re: [PHP] Check type of uploaded file

2003-12-06 Thread Richard Davey
Hello Bob, Sunday, December 7, 2003, 1:00:44 AM, you wrote: BH> I want to test an uploaded file to see if it is a text file, but I don't want BH> to rely on the presence of an os command such as 'file.' Is there a BH> straightforward way to do this within PHP? Thanks in advance. Yes, check the

Re: [PHP] Random Numbers.. [Solved, Ignore]

2003-12-06 Thread TheHeadSage
Sorry for this e-mail, When I wrote this, my e-mail server was down, and it was archived for sending. By the time the e-mail server was restored, I had solved this problem. - TheHeadSage - Original Message - From: "TheHeadSage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, Dece

[PHP] Random Numbers..

2003-12-06 Thread TheHeadSage
Hey, I've got a script which used to generate a random quote. It worked fine untill this problem occurred.. Say we have 4 quotes with QuoteID's of 1 through to 4 The script would grab a number of rows, and generate a random number between 1 and this value (being 4 in this case) This worked fine u

[PHP] Check type of uploaded file

2003-12-06 Thread Bob Hockney
Hi there, I want to test an uploaded file to see if it is a text file, but I don't want to rely on the presence of an os command such as 'file.' Is there a straightforward way to do this within PHP? Thanks in advance. -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Re: PHP & Variables

2003-12-06 Thread John Nichel
John W. Holmes wrote: Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. "Please learn HTML" is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), otherwise you'll be b

Re: [PHP] PHP & Variables

2003-12-06 Thread Justin Patrin
John W. Holmes wrote: echo ''; Or even *MORE* correct echo ''; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RedHat Linux - PHP - Interbase

2003-12-06 Thread Todd Cary
I am looking for someone that is running RH 9 Linux with Php & Interbase... Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Uploaded Picture Name

2003-12-06 Thread Steve Turner
I am having a slight problem with a picture upload script. I seems to work just fine except when the picture name has an apostrphe in the name. How do all of you deal with this problem. Do you just rename the file to something else when you upload it. Here is the script that I am using. It is calle

Re: [PHP] Re: PHP & Variables

2003-12-06 Thread John W. Holmes
Lloyd Bayley wrote: Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. "Please learn HTML" is offensive? Please... I even gave you the _correct_ answer that involves htmlentities(), otherwise you'll be back here with another qu

[PHP] Re: PHP & Variables

2003-12-06 Thread Lloyd Bayley
Greg, Sheesh! I had neglected to do that...I've been working with a few different languages and I'm starting to confuse them I think. Thanks for your non-offensive reply. It's nice to see that you can overlook the little failures we have now and again. Lloyd. :-) At 09:58 AM 7/12/2003, you wr

Re: [PHP] PHP & Variables

2003-12-06 Thread John W. Holmes
Lloyd Bayley wrote: echo ""; < This returns first word. Please learn HTML. The "value" should have quotes around it. echo ""; or, even MORE correct: echo ''; -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP P

Re: [PHP] PHP and IIS

2003-12-06 Thread John W. Holmes
V.B. de Haan wrote: I'm running IIS 5.0 on win 2000 professional. I want to include SSI and PHP code in one single file of HTML. How can I do this? The question is WHY you'd want to do this. Whatever you're doing in your SSI should just be done in PHP. -- ---John Holmes... Amazon Wishlist: www.am

[PHP] Re: PHP & Variables

2003-12-06 Thread Greg Beaver
Hi Lloyd, use "quote"s around your values echo ""; Regards, Greg -- phpDocumentor http://www.phpdoc.org Lloyd Bayley wrote: Greetings All, Have a small problem that I just can't work out. I know it's an easy one but it's got me stumped... I have some code to pull a question out of a database

[PHP] PHP & Variables

2003-12-06 Thread Lloyd Bayley
Greetings All, Have a small problem that I just can't work out. I know it's an easy one but it's got me stumped... I have some code to pull a question out of a database and display it on the screen. I also want to store it in a hidden var for use with the $_POST on the next page. Currently, th

Re: [PHP] memory_get_usage()

2003-12-06 Thread Gerard Samuel
On Saturday 06 December 2003 01:41 pm, Gerard Samuel wrote: > According to the manual, my example says the script starts off with 22k > bytes, then end up with 1.3M bytes at the end. (Now thats scalable :P) > But seriously, has anyone seen anything like this? > Tried it on FreeBSD 4.9/php 4.3.4 >

[PHP] PHP eregi filtering problem

2003-12-06 Thread PurpleOnyx
Greetings all, I ran into a problem today and was hoping someone could provide an answer. I am fetching a web page, and attempting to parse certain variables from it. I've done this plenty of times in the past with no problem. The only difference this time is the file that I am parsing is much l

Re: [PHP] Problem With Apache / PHP Installation

2003-12-06 Thread Shaun
"Ajai Khattri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, Dec 06, 2003 at 07:46:07PM -, Shaun wrote: > > > I have installed PHP and Apache but when i try to view a PHP file i.e. > > http://127.0.0.1/hello.php i get a dialog box asking me if i want to open or > > save

[PHP] Getting flush() to work with Safari & Internet Explorer in OS X

2003-12-06 Thread Gohaku
Hi everyone, I have a script that takes a long time to run and it uses flush(). Upon testing with Safari and Internet Explorer, I found out it doesn't work and other users have problems with this as well: http://forums.devshed.com/t86445/s.html I ran my script with Lynx, Links, and Omniweb, and t

Re: [PHP] Apache Installation Query

2003-12-06 Thread Brian V Bonini
On Sat, 2003-12-06 at 12:01, Shaun wrote: > "Brian V Bonini" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Sat, 2003-12-06 at 10:56, Shaun wrote: > > > Hi, > > > > > > I have just installed Apache on my local machine. However, when browsing > a > > > directory I get the listi

Re: [PHP] MySQL Dump using PHP

2003-12-06 Thread Justin Patrin
Cesar Aracena wrote: The thing is that I don't have phisical access to the server and it doesn't have telnet access either. What I want to achieve is to make a password protected page inside my site were a button is kept to start a full backup of my MySQL DB and after clicking on it, be able to se

Re: [PHP] MySQL Dump using PHP

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 06:02:40PM -0300, Cesar Aracena wrote: > The thing is that I don't have phisical access to the server and it doesn't > have telnet access either. What I want to achieve is to make a password > protected page inside my site were a button is kept to start a full backup > of m

Re: [PHP] MySQL Dump using PHP

2003-12-06 Thread Cesar Aracena
The thing is that I don't have phisical access to the server and it doesn't have telnet access either. What I want to achieve is to make a password protected page inside my site were a button is kept to start a full backup of my MySQL DB and after clicking on it, be able to select the Internet Expl

Re: [PHP] count()

2003-12-06 Thread Anthony Ritter
Marek Kilimajer <[EMAIL PROTECTED]> wrote in message: > There are 10 '[PAGEBREAK]' substrings in the string. If the string is > split apart at these substrings, it will give you total 11 parts. Thank you. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Apache Installation Query

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 03:56:49PM -, Shaun wrote: > I have just installed Apache on my local machine. However, when browsing a > directory I get the listing of it's contents rather than it defaulting to > the index.php file, is there a way to make this happen? Yes, you need to add index.php

Re: [PHP] MySQL Dump using PHP

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 04:39:22PM -0300, Cesar Aracena wrote: > I am wondering if someone could point me to the right functions to use to > make a script to dump all the tables in a specific MySQL DB. I need this to > keep a daily backup from my site as the hackers are screwing up my site very >

Re: [PHP] Problem With Apache / PHP Installation

2003-12-06 Thread Ajai Khattri
On Sat, Dec 06, 2003 at 07:46:07PM -, Shaun wrote: > I have installed PHP and Apache but when i try to view a PHP file i.e. > http://127.0.0.1/hello.php i get a dialog box asking me if i want to open or > save the file? > > Any ideas why this is happening? Assuming, your Apache is configured

Re: [PHP] new set of eyes?

2003-12-06 Thread Jas
Ok well I think I have it partially solved... $table = "settings"; $db_vlans = array("hosts01","hosts02","hosts03","hosts04","hosts05","hosts06","hosts07","hosts08","hosts09","hosts10"); $vlans = array("VLAN-22","VLAN-27","VLAN-29","VLAN-56","VLAN-57","VLAN-151","VLAN-314","Empty-01","Empty-02",

[PHP] Problem With Apache / PHP Installation

2003-12-06 Thread Shaun
Hi, I have installed PHP and Apache but when i try to view a PHP file i.e. http://127.0.0.1/hello.php i get a dialog box asking me if i want to open or save the file? Any ideas why this is happening? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] MySQL Dump using PHP

2003-12-06 Thread Cesar Aracena
Hi all, I am wondering if someone could point me to the right functions to use to make a script to dump all the tables in a specific MySQL DB. I need this to keep a daily backup from my site as the hackers are screwing up my site very often these days. Thanks in advanced,

Re: [PHP] Problems downloading files via https in IE 6

2003-12-06 Thread Kelly Hallman
On Sat, 6 Dec 2003, Geoffrey Thompson wrote: > header("Content-Type:application/csv"); > header("Content-Disposition:attachment; filename=downloadFile.csv"); > header("Content-Transfer-Encoding:binary"); > fpassthru($fp); > > This works great in Mozilla and IE 6 via http, and it works in M

Re: [PHP] new set of eyes?

2003-12-06 Thread Jas
I should probably clarify a bit more on the data in the field and what I am trying accomplish.. First the data: host dhcp-01 { hardware ethernet 00:D0:B7:BD:D2:8D; fixed-address 155.97.1.190; } host dhcp-02 { hardware ethernet 00:02:B3:A2:B6:FD; fixed-address 155.97.1.191; } Second the plan: Try

[PHP] PHP and IIS

2003-12-06 Thread V.B. de Haan
Hi all, I'm running IIS 5.0 on win 2000 professional. I want to include SSI and PHP code in one single file of HTML. How can I do this? Vincent

Re: [PHP] new set of eyes?

2003-12-06 Thread David Otton
On Sat, 06 Dec 2003 11:38:18 -0700, you wrote: >I think I am loosing my mind this afternoon... could someone review this >snippit and tell me why it isn't working? > >$sql = mysql_query("SELECT $i FROM $table WHERE $i = $i",$db)or >die(mysql_error()); > while($b = mysql_fetch_array($sql))

Re: [PHP] new set of eyes?

2003-12-06 Thread olinux
try this: $ar = array(); while ($row = mysql_fetch_assoc($sql)) { $ar[] = $row; } olinux --- Jas <[EMAIL PROTECTED]> wrote: > I think I am loosing my mind this afternoon... could > someone review this > snippit and tell me why it isn't working? > > $sql = mysql_query("SELECT $i FROM $table

[PHP] memory_get_usage()

2003-12-06 Thread Gerard Samuel
First time trying out this function, but the output doesnt make any sense to me. An example -> '; /* PHP CODE HERE WITH A BUNCH OF INCLUDES/CLASSES/SMARTY ETC */ echo memory_get_usage(); ?> Gives me -> 22408 1347416 According to the manual, my example says the script starts off with 22k bytes

[PHP] new set of eyes?

2003-12-06 Thread Jas
I think I am loosing my mind this afternoon... could someone review this snippit and tell me why it isn't working? $sql = mysql_query("SELECT $i FROM $table WHERE $i = $i",$db)or die(mysql_error()); while($b = mysql_fetch_array($sql)) { while($ar = current($b) != 0) { $v = array(); list

Re: [PHP] Not able to execute Linux binary

2003-12-06 Thread Jason Wong
On Saturday 06 December 2003 12:56, Karam Chand wrote: > looking at manuals and help and some help from you. i > wrote the attached code- > > error_reporting (E_ALL); > ini_set('display_errors', 1); > > $result = `./myapp`; > print_r ( $result ); > > echo ( "2" ); > > exec("./myapp",$r

Re: [PHP] Not able to execute Linux binary

2003-12-06 Thread Mike
have you tried using the full path to the executable (eg /usr/bin/myapp rather than ./myapp)? Mike On Sat, 2003-12-06 at 04:56, Karam Chand wrote: > Hello > > looking at manuals and help and some help from you. i > wrote the attached code- > > error_reporting (E_ALL); > ini_set('display_err

[PHP] Re: password protection/encryption

2003-12-06 Thread Jas
Some questions to ask yourself... 1. Am I storing personally identifiable information (eg. Names, addresses, phone numbers, email addresses, credit card data)? 2. Will this data be stored in a text file or database? 3. Is this text file or database directly connected to the internet? 4. What type

[PHP] password protection/encryption

2003-12-06 Thread Chris Mach
Greetings, I'm working on a project that involves a password protected area of a website. Some one also involved brought up the point that this area should be secure (Whit the lock icon indicating it is encrypted). In this particular project the password protected area will be a quote generating

Re: [PHP] Apache Installation Query

2003-12-06 Thread Shaun
"Brian V Bonini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 2003-12-06 at 10:56, Shaun wrote: > > Hi, > > > > I have just installed Apache on my local machine. However, when browsing a > > directory I get the listing of it's contents rather than it defaulting to > > the

[PHP] Problems downloading files via https in IE 6

2003-12-06 Thread Geoffrey Thompson
I posted this once under another subject, but didn't get any responses. I'm stuck on this, and could really use some help. I have the following php code for downloading a file to the user via the browser: // Open csv file. $fp = fopen("fileOnServer.csv", "r"); // Set headers for csv downl

Re: [PHP] Apache Installation Query

2003-12-06 Thread Brian V Bonini
On Sat, 2003-12-06 at 10:56, Shaun wrote: > Hi, > > I have just installed Apache on my local machine. However, when browsing a > directory I get the listing of it's contents rather than it defaulting to > the index.php file, is there a way to make this happen? > > Thanks for your help move to yo

Re: [PHP] Apache Installation Query

2003-12-06 Thread zhuravlev alexander
On Sat, Dec 06, 2003 at 03:56:49PM -, Shaun wrote: > Hi, > > I have just installed Apache on my local machine. However, when browsing a > directory I get the listing of it's contents rather than it defaulting to > the index.php file, is there a way to make this happen? DirectoryIndex

[PHP] Apache Installation Query

2003-12-06 Thread Shaun
Hi, I have just installed Apache on my local machine. However, when browsing a directory I get the listing of it's contents rather than it defaulting to the index.php file, is there a way to make this happen? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] query_data

2003-12-06 Thread Randy Johnson
oh my gosh, I have been coding php for 4 years now. They way I did it before I saw in numerous examples from the books that I had bought. I think of all the code I have wrote and I did not even have to do it that way. Thanks a bunch, Randy - Original Message - From: "John W. Holmes" <[

[PHP] Re: POST upload script timeout

2003-12-06 Thread Eric Bolikowski
"Iain Staffell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a script on my local machine to allow friends to send me files, as IM > or FTP transfers don't work, and so I would like to accept reasonably large > files (10mb max). I followed some of the examples shown around

Re: [PHP] query_data

2003-12-06 Thread John W. Holmes
Randy Johnson wrote: I have a query $query="select a,b,c,d,e from table where id='z'"; $result=mysql_query(); $query_data=mysql_fetch_array($result); I normally would do this: $a=$query_data["a"]; etc.. is there a way to do this is in a loop so I do not have to do all that typing? You already ha

Re: [PHP] query_data

2003-12-06 Thread zhuravlev alexander
On Sat, Dec 06, 2003 at 09:34:24AM -0500, Randy Johnson wrote: > I have a query > > $query="select a,b,c,d,e from table where id='z'"; > $result=mysql_query(); > > $query_data=mysql_fetch_array($result); > > I normally would do this: > > $a=$query_data["a"]; > etc.. > > is there a way to do t

[PHP] RSS pagenting (was PHP RSS sites and SlashDot)

2003-12-06 Thread Ryan A
Hi again everyone, Thank you to everyone who replied with suggestions and locations for getting RSS feeds, from your own sites and from others, some good and some.not so good :-D We have finally decided on around 12 differient feeds/places for 3-5 differient pages on the new site. Nearly al

Re: [PHP] Local PHP installation conflict

2003-12-06 Thread Shaun
"Zhuravlev Alexander" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, Dec 06, 2003 at 02:07:53PM -, Shaun wrote: > > Hi, > > Hi! > > > > I have been running my site successfully on a remote server for sometime > > now. However I have just installed PHP, MySQL and Apache o

[PHP] query_data

2003-12-06 Thread Randy Johnson
I have a query $query="select a,b,c,d,e from table where id='z'"; $result=mysql_query(); $query_data=mysql_fetch_array($result); I normally would do this: $a=$query_data["a"]; etc.. is there a way to do this is in a loop so I do not have to do all that typing? Thanks Randy -- PHP General M

Re: [PHP] Local PHP installation conflict

2003-12-06 Thread zhuravlev alexander
On Sat, Dec 06, 2003 at 02:07:53PM -, Shaun wrote: > Hi, Hi! > > I have been running my site successfully on a remote server for sometime > now. However I have just installed PHP, MySQL and Apache on my local Windows > XP Pro machine and when I try to log on to my site I get the follo

[PHP] Local PHP installation conflict

2003-12-06 Thread Shaun
Hi, I have been running my site successfully on a remote server for sometime now. However I have just installed PHP, MySQL and Apache on my local Windows XP Pro machine and when I try to log on to my site I get the following errors: Warning: session_start(): open(/tmp\sess_3bfb39a88b7b180b859aa17

[PHP] POST upload script timeout

2003-12-06 Thread Iain Staffell
I have a script on my local machine to allow friends to send me files, as IM or FTP transfers don't work, and so I would like to accept reasonably large files (10mb max). I followed some of the examples shown around the net, but continually found that the file would completely upload before giving

Re: [PHP] Apache 2 + PHP

2003-12-06 Thread Mike Morton
Yves: I am not sure of the exact technical issues that affect it, but when I was forced to use it in a production environment (does anyone actually admit to CHOOSING to use it? anyway) I received a lot of errors on includes, intermittently. This was most noticable when using phpmyadmin - but

Re: [PHP] count()

2003-12-06 Thread Marek Kilimajer
Anthony Ritter wrote: Greetings- I'm have the follwing string called $text and throughout this string I'd like to split this into an array by calling spliti() at the tag called PAGEBREAK. So, I count the array elements starting at 0 and get to 9. When I call count(), I get 11. Could somebody pleas

php-general Digest 6 Dec 2003 12:54:36 -0000 Issue 2457

2003-12-06 Thread php-general-digest-help
php-general Digest 6 Dec 2003 12:54:36 - Issue 2457 Topics (messages 172032 through 172054): Maximum execution time 172032 by: John J Foerch 172033 by: Pablo Gosse 172038 by: James Hicks Re: Spamming bastardly problem, please help 172034 by: John Nichel

[PHP] Can't exec() a program that uses mem alloc?

2003-12-06 Thread Iain Staffell
I am trying tooth and nail to create a method of copying a string of text to the server's clipboard via php. I have found a couple of short pieces of code to do exactly that in C, so compiled the program and in a command prompt it works like a charm - in my case it reads the contents of a text fil

Re: [PHP] PHP RSS sites and SlashDot

2003-12-06 Thread Burhan Khalid
Ryan A wrote: Hi, I am totally new to using RSS feeds and need a little help. I downloaded a few good classes to use RSS but dont know where to get the feeds from... Say hello to www.syndic8.com :D (had the same problem trying to get a list of feeds for my own non-commercial site) our site is goi

Re: [PHP] Apache 2 + PHP

2003-12-06 Thread Seung Hwan Kang
it doesn't matter! whatever u think, and what your job is. it's all up to IT manager(?) are they listen to us or do they know what's the newest verion in php or mysql. i wouldn't think so (it got to kidding!) as we are professional... we got to act like a real prof. but.. ? here u go! my dev. env

Re: [PHP] converting string into array with regex

2003-12-06 Thread Adam i Agnieszka Gasiorowski FNORD
"CPT John W. Holmes" wrote: > From: "Adam i Agnieszka Gasiorowski FNORD" <[EMAIL PROTECTED]> > > > No, no spaces between letters (otherways > > it would be very easy, indeed). So there is > > no way to match the "space between alphanumeric > > chars" and split on it? I was trying to avoid >

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-06 Thread Anas Mughal
I figured it out! I was loading the wrong file (slap-on-the-forehead). Sorry about my last email. Curt, thank you for helping me out. Now, my first dummy extension is working :)) Anas Mughal wrote: Okay, solved that as well. SED environment variable was not defined! How come I had to define

Re: [PHP] dl(): Invalid library (maybe not a PHP library)

2003-12-06 Thread Anas Mughal
Okay, solved that as well. SED environment variable was not defined! How come I had to define it myself?! Shouldn't the build process take care of that? Anyway, now when I try to load the extension my_ext.la in my PHP as follows: if(!extension_loaded('my_ext')) { dl('my_ext.la'); } I get