[PHP] Setting clock backwards hangs webserver (PHP+THTTPD)

2005-07-26 Thread Vinoo S Warrier
Hi all, Iam running PHP on THTTPD 2.21b I have a simple php script that sets the system clock (using exec("date -s MMDDhhmm.ss") and returns a page showing the system time when i use it to set the time forwards, it works fine but if i use it and set the time backwards (even a f

[PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Rahul S. Johari
ing. What I want to do is, when the form is submitted, it should just simply update the Œhired¹ field with whatever value has been selected for that row in the Combo Box. Any help appreciated. Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 25

Re: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Rahul S. Johari
"Selected"; } ?>>On > Hold > > > But none of my Queries are working. What I want to do is, when the form is > submitted, it should just simply update the Œhired¹ field with whatever > value has been selected for that row in the Combo Box. > [/snip] >

Re: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Rahul S. Johari
nything at all! > >> > [/snip] > > Have you echoed out the query to see that it is correct? Do you have > register_globals ON? If not you need to use the $_GET or $_POST array > depending on the form method > > $sql = "UPDATE contactdata SET hired=

Re: [PHP] Updating Multiple rows with Combo Box! *SOLVED*

2005-08-22 Thread Rahul S. Johari
> you expect... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com

[PHP] Trouble figuring out a Walk through an Array

2005-10-13 Thread Phillip S. Baker
Greetings All, Having trouble figureing out a certain walk through an array. And I am not finding the help I need in the manual or anything. I have an associative arr ($arr) With about 20 elements in it. Ten of which are required. So I have another associative array called $required, with all the

[PHP] Trouble figuring out a Walk through an Array

2005-10-13 Thread Phillip S. Baker
Greetings All, Having trouble figureing out a certain walk through an array. And I am not finding the help I need in the manual or anything. I have an associative arr ($arr) With about 20 elements in it. Ten of which are required. So I have another associative array called $required, with all the

[PHP] Trouble figuring out a Walk through an Array

2005-10-13 Thread Phillip S. Baker
Greetings All, Having trouble figureing out a certain walk through an array. And I am not finding the help I need in the manual or anything. I have an associative arr ($arr) With about 20 elements in it. Ten of which are required. So I have another associative array called $required, with all the

[PHP] PHP on Windows 2003 Server

2005-10-22 Thread Tom�s Liendo
Hi, I have enough experience working with PHP on Windows XP over IIS, but now I need to work on Windows Server 2003, algo with IIS. I installed PHP (With the installer that I downloaded from www.php.net) but it doesn't work. When I try to see a PHP page I receive the following message: "The ser

[PHP] Looking for a string function

2005-11-02 Thread Phillip S. Baker
Greetigns Gents, I seem to remember a built in php function that will take a huge block of text. Then just spit out X number of characters from it and follow it with an additional string value. But I cannot remember what it is. I seem to remember it being something other than the substr(). I am

[PHP] Fixing ID's in mySQL Table

2005-11-08 Thread Rahul S. Johari
. Thus a lot of junk records were being let in, which had to be deleted at some point or another. Now the ID sequence is all screwed up. It¹s not in sequence anymore. Is there a way to fix this? Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 R

Re: [PHP] Fixing ID's in mySQL Table

2005-11-08 Thread Rahul S. Johari
to be done on ID-field? Is that what you > mean? > I would go to phpmyadmin and fix that in the database-structure. (or some > kind of database-utility) > > /G > http://www.varupiraten.se/ > - Original Message - > From: "Rahul S. Johari" <[EMAIL PRO

Re: [PHP] Fixing ID's in mySQL Table

2005-11-08 Thread Rahul S. Johari
ay($res)){ > insert into newtbl values() > } > > In the new tbl yuo will have the records ordered. > Than just rename the tables. > > On Tuesday 08 November 2005 16:28, Rahul S. Johari wrote: >> Ave, >> >> This is what I need to do. >> Let&#x

[PHP] Walking through a bunch of MySQL Records

2005-11-14 Thread Phillip S. Baker
Greetings all, I have a question. I want to display a group of records pulled form a MySQL db in the following fashion. 16 27 38 49 510 Now I can easily figure out how to display the records as 12 34 56 78 910 But

[PHP] OS Detection

2005-11-17 Thread Rahul S. Johari
note: $dom_browser is a boolean value, true/false, so you can just test if // it's true or not. } } $user_browser = browser_detection('browser'); echo "$user_browser"; if ( $user_browser == 'opera' ) { echo "OPERA"; } else { echo "SOMETHING ELSE"; } ?> Any suggestions on getting the OS ? Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com

Re: [PHP] OS Detection

2005-11-17 Thread Rahul S. Johari
. On 11/17/05 10:21 AM, "George Pitcher" <[EMAIL PROTECTED]> wrote: > Rahul, > > The Client OS is a 'client' object, so isn't necessarily passed by the > Browser. Try javascript. > > George > >> -Original Message- >> From

[PHP] HTTP User Authentication Problems

2005-12-06 Thread Rahul S. Johari
Ave, I¹m trying to run this very simple HTTP user authentication script: My Stuff Goes Here! The problem is, this script runs perfectly fine on my localhost machine at home, however it¹s not working on my web server (purchased webhosting). When I open this page on my web site

Re: [PHP] HTTP User Authentication Problems

2005-12-06 Thread Rahul S. Johari
Ave, Steve, I did a phpinfo() on my webhost and as it turns out, they are using a CGI binary version, much to my surprise and dismay. Anyhow... Do I have any alternatives for an http authentication kind of authentication ? Thanks, Rahul S. Johari Coordinator, Internet & Administra

[PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
trying to figure out how to do this but am not sure. Any help appreciated. Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
t; > I'm not sure of what you are asking, but I'll assume that because you posted > the to the PHP list, that you are asking how to take a MySQL autoincrement > number and add leading zeros to it. > > Try this: > > $row=mysql_fetch_array($result); > $four_di

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
; option. I'm not sure if you can use it with an > auto-increment field, but that's my best guess. > > JM Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Em

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, That Worked!! That was the perfect solution. Everything is working just the way I wanted it to work now. I'm using ZEROFILL in my mySQL table and pulling the ID to generate the filename. Thanks a TON! On 12/15/05 10:17 AM, "David Grant" <[EMAIL PROTECTED]> wrote:

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
orrectly, MySQL auto-increment fields will not reuse id's when > they are deleted. So, you will need to take that into consideration when > (if) you reach the 9,999th record. > > JM Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 2

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
Ave, Yes phpMyAdmin does but I'm sure many other don't. I'll keep this in mind. Thanks. On 12/15/05 11:01 AM, "John Hinton" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: > >> Ave, >> >> I'm looking into the ZEROFILL option no

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
t be able to add another because of the 4 digit > restriction. If this is the case, you will only be able to have 10,000 > ADDs, not 10,000 records. Just something to be aware of. > > JM Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 2

Re: [PHP] 4 Digit ID with Leading Zeros

2005-12-15 Thread Rahul S. Johari
> >> Yes, but as I understand it, MySQL will continue to increment as new >> records are added, so it would be possible that you have only one record >> in the table, but not be able to add another because of the 4 digit >> restriction. If this is the case, you wil

[PHP] Necesito una función

2004-03-05 Thread :: n a s s a t :: Depto Tecnico
En una news de www.php.net informan de que esta dirección se puede utilizar para pedir ayuda. En ese caso, necesitaría saber, por favor, si existe una función para saber la IP desde la que se está accediendo a una página. De no ser esta la utilidad de esta cuenta de correo, les ruego disculpen

Re: [PHP] OT- "Private Registrations" is bogus

2002-11-23 Thread a . h . s . boy
FOR THE RECORD: I (spud who really is at nothingness.org) did NOT post this original message to the list, despite the apparent sender address (and the authentic signature at the bottom). Even the message-id header was forged to appear to have emanated from my server (whose logs I checked, to be

Re: [PHP] Sessions can be dangerous

2003-05-31 Thread Erik S. LaBianca - Quonic
Wim While I do see the usefullness of sessions, I have to disagree with you on the security aspect. A session ID is just as vulnerable to sniffing as is a username / password combination. The only security you gain from using it instead is that it's value is time limited. If your application reall

[PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
I'm working on a PHP-based CMS that allows users to post lengthy article texts by submitting through a form. The short version of my quandary is this: How can I create a conversion routine that reliably substitutes HTML-acceptable output for high-ASCII characters pasted into the form (from

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
Brent -- Thanks for the pointer, but it doesn't really address the problem. I am specifying the character set for the page (ISO-8859-1), and I'm inserting an ACCEPT-CHARSET parameter into the FORM element, but it specifies acceptable charsets as UTF-8, ISO-8859-1, and Windows 1252. The problem

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread a . h . s . boy
Errr...I'm not sure how this is applicable to my situation. I'm concerned, above all, with converting curly double quotes curly single quotes em and en dashes inverted exclamation points inverted question marks ellipses non-breaking spaces registered trademark symbols bullets left and right guill

[PHP] More on cleaning Windows characters...

2002-11-03 Thread a . h . s . boy
After considerable investigation into the form input of non-Latin 1 characters to be processed by PHP on a Linux box, I've been able to distill the issue down considerably, though a solution (and one oddity) remains confusing. I found a very helpful web page entitled "On the use of some MS Wind

[PHP] ForceType hack with Apache 2?

2002-06-10 Thread a . h . s . boy
I've built an application framework in PHP that makes heavy use of the "smart URL" technique for passing variables, which works great with Apache 1.3.22. I have reports, however, that it breaks under Apache 2.x, and would like to verify whether or not anyone can confirm this. I'm using URLs to

[PHP] internationalization and gettext

2002-06-13 Thread a . h . s . boy
I developed a rather large and extensive PHP application for maintaining a news publishing site. All static text was, when I created it, written in English. Form field labels, long explanatory texts, navigational links, everything. The popularity of the application, however, has drifted outsid

[PHP] php function - netmask validity check

2003-11-06 Thread S H A N
hi, while using ipman php script and come accross this problem... function ip_mask_valid($mask) { $maskroot = (int)sqrt(abs(ip2long($mask))); return ( (float)$maskroot == sqrt(abs(ip2long($mask))) ); } this function is not returning true/successfull output when say given 255.255.254.0 netm

RE: [PHP] mixing HTML and PHP code

2001-01-12 Thread Antonio S. Martins Jr.
On Fri, 12 Jan 2001, MR wrote: > Philip Olson ... > > You know what's annoying? This (yes, it happens) : > > > > echo (""); > > echo (""); > > echo (""); > > print("Name :"); > > $

Re: [PHP] PHP as a MUD engine?

2001-01-16 Thread Antonio S. Martins Jr.
a MUD and I didn't know if it is made with PHP, but it's an online game that run on HTML :) Antonio +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | "On

[PHP] new php release?

2001-03-07 Thread Antonio S. Martins Jr.
the above odbc functions are working in the CVS tree? thanks in advance, Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Marti

Re: [PHP] new php release?

2001-03-07 Thread Antonio S. Martins Jr.
rik, but I'm finding a linux dist :) My odbc functions are used on a linux box to access DB2/AIX :) thanks for the atention Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

[PHP] PHP4.1.1 + RH7.2 + UCD-Snmp

2002-01-11 Thread Antonio S. Martins Jr.
manual pages (http://www.php.net/snmp). Any tips on this? Thanks in advance, Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr

Re: [PHP] ok, I ask again.. how to encrypt to be able to matchdatabase info?

2002-01-21 Thread Antonio S. Martins Jr.
wd") I think you get the idea :) hope this helps, Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | "Only The Shadow Knows

Re: [PHP] Best way to get the remote IP address?

2002-01-22 Thread Antonio S. Martins Jr.
eneral Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | "Only The Shadow K

[PHP] passing a multi dimensional associative array...

2001-10-25 Thread Spunk S. Spunk III
Pardon me if I've been smoking too much crack but I can't seem to figure this one out... How do I pass an argument to a function that contains a value from multi dimensional associative array? or... How do I pass an variable as an argument that contains value taken from an array? or... Why does

[PHP] argument variable gets lost in function

2001-10-25 Thread Spunk S. Spunk III
I'm assigning a variable a value from an associative array. $variable = $array["key"]["value"]; Then passing the $variable to a function. SomeFunction($variable) The variable exists (can be printed) until a built-in function (within the original function) is called. echo "$variable";

Re: [PHP] Re: argument variable gets lost in function

2001-10-25 Thread Spunk S. Spunk III
> > hmm...weird! is that the code? > if you show us your real code...maybe you're missing a small detail... > Sorry about the variable names... I can print the variable inside the function until it goes through ereg_replace. Then it's gone. The code works fine if I replace the line '$song = $id3i

[PHP] variable gets lost in function problem again...

2001-10-26 Thread Spunk S. Spunk III
Sorry all but I really need to figure this out. Here's a recap of my problem: I have an two dimensional array that is returned from code from an included file. I'm assigning parts of the array to variables ( $variable = $array["key"]["value"]; ). This works fine and can be printed until I send it

[PHP] is_null misses spaces... another solution?

2001-11-13 Thread Spunk S. Spunk III
I need to check variables for blank values but it appears that is_null and =="" return true if there is a space. Any other suggestions? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] is_null misses spaces... SOLUTION!

2001-11-13 Thread Spunk S. Spunk III
Ahh... and the winner is empty(). Thanks Christian for this elusive answer and everyone else for their input. Spunk > > I need to check variables for blank values but it appears that is_null and > =="" return true if there is a space. > > Any other suggestions? > > Thanks > > > -- > PHP

[PHP] array_unique() workaround?

2001-11-14 Thread Spunk S. Spunk III
I'm working on a script that needs array_unique() but my host is using 4.0.4 and it's broken in that build. Does anyone have a good workaround for this? I can wait for my host to upgrade but if I release this code, it would be better to have the workaround... I just need a good way to check for d

Re: [PHP] array_unique() workaround? SOLUTION!

2001-11-14 Thread Spunk S. Spunk III
Thanks everyone for the ideas, Here's what I came up with... I forgot to mention that I needed to preserve the original array's keys. Here is a replacement I wrote that seems to work. Let me know if you see errors in it or have improvements. function my_array_unique($somearray) { asort($somea

[PHP] Getting a header without ANY mime type

2001-03-21 Thread Spunk S. Spunk III
I've got a situation where I'm interested in returning a header without ANY mime type specified. It looks like the default Mime type is set by the server (plain text)? Or at least when I don't specify the type that's what my server is returning. I'd also like to ensure that there is no content len

Re: [PHP] Getting a header without ANY mime type

2001-03-22 Thread Spunk S. Spunk III
This would be part of a test tool I'd like to create in order to test conditions of an application. I want to send a request and ensure that the response has no set type or known length if possible (eg return some media that is undefined and see how the app handles the response). Anyone? Spunk

[PHP] Change the filename sent via html header

2001-04-03 Thread Spunk S. Spunk III
I've got a script that returns a smil file in a header but I'd like to change the name of the file. The file is sent as blah.php (even though it is a smil file) but I'd like to be able to name it something like blah.sml. Is there a way to do this? Spunk -- PHP General Mailing List (http://www.

Re: [PHP] Change the filename sent via html header

2001-04-03 Thread Spunk S. Spunk III
Okay, So here's what it looks like now: header("Content-type: application/x-quicktimeplayer"); header("Content-Disposition: attachment; filename=blah.qtl" ); print(GenerateSMILAlbum($baseURL, $directory, $mp3Array, $albumCover)); This gets me two download dialogs on windows machines if I select

Re: [PHP] About the $allowed problem

2001-08-27 Thread Antonio S. Martins Jr.
ot;5000". Try puting the "var_dump" before the "session_start", or try testing "$HTTP_GET_VARS[allowed]" . Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr

Re: [PHP] Ridiculous ..won't print or echo ...(RESOLVED)

2009-07-31 Thread ej S(ibr(ina
09 16:36 >> >> Ok in my output to Quark I need to have $P printed to the page like >> this: >> >> <@$p>2118 S. Campbell Ave >> >> So in my php which is going to be grabbing this info and formatting >> it for >> the Quarkisn'

Re: [PHP] Ridiculous ..won't print or echo ...(RESOLVED)

2009-07-31 Thread ej S(ibr(ina
I'm sorry for this post. It's only testing. Thanks for understand. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pear for fedora 11

2010-03-07 Thread Edward. S. P. Leong
Dear All, Which can we download pear ann install into fc 11 system ? Thank for your help ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pear for fedora 11

2010-03-08 Thread Edward. S. P. Leong
Ashley Sheridan wrote: >On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote: > > > >>Dear All, >> >>Which can we download pear ann install into fc 11 system ? >> >>Thank for your help ! >> >>Edward. >> >> >

Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote: > On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote: > >>Ashley Sheridan wrote: >> >>> On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote: >>> >>>>Ashley Sheridan wrote: >>>> >&

Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote: > On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote: > >>Ashley Sheridan wrote: >> >>>On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote: >>> >>> >>> >>>>Dear All, >>>> >

[PHP] without session variables

2006-02-23 Thread Ing. Tom�s Liendo
Hi a system that I developed and I tested in my PC and it runs to the perfection, when I upload this to the hosting server it has many problems. I think that is because the session variables don't work in the server. It is possible? How can I solve this??? Ahead of time, thank you very much,

[PHP] session vars on Windows Server?

2006-02-24 Thread Ing. Tom�s Liendo
ED] M3V)T:65N92!L82!H;W)A(&%C='5A;"X-"@D))%]315-324].6R)H;W)A(ET] M)&AO7-Q;%]Q=65R>[EMAIL PROTECTED],14-4 M("[EMAIL PROTECTED])/32!A;'5M;F]S>&-U7-Q M;%]N=6U?PT*(" @"[EMAIL PROTECTED])3TY;(F%U=&5N=&EF M:6-A9&\B72$](E-)(BD-"B @(&

[PHP] Upload files problems

2006-05-24 Thread Ing. Tom�s Liendo
Hi! When the users of my system try to go up files of more than 460 K, they receive the message: Fatal error: Maximum execution time of 90 seconds exceeded in c:\websites\iracbiogenar48\iracbiogen.com.ar\virtual\procesa_msjpriv.php on line 2 I'm using the following method to up load the files:

Re: [PHP] Upload files problems

2006-05-26 Thread Ing. Tom�s Liendo
My host uses safe mode... What other thing can I do? Some other method exists to send files besides POST method? Thank you, Tom. "Ryan Creaser" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Ing. Tomás Liendo wrote: > >>Hi! >>When t

[PHP] Can't install

2006-02-09 Thread Ing. Tom�s Liendo
Hi I can't install PHP on Windows. The error: "Windows Can't found c:\Windows\System32\issext.vbs" What Can I do? Please Help me! Thnaks, Tom. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't install

2006-02-09 Thread Ing. Tom�s Liendo
Sorry but I can't find the file issext.vbs!! Where can I get it Can you send me this file? Thank you! Tom "Barry" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Ing. Tomás Liendo wrote: >> Hi I can't install PHP on Windows. &

[PHP] Re: Can't install

2006-02-09 Thread Ing. Tom�s Liendo
Yes, I don't have the file in my PC and I can't find It on Google. Well... I'll see Tkank you very much. Tom. "Barry" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Ing. Tomás Liendo wrote: >> Sorry but I can't find the file

[PHP] Help with query

2006-02-21 Thread Ing. Tom�s Liendo
Hi I need the students that didn't take an exam. The tables: exams(id_test, title, desciption, ) results(id_student, id_test, date, qualification...) I'm using a version of MySQL that doesn't support NOT IN, then I tried in this way: SELECT * FROM exams LEFT JOIN results ON exams.id_test=r

Re: [PHP] HowTo: IBM DB2 w/PHP

2001-01-31 Thread Antonio S. Martins Jr.
it uses the native DB2 cli). I use it here on my university to access a DB2 AIX box from my Linux Web Server. Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist |

[PHP] self in inherited methods

2009-04-19 Thread Alex S Kurilo aka Kamazee
Is it right that 'self' in inherited method still points to the parent? If it is, can you explain it? It makes me worry :) A piece of code below for example get_instance(); $c = $a->get_another_instance(); echo $a->get_name(),"\n"; echo get_class($b),"\n"; echo get_class($c),"\n"; ?> -- PHP

Re: [PHP] self in inherited methods

2009-04-21 Thread Alex S Kurilo aka Kamazee
Is it right that 'self' in inherited method still points to the parent? If it is, can you explain it? It makes me worry :) Up until 5.3 this was just the way it was. It has been "fixed" in 5.3. See here for more info: http://php.net/lsb Thanks. It seems that 'static' keyword (instead of 'self')

Re: [PHP] Extract variable out of a Class -> Function

2009-04-23 Thread Alex S Kurilo aka Kamazee
I have a function within a class. There is a variable inside that function which I need to access & use outside of the class/function. For example ... Class Test { function showOutput { if ($this->url) { $justTT = substr($this->url,-10,7);

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
RewriteRule . index.php Add an asterisk after the dot: RewriteRule .* index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with HTTPS and maybe an .htaccess???

2009-05-05 Thread Alex S Kurilo aka Kamazee
No, adding * after the period had no affect at all. Still goes to the live site. Sorry, I misunderstood you. I'm too lazy to read all the message :) http and https may be handled by different virtual hosts. http for http://dev.sitename.com/ seems to be configured properly (Virtual host at por

[PHP] help needed with tiger tree hashes

2004-06-03 Thread Carl S. in 't Veld
I am trying to generate tiger tree hashes the same way as directconnect does, but I am failing. I checked the output from php with the reference vectors from http://www.cs.technion.ac.il/~biham...ssie-format.dat and they appear to be different! echo bin2hex(mhash(MHASH_TIGER, 'abc'))."\n"; output

Re: [PHP] help needed with tiger tree hashes

2004-06-06 Thread Carl S. in 't Veld
c.il/~biham/Reports/Tiger/testresults.html > The results you posted seem to be right. > > Carl S. in 't Veld wrote on vrijdag 4 juni 2004 0:52: > > > I am trying to generate tiger tree hashes the same way as > > directconnect does, but I am failing. > > > > I

[PHP] X Tiger 10.4.5 + phpBB2 + MySQL 5 + Can't Connect Issue!

2006-03-06 Thread m i l e s
ad of time M i l e s. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] X Tiger 10.4.5 + phpBB2 + MySQL 5 + Can't Connect Issue! - SOLVED!

2006-03-06 Thread m i l e s
Hi, Figured it out: Apple wiped out the location of the socket. they wanted '/var/mysql/mysql.sock' it should be: '/tmp/mysql.sock' Problem solved. M i l e s. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload via HTML forms

2001-04-02 Thread \[Intent A/S\] Tais M. Hansen
p dir with the uid of what php is running with and since the script I'm working with will always have a different ownership/uid than the php process, I won't be able to read this file. Does anyone know how to get around this problem? Thanks in advance! -- -- Intent A/S Tais M.

Re: [PHP] File upload via HTML forms

2001-04-03 Thread \[Intent A/S\] Tais M. Hansen
h, but apparently the files written with FTP can't be manipulated with PHP. Can't create new files and can't unlink the old! No permission. I must admit I've come to hate the web hotel this is all running on! Thanks! -- -- Intent A/S Tais M. Hansen Web Developer "

Re: [PHP] File upload via HTML forms

2001-04-03 Thread \[Intent A/S\] Tais M. Hansen
SOLVED! Setting TMPDIR="site-specific-upload-directory" at execution time of the PHP parser, made it work. The directory must have a+rwx though! -- -- Intent A/S Tais M. Hansen Web Developer ""[Intent A/S] Tais M. Hansen"" <[EMAIL PROTECTED]> wrote in

Re: [PHP] I am SO confused (help with references!) (could be a bug?)

2001-04-10 Thread \[Intent A/S\] Tais M. Hansen
Hi, Well... I don't know if this is any help but I ran your code under PHP/4.0b4 and got: "Inside2 Inside2 Inside2 " Seems right to me? -- -- Intent A/S Tais M. Hansen Web Developer ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9asamr$865$

Re: [PHP] I am SO confused (help with references!) (could be a bug?)

2001-04-10 Thread \[Intent A/S\] Tais M. Hansen
Actually I ran it under PHP/4.0.4pl1! Forgot which server I were using! ;) But great that you got it working! I too hate seemingly illogical errors! :) -- -- Intent A/S Tais M. Hansen Web Developer ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9auchs$jku$[EMAIL P

[PHP] Bug?

2001-08-08 Thread \[Intent A/S\] Tais M. Hansen
Hi! I just came across this weird thing. Bug? You tell me! print (int)((8.85-8)*100); I would think the line above would print "85". But for some reason, it prints "84"?? Can anyone tell me why that is? -- Intent A/S Tais M. Hansen Web Developer -- PHP Genera

[PHP] Error Handler

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
Hi, Does anyone know why the custom error handler (set_error_handler) doesn't catch all errors? Some still falls through to PHP's standard error handler. Bug? (PHP/4.0.4pl1) -- Thanks, Tais M. Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
Hi Martin, Take a look at the Apache mod_rewrite docs. http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html I added this to my httpd.conf: ---snip--- RewriteEngine on RewriteCond %{HTTP_HOST}^nu\.osd\.dk$ RewriteRule ^.*$http://www.osd.dk/main.php?m=nu [R=301,L] ---

[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
Note: The example I wrote is only 3 lines, each starting with RewriteX! Beware of unintended line breaks caused by newsposting. :) -- Tais M. Hansen " Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ---snip--- > RewriteEngine on > RewriteCo

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
I think I remember doing it a while ago. But I think you need to use mod_alias instead. Take a look here: http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect The Redirect/RedirectMatch/RedirectTemp might do it. -- Tais M. Hansen "Martin Lindhe" <[EMAIL PROTECTED]> wrote in message 83

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
I think if you use "RedirectMatch temp ..." it'll work... -tais "Martin Lindhe" <[EMAIL PROTECTED]> wrote in message 831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1... > > I think I remember doing it a while ago. But I think you need to use > > mo

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!! -tais "Martin Lindhe" <[EMAIL PROTECTED]> wrote in message 831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1... > >useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html >

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
I am wrong! ;) " Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!! > -tais -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen
This is what they mean: (from http://www.apache.org/docs-2.0/mod/mod_rewrite.html) *** 'proxy|P' (force proxy) This flag forces the substitution part to be internally forced as a proxy request and immediately (i.e., rewriting rule processing stops here) put through the proxy module. You

[PHP] Extract result from a https remote server response

2009-02-12 Thread m a r k u s
Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.com&cust_id=123546&password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process it . An idea ? PS: The server is secured. The php functio

[PHP] Re: Extract result from a https remote server response

2009-02-13 Thread m a r k u s
Shawn McKenzie wrote: m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.com&cust_id=123546&password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process it .

[PHP] Re: Extract result from a https remote server response

2009-02-13 Thread m a r k u s
Shawn McKenzie wrote: Shawn McKenzie wrote: m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.com&cust_id=123546&password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php

Re: [PHP] Re: Extract result from a https remote server response

2009-02-13 Thread m a r k u s
Sorry all, I was testing in a Windows environment. I feel like an idiot... :) Thanks to all. -- m a r k u s Bruno Fajardo wrote: Assigning the return of file_get_contents to a variable? Didn't get your point... 2009/2/13 m a r k u s Shawn McKenzie wrote: Shawn McKenzie wrote: m a r

[PHP] ereg_replace to preg_replace translation

2009-08-11 Thread m a r k u s
\n", "", $sql); Any help for tranlation or alternative ? Thanks -- m a r k u s -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending file stored on server via email - How?

2007-01-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hello everyone, I store files on the server (.pdf, .doc, .txt, etc.) which are referenced by entries in a database. The filenames are only stored in the database and are not BLOBs. What I'd like to do is to be able to show a web form wherein a user can choose stored documents on the server and s

<    5   6   7   8   9   10   11   >