[PHP] Re: Passing or not passing SID in links etc

2003-12-22 Thread Jasper Bryant-Greene
No, that will work fine. Just having ? at the end of the URL just means an empty querystring - same as if you had nothing there. Regards Jasper Bryant-Greene Cabbage Promotions http://fatalnetwork.com/ [EMAIL PROTECTED] Gerard Samuel wrote: Im currently modifying templates to include the SID

Re: [PHP] Passing or not passing SID in links etc

2003-12-22 Thread Gerard Samuel
On Monday 22 December 2003 01:20 am, Gerard Samuel wrote: My question is, are there any known problems with just having '?' at the end of urls/links? Don't worry, I think I figured out another way... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] serialize and unserialize

2003-12-22 Thread webmaster
Hello all i need a little help with serialize and unserialize here is my code ?php session_start(); if(!isset($_COOKIE['data'])) { //Check to see if cookie is there. include(cookie_num.dat); $y = $password; //Assign a special number

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Andreas Korthaus
Hi! Andreas Magnusson wrote: I'm writing a script to view/download an email-attachment. If the file happens to be an MS Word document and the browser IE (only tried with 6.0), then the download fails. If I choose to download (Content-Disposition: attachment; filename=whatever.doc) then only

Re: [PHP] Re: Passing or not passing SID in links etc

2003-12-22 Thread Gerard Samuel
On Monday 22 December 2003 02:14 am, Jasper Bryant-Greene wrote: No, that will work fine. Just having ? at the end of the URL just means an empty querystring - same as if you had nothing there. Regards Thanks. My other idea didn't pan out, so Im going back to this idea. Back to work for

[PHP] Https

2003-12-22 Thread Homer
Hello! I have search for info in this group about this topic and found it but can't get working my program. These are the steps I have done: 1º Download and install latest php version (4.3.4) 2º Test that it works (IIS) 3º Change php.ini: extension_dir = install_dir/extensions/ uncomment

[PHP] New member

2003-12-22 Thread Kovy
Hi! I'm new here. Where found I listarchive? Otherwise I'm looking for mailing list develope with php (SMTP or...) Regards, Janos from HU -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 22 Dec 2003 08:54:25 -0000 Issue 2487

2003-12-22 Thread php-general-digest-help
php-general Digest 22 Dec 2003 08:54:25 - Issue 2487 Topics (messages 173112 through 173138): Re: [posibleOT] Forcing entering te site thru index.php 173112 by: Andreas Magnusson 173114 by: Eugene Lee HTTP headers, IE and downloading 173113 by: Andreas Magnusson

[PHP] include_path

2003-12-22 Thread Alain Williams
Is there a way of modifying the include_path within a script, I want to add to it, not completely change it. The sort of thing that I want to do is equivalent to the following bit of shell code: PATH=$HOME/bin:$PATH ie add a user specific part to the path - so that a production/test

RE: [PHP] include_path

2003-12-22 Thread Chris Hobden
set_include_path(get_include_path().:/new/incude/path); -Original Message- From: Alain Williams [mailto:[EMAIL PROTECTED] Sent: 22 December 2003 10:16 To: [EMAIL PROTECTED] Subject: [PHP] include_path Is there a way of modifying the include_path within a script, I want to add

[PHP] Small riddle with classes and references, or bug?

2003-12-22 Thread rush
Hello, I have a problem understanding following chunk of code. It seems that global $rme does not remember an reference to $this, but instead it is remembering null or something like that: ?PHP class A { function rememberMe() { global $rme; $rme = $this;

Re: [PHP] Small riddle with classes and references, or bug?

2003-12-22 Thread messju mohr
On Mon, Dec 22, 2003 at 11:57:58AM +0100, rush wrote: Hello, I have a problem understanding following chunk of code. It seems that global $rme does not remember an reference to $this, but instead it is remembering null or something like that: ?PHP class A { function

[PHP] Can't use HTTPS with fgets

2003-12-22 Thread Homer
Hello! I have search for info in this group about this topic and found it but can't get working my program. These are the steps I have done: 1º Download and install latest php version (4.3.4) 2º Test that it works (IIS) 3º Change php.ini: extension_dir = install_dir/extensions/ uncomment

Re: [PHP] Small riddle with classes and references, or bug?

2003-12-22 Thread rush
Messju Mohr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] this creates a reference from $rme to $GLOBALS['rme'] $rme = $this; this create a *new* reference from $rme to $this. so only a local $rme is referencing $this now. change the line to

Re: [PHP] New member

2003-12-22 Thread David T-G
Janos -- ...and then Kovy said... % % Hi! Hi, and welcome to the list! We're glad to have you. In the future, though, please don't just reply to any old list message and start a new subject; it doesn't really separate your message from its parents. % % I'm new here. Where found I

[PHP] debugger listener

2003-12-22 Thread Alberto M.
php 4.3.0 + apache + linux suse 8.2 I tried to install xdebug (http://www.xdebug.org/install.php) as an precompiled module, but it seems not running when I did reload apache. I mean, I can't see it in the module list in phpinfo() page. Also, I don't know how to catch up events sent by debugger,

Re: [PHP] debugger listener

2003-12-22 Thread Alberto M.
Alberto M. wrote: php 4.3.0 + apache + linux suse 8.2 I tried to install xdebug (http://www.xdebug.org/install.php) as an precompiled module, but it seems not running when I did reload apache. I mean, I can't see it in the module list in phpinfo() page. Also, I don't know how to catch up events

[PHP] sorting multi-dimensional arrays

2003-12-22 Thread Phil Ewington - 43 Plc
Hi All, I am trying to sort a multi-dimensional array using a value in the second dimension. I have looked at the usort examples but don't fully understand what usort is actually doing so am struggling. I have tried the following: if (! getmxrr($this-_Domain, $as_hosts, $ai_weights)) {

RE: [PHP] sorting multi-dimensional arrays

2003-12-22 Thread Phil Ewington - 43 Plc
Ooops, forgot to specify the compare function with usort(); all working now. Phil. -Original Message- From: Phil Ewington - 43 Plc [mailto:[EMAIL PROTECTED] Sent: 22 December 2003 14:08 To: [EMAIL PROTECTED] Subject: [PHP] sorting multi-dimensional arrays Hi All, I am trying to sort

[PHP] combining two variables to make one???

2003-12-22 Thread Tristan . Pretty
I want to out put three bits of text... I want my end page to look like this... = result 1 result 2 result 3 = here's the code I've got... === ? $i = 1; while ($i = 3) { $options$i = result $i; } ? html body ?=$option1 ? ?=$option2 ? ?=$option3 ?

[PHP] Apache 2.0.48 won't play nice with php 4.3.4 ?

2003-12-22 Thread Danny Anderson
Hola, PHP folk! I hope this is an appropriate forum for this: I am setting up a Redhat 9 webserver to serve as my testbed for a little php/mysql app I want to develop. I installed RH9 without the webserver/php/mysql so I could manually install the most current versions. MySQL 4.0.16 installed

Re: [PHP] combining two variables to make one???

2003-12-22 Thread Chris Boget
? $i = 1; while ($i = 3) { $options$i = result $i; } ? You want this: ${$options{$i}} = result $i; For the sake of clarity I typically do something like the following: $i = 1; while ($i = 3) { $varName = $options . $i; ${$varName} = result $i; } Chris -- PHP General Mailing

[PHP] How can i build e-commerce site with php?

2003-12-22 Thread pehepe php
Hello. How can i build e-commerce site with php. Do you know any source,documentation,e-book. Please help me. if you use msn messenger, please add me your contact list. messenger : [EMAIL PROTECTED] _ MSN 8 with e-mail virus

[PHP] Re: How can i build e-commerce site with php?

2003-12-22 Thread pete M
go and check out www.hotscripts.com - there's load of ecomerecce scripts there. regards Pete Pehepe Php wrote: Hello. How can i build e-commerce site with php. Do you know any source,documentation,e-book. Please help me. if you use msn messenger, please add me your contact list. messenger :

Re: [PHP] combining two variables to make one???

2003-12-22 Thread Tristan . Pretty
Cheers... Doesn't work for me though...? What do the '{' mean when declaring the variable? Chris Boget [EMAIL PROTECTED] 22/12/2003 14:16 To [EMAIL PROTECTED], [EMAIL PROTECTED] cc Subject Re: [PHP] combining two variables to make one??? ? $i = 1; while ($i = 3) { $options$i =

Re: [PHP] combining two variables to make one???

2003-12-22 Thread Chris Boget
Doesn't work for me though...? Which isn't working? This: ${$options{$i}} = result $i; or this: $i = 1; while ($i = 3) { $varName = $options . $i; ${$varName} = result $i; } What do the '{' mean when declaring the variable? I can't remember where it is in the documentation, but

Re: [PHP] combining two variables to make one???

2003-12-22 Thread Tristan . Pretty
I am a monkey... I had me angle bracket the wrong way round... what a stoner...! Chris Boget [EMAIL PROTECTED] 22/12/2003 15:04 To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: [PHP] combining two variables to make one??? Doesn't work for me though...? Which isn't working?

[PHP] user running PHP

2003-12-22 Thread Niklas Saers
Hi, I've got an Apache 2 setup with PHP 4.3.4 running many virtual hosts. Each user has a virtual host of his own, and many use php. I've set SuexecUserGroup to the username and group of the individual user, yet running phpinfo() as that user reveals under section apache2handler that it runs as

[PHP] sorting a mulit-dimensional array

2003-12-22 Thread Chakravarthy Cuddapah
Can anyone pls tell me with an example on how to select distinct values from a multi-dimensional array. Moving distinct values into another array is ok. Thanks !

[PHP] need help getting one variable

2003-12-22 Thread webmaster
hello all i need help to enter one variable in a cookie and then retreive it back later, i know this probably sounds dumb to most but this is really the first time ive tried working with cookies so please bear with me, thanks for any help.

Re: [PHP] serialize and unserialize

2003-12-22 Thread Marek Kilimajer
You should use stripslashes to get rid of escaped characters in $_COOKIE['data']. Then remember to use addslashes when you want to use $data or $chksum in sql queries. [EMAIL PROTECTED] wrote: Hello all i need a little help with serialize and unserialize here is my code ?php

Re: [PHP] need help getting one variable

2003-12-22 Thread Matt Matijevich
[snip] hello all i need help to enter one variable in a cookie and then retreive it back later, i know this probably sounds dumb to most but this is really the first time ive tried working with cookies so please bear with me, thanks for any help. [/snip] this should give you a good start

[PHP] Working pop-up progress window

2003-12-22 Thread Ed Curtis
I've read through the archives and run through some of the suggestions given for progress bars and pop ups with animated gifs and haven't had much luck. I've had the most luck using the pop-up window method. In the form element I call onSubmit={open some window here} This works as the pop-up

RE: [PHP] Working pop-up progress window

2003-12-22 Thread Steve Murphy
Hi Ed, Every time I see someone ask about an upload meter a hardcore programmer writes back saying no one ever asks for it so why should anyone work on one? I have a demo up of what you might be looking for, check it out here: http://www.pfohlsolutions.com/projects/upload/ You will need to

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Matt Matijevich
[snip] I've had the most luck using the pop-up window method. In the form element I call onSubmit={open some window here} This works as the pop-up appears while the file is transferring. Here's where I run into problems. I've tried all kinds of examples found on google and can never get it to

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Ed Curtis
If I understand you correctly, when you call window.close on the next page you want it to close the child window. I am not sure if this is possible with Javascript if you go to a new page, it might be. You would want to not call window.close but something like myPopUp.close() on the next

[PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 Line 871: mysql_query(INSERT INTO domainregistrations (domain,type,years,price) VALUES

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Sam Masiello
Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren wrote: Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 Line 871: mysql_query(INSERT INTO domainregistrations

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, Tyler On Mon, 2003-12-22 at 12:30, Sam Masiello wrote: Perhaps it doesn't like the fact that you don't have quotes around your array keys? --Sam Tyler Longren

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Andreas Magnusson
Thanks for your reply! Have a look at: http://pear.php.net/package/HTTP_Download I looked at it and it's hard to see what it does differently from what I do... And the first comment of: http://www.php.net/manual/en/function.session-cache-limiter.php Thanks, I've read that and I'm not using

[PHP] reading excell and writing to text file..

2003-12-22 Thread Andrew Kwiczola
I was wondering a good place I could get started on reading excel spreadsheets in PHP ive seen a couple of things out there that will take data from the web and transform it into a .xls file. I was wondering if I could take a XLS file with php and read it, and rip out certain data from it :-) but

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Matt Matijevich
[snip] Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, Tyler [/snip] What happens if you comment out the mysql statement and just echo the variables? echo $_POST[domainregister_domain$i]

Re: [PHP] reading excell and writing to text file..

2003-12-22 Thread Matt Matijevich
[snip] I was wondering a good place I could get started on reading excel spreadsheets in PHP ive seen a couple of things out there that will take data from the web and transform it into a .xls file. I was wondering if I could take a XLS file with php and read it, and rip out certain data from it

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread John W. Holmes
Tyler Longren wrote: Error: Parse error: parse error, expecting `']'' in /usr/local/apache/htdocs/UP/index.php on line 871 ('$_POST[domainregister_domain$i]', If you're going to be creating array keys like that, break out of the string to do it. (' . $_POST['domainregister_domain' . $i] . ', ...

Re: [PHP] reading excell and writing to text file..

2003-12-22 Thread John W. Holmes
Andrew Kwiczola wrote: I was wondering a good place I could get started on reading excel spreadsheets in PHP ive seen a couple of things out there that will take data from the web and transform it into a .xls file. I was wondering if I could take a XLS file with php and read it, and rip out

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Marek Kilimajer
Ed Curtis wrote: If I understand you correctly, when you call window.close on the next page you want it to close the child window. I am not sure if this is possible with Javascript if you go to a new page, it might be. You would want to not call window.close but something like myPopUp.close()

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Hi Matt, I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. The reason I'm doin it like this is cuz I'm dynamically generating forms, and lots of the fields are the same,

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread Tyler Longren
Doing this fixed it: mysql_query(INSERT INTO domainregistrations (domain,type,years,price) VALUES ('$_POST[domainregister_domain]$i','$_POST[domainregister_type]$i','$_POST[domainregister_years]$i','$_POST[domainregister_price]$i')); I just moved the $i to the outside of the [] and it works now.

[PHP] Re: PHP LDAP query - need to add Exchange fields

2003-12-22 Thread Phil Dowson
Ben, I was trying the same thing, but I am not sure you are using the same setup as me. My office runs a windows 2000 domain with a Exchange server 2000 box. All profile information is stored in the windows 2000 domain controller, and the exchange server accesses the information from there.

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Matt Matijevich
[snip] I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. [/snip] I should have mentioned this in my last email. You should try a print_r of the $_POST array. print pre;

[PHP] Re: progress in php (was Re: [PHP] Working pop-up progress window)

2003-12-22 Thread David T-G
Steve, et al -- ...and then Steve Murphy said... % % Every time I see someone ask about an upload meter a hardcore programmer writes back saying no one ever asks for it so why should anyone work on one? I have a demo up of what you might be looking for, check it out here: Heh :-) I always

Re: [PHP] Parse error in mysql_query()

2003-12-22 Thread John W. Holmes
Tyler Longren wrote: Hi Matt, I put this right above like 871: print brbr$_POST[domainregister_domain$i]brbr; So now that print line is 871. It produces the exact same error as the mysql_query() line. The reason I'm doin it like this is cuz I'm dynamically generating forms, and lots of the

[PHP] evaluating a variable

2003-12-22 Thread Carey Baird
Hey, I have stored the name of a function as a variable. I have then passed the variable to another function as follows: //put function name in a variable $contentfunction = newsadmincontent(); //pass variable to another function Html_content($contentfunction); //function is: function

[PHP] onChange

2003-12-22 Thread Chakravarthy Cuddapah
I have 2 list fields in a form. The second is populated basing on selection in field 1. Can anyone pls tell me how to do this in PHP ?

Re: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
On Mon, 2003-12-22 at 12:36, Carey Baird wrote: Hey, I have stored the name of a function as a variable. I have then passed the variable to another function as follows: //put function name in a variable $contentfunction = newsadmincontent(); //pass variable to another function

Re: [PHP] evaluating a variable

2003-12-22 Thread Matt Matijevich
try eval($contentfunction); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] onChange

2003-12-22 Thread Larry E . Ullman
I have 2 list fields in a form. The second is populated basing on selection in field 1. Can anyone pls tell me how to do this in PHP ? You can't do this with PHP. PHP is server side which means it only reacts after a request has been made to the server (by loading a Web page or submitting a

RE: [PHP] Re: progress in php (was Re: [PHP] Working pop-up progress window)

2003-12-22 Thread Steve Murphy
David, A window will popup with the progress meter. Obviously don't block popups and try using a larger file if you have a high speed line, it takes a second for the meter to start and if the upload is done it won't popup properly. Steve -Original Message- From: David T-G

RE: [PHP] evaluating a variable

2003-12-22 Thread Carey Baird
Eval ($contentfunction); gave me a parse error: Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145) : eval()'d code on line 1 $$contentfunction didnt output anything Any other ideas? -Original Message- From: Brad Pauly [mailto:[EMAIL PROTECTED] Sent: 22

Re: [PHP] onChange

2003-12-22 Thread Matt Matijevich
[snip] I have 2 list fields in a form. The second is populated basing on selection in field 1. Can anyone pls tell me how to do this in PHP ? [/snip] you can't, onchange is fired with javascript on the client. You have a number of ways you can do it a few are. 1. have on change submit the form

RE: [PHP] reading excell and writing to text file..

2003-12-22 Thread jon
Hey there... Are you using a windows server? If so, I can provide you with code examples as to how to select fields and write new excel docs using the COM stuff built into windows. For linux, things get a little bit more complicated -- really, you just need some sort of external app to do the

RE: [PHP] evaluating a variable

2003-12-22 Thread Matt Matijevich
[snip] Eval ($contentfunction); gave me a parse error: Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145) : eval()'d code on line 1 [/snip] try to add a semicolon to the end of the variable $contentfunction = newsadmincontent();; -- PHP General Mailing List

RE: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
On Mon, 2003-12-22 at 12:43, Carey Baird wrote: Eval ($contentfunction); gave me a parse error: Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145) : eval()'d code on line 1 $$contentfunction didnt output anything Any other ideas? What are you trying to do

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Marek Kilimajer
Did you try session_cache_limiter('private_no_expire')? Andreas Magnusson wrote: Thanks for your reply! Have a look at: http://pear.php.net/package/HTTP_Download I looked at it and it's hard to see what it does differently from what I do... And the first comment of:

Re: [PHP] evaluating a variable

2003-12-22 Thread John W. Holmes
Carey Baird wrote: Hey, I have stored the name of a function as a variable. I have then passed the variable to another function as follows: //put function name in a variable $contentfunction = newsadmincontent(); Take off the parenthesis... $contentfunction = 'newsadmincontent'; To call the

Re: [PHP] Re: progress in php

2003-12-22 Thread David T-G
Steve -- ...and then Steve Murphy said... % % David, % A window will popup with the progress meter. Obviously don't block popups and try using a larger file if you have a high speed line, it takes a second for the meter to start and if the upload is done it won't popup properly. Ah. Since I

Re: [PHP] evaluating a variable

2003-12-22 Thread Brad Pauly
On Mon, 2003-12-22 at 13:09, John W. Holmes wrote: Carey Baird wrote: Hey, I have stored the name of a function as a variable. I have then passed the variable to another function as follows: //put function name in a variable $contentfunction = newsadmincontent(); Take off the

[PHP] overload() problem

2003-12-22 Thread Cliff Wells
I'm trying to write a class for abstracting some aspects of database programming and am running into a problem: http://hashphp.org/pastebin.php?pid=567 The code works fine for the first instantiation of the DbTable (Product) class, but not the second. It seems clear that the reason it works the

RE: [PHP] Re: progress in PHP

2003-12-22 Thread Steve Murphy
Well its actually a pure PHP upload meter it just uses JS to open the window. You could make PHP open the window as well with a little tweaking. -Original Message- From: David T-G [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 3:16 PM To: [EMAIL PROTECTED] Cc: Steve Murphy

Re: [PHP] Re: progress in PHP

2003-12-22 Thread David T-G
Steve, et al -- ...and then Steve Murphy said... % % Well its actually a pure PHP upload meter it just uses JS to open the window. You could make PHP open the window as well with a little tweaking. Now that might interest me. So what has been added to the PHP codebase that makes this work?

[PHP] Re: sorting a mulit-dimensional array

2003-12-22 Thread Matt Grimm
Your subject line raises a completely different question than your message. Are you looking to sort a multi-dimensional array or select distinct values from one? -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508

[PHP] Re: Fetch Information Via a link

2003-12-22 Thread Eric Holmstrom
Thankyou, put me on the right track :) Jasper Bryant-Greene [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Eric What you need to do is make another PHP page, maybe info.php, which will fetch the info field from the DB and display it. So for example, assuming the eventname

RE: [PHP] Re: progress in PHP

2003-12-22 Thread Chris W. Parker
Steve Murphy mailto:[EMAIL PROTECTED] on Monday, December 22, 2003 1:03 PM said: Well its actually a pure PHP upload meter it just uses JS to open the window. You could make PHP open the window as well with a little tweaking. Unless I'm missing something here this is incorrect. PHP does

Re: [PHP] Re: progress in PHP

2003-12-22 Thread Ed Curtis
Now that might interest me. So what has been added to the PHP codebase that makes this work? And what tweaking would I need to do? [Can't I just have it display in the current window? Why bother with a popup?] From rumors I've heard on the list a future version of PHP may have a progress

[PHP] post var check failing?

2003-12-22 Thread Jas
Not sure why it isn't checking my post vars correctly... any help is appreciated. Thanks in advance Jas while($a = mysql_fetch_array($x)) { list($_SESSION['id01'],$hn,$ma,$i,$v) = $a; } $_SESSION['search'] = ...new form with listed vars...; } elseif ((empty($_POST['hosts01']))

[PHP] Boolean Searches using PHP and using File System fgetss

2003-12-22 Thread Vernon
I'm wondering if anyone knows of a good file system script that allows some one to do searches on files in a directory. For instance I'm storing resumes in folder defined on upload dates and so forth and want to be able to do searches through these files for keywords and would like to be able to

Re: [PHP] overload() problem

2003-12-22 Thread Cliff Wells
Cliff Wells wrote: I'm trying to write a class for abstracting some aspects of database programming and am running into a problem: http://hashphp.org/pastebin.php?pid=567 Well, I kept hacking at it and changing the describe() method from this: // get a description of a table function

[PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH PHP

2003-12-22 Thread Dale Hersh
I am having a really unusual problem. In my database, I currently have string such as: I went to the store and bought some food. I then decided to go to the movies and I saw Bad Boy II. When I extract the data out of the database, the data always seems to get cutoff. In other words, I will only

[PHP] using PDI to pull from data already read into a variable?

2003-12-22 Thread Larry Brown
I have written scripts to upload pdf files into mysql. I have the scripts created to access those files and produce them for the user on the fly. All well and good. Now I have a need to access one of those files and insert its contents into a new pdf report. I have purchased the PDFlib+PDI and

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Andreas Korthaus
Hi! Andreas Magnusson wrote: Have a look at: http://pear.php.net/package/HTTP_Download I looked at it and it's hard to see what it does differently from what I do... Use Ethereal or your own tracer to find out! And compare to a direct request to a real file! AFAIK the headers sent here are:

RE: [PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH PHP

2003-12-22 Thread Larry Brown
Is your field too small? MySQL doesn't complain when you give it a string longer than it can accept based on the field's size. It just cuts off what doesn't fit :-) -Original Message- From: Dale Hersh [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 6:50 PM To: [EMAIL

RE: [PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH PHP

2003-12-22 Thread Chris W. Parker
Larry Brown mailto:[EMAIL PROTECTED] on Monday, December 22, 2003 3:59 PM said: Is your field too small? MySQL doesn't complain when you give it a string longer than it can accept based on the field's size. It just cuts off what doesn't fit :-) Uhh... he stated in his original email

RE: [PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH PHP

2003-12-22 Thread Larry Brown
My bad, didn't read far enough... -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 7:04 PM To: Larry Brown; Dale Hersh; PHP List Subject: RE: [PHP] PROBLEMS WHEN EXTRACING DATA FROM MSSQL DATABASE WITH PHP Larry Brown mailto:[EMAIL

RE: [PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Larry Brown
In hopes that this may be of help to you...I had a hell of a time getting IE to download pdfs that I create on the fly and finally with the help of a couple people I got the magic code which was... $len = strlen($buf); //buf was holding the pdf doc. header(Pragma: public); header(Expires: 0);

[PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-22 Thread Dale Hersh
For some reason when I echo data from my database, I can't display anything longer than 255 chars. As far as I can see, tt has nothing to do with my database. Is there something in the php.ini that limits how many chars you can write to the screen per variable. -- PHP General Mailing List

[PHP] Re: File Upload on a MAC-Browser didn't work

2003-12-22 Thread Chris
I had a similar problem, but never found an answer. In my situation, the browser hung when I uploaded a file greater than 800 records. I found a post that said I should echo something to the browser on a regular basis during the upload, but that didn't work. This is still of interest to me to

[PHP] Can't upload file greater than 11kb

2003-12-22 Thread Chris
I've got a situation where I want to upload a file to a server then enter the data in that file into mysql. I have used this well documented upload form form enctype=multipart/form-data action=_URL_ method=POST Send this file: input name=userfile type=file input type=submit value=Send File

Re: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-22 Thread Robert Cummings
On Mon, 2003-12-22 at 20:34, Dale Hersh wrote: For some reason when I echo data from my database, I can't display anything longer than 255 chars. As far as I can see, tt has nothing to do with my database. Is there something in the php.ini that limits how many chars you can write to the screen

RE: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-22 Thread Jake McHenry
-Original Message- From: Dale Hersh [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:34 PM To: [EMAIL PROTECTED] Subject: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN For some reason when I echo data from my database, I can't display anything longer than 255

Re: [PHP] UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN

2003-12-22 Thread Justin French
On Tuesday, December 23, 2003, at 12:34 PM, Dale Hersh wrote: For some reason when I echo data from my database, I can't display anything longer than 255 chars. As far as I can see, tt has nothing to do with my database. Is there something in the php.ini that limits how many chars you can

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Manuel Lemos
Hi! Andreas Magnusson wrote: I'm writing a script to view/download an email-attachment. If the file happens to be an MS Word document and the browser IE (only tried with 6.0), then the download fails. If I choose to download (Content-Disposition: attachment; filename=whatever.doc) then only a

[PHP] Re: Https

2003-12-22 Thread Manuel Lemos
Hello, On 12/22/2003 05:26 AM, Homer wrote: Notice: fopen(): Unable to find the wrapper https - did you forget to enable it when you configured PHP? in C:\Inetpub\PostNuke-0.726\mpValidar.php on line 62 The line above says it all. I think the right scheme name is ssl, not https . Alternatively

[PHP] distinct values from a mulit-dimensional array

2003-12-22 Thread Chakravarthy Cuddapah
Can anyone pls tell me with an example on how to select distinct values from a multi-dimensional array. Moving distinct values into another array is ok. Thanks !

[PHP] Dilema

2003-12-22 Thread Jake McHenry
Hi everyone. Hopefully someone can help me out. Here is what I have: The user enters traveler names on page 1. blah blah on next couple. Page 7 shows hotel information. I have the array of travelers names being outputed into a select field on the page, all fine and dandy. Where I'm having a