RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Rasmus Lerdorf
First, where is your header call? And when you do a view source on the page with the error, what do you see before that error is shown? -Rasmus On Sat, 28 Jun 2003, PHPSpooky wrote: > Glory! > > Well so far all solutions have failed.. > I gave the include functions as the first line of my direc

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
> From: Jason Wong [mailto:[EMAIL PROTECTED] > And a search of the archives would have told you exactly what could cause > that > to happen and how to solve it. But you've done that already though haven't > you? Exactly. You're on the right track my friend. Been there.. done that. To no avail.

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread PHPSpooky
Glory! Well so far all solutions have failed.. I gave the include functions as the first line of my directory.php as this.. I've given HTML in it's original form.. as well as in echo.. tried both.. This.. Or this.. echo ""; for each line. And yet nothing is working! I still get the

[PHP] Compile php

2003-06-27 Thread J.F.Kishor
Hi all, I have a doubt, is there a way to compile php as a class file, so that it would be more secured. And I should be able to be invoked by a HTML client interface. Thanks in adv - JFK kishor Nilgiri Networks

Re: [PHP] Classes within classes

2003-06-27 Thread Lars Torben Wilson
On Fri, 2003-06-27 at 03:09, Dave Alger wrote: > Hiya, > > It would be useful for me to be able to use a class within another class and > I don't know if that's permissable in PHP. Hi there! It is indeed possible. However, that's not the problem here. The problem is that class attribute initiali

RE: [PHP] @import

2003-06-27 Thread electroteque
why php ? why not just use a .css file like everyone else ? -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 11:02 AM To: Leif K-Brooks Cc: PHP Lists Subject: Re: [PHP] @import On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > Brian V Boni

Re: [PHP] nl2br and

2003-06-27 Thread Lars Torben Wilson
On Fri, 2003-06-27 at 14:07, Raymond C. Rodgers wrote: > I'm sure that this has probably been discussed before, but I couldn't > seem to find any direct references to such a discussion. The line break > tags that nl2br() produces have the forward slash embedded in them, > which is not in the HTML 4

Re: [PHP] @import

2003-06-27 Thread Brian V Bonini
On Fri, 2003-06-27 at 21:02, Brian V Bonini wrote: > On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > > Brian V Bonini wrote: > > > > >Can anyone make this work with Mozilla? > > > > > > > > >@import url("site.css.php"); > > > > > > > > >No matter what I try , header("Content-type: text/css") >

RE: [PHP] Sorting problem

2003-06-27 Thread Daryl Meese
David, See what you mean. I guess we need some clarification on the original question? Thanks -Original Message- From: David Otton [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 8:09 PM To: Daryl Meese Cc: PHP General Subject: Re: [PHP] Sorting problem On Fri, 27 Jun 2003 19:45

Re: [PHP] q: extract() and get_defined_vars()

2003-06-27 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 28 Jun 2003 at 02:01, lines prefixed by '>' were originally written by you. > Pretty sneaky. But at this point, why bother with the extract() at > all? > wouldn't this do the same thing: > function Foo(){ > $theArray = array('var1'=>

Re: [PHP] Sorting problem

2003-06-27 Thread David Otton
On Fri, 27 Jun 2003 19:45:27 -0500, you wrote: >ckeck out asort and arsort I'm looking... My understanding was that the original poster wanted to sort an array by "value"|"key" ("sort an array and have the key 'follow' the value") eg 'pear' => 'green', 'orange'=> 'orange', 'banana'

Re: [PHP] q: extract() and get_defined_vars()

2003-06-27 Thread Aric Caley
>Yes it is, you must tell the function to treat the relevant variables as >globals though, here is a way of doing it: >function Foo(){ >$theArray = array('var1'=>'testing', 'var2'=>'testing2'); >foreach($theArray as $varname=>$value){ >global $$varname; >} >extract($theArra

Re: [PHP] @import

2003-06-27 Thread Brian V Bonini
On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > Brian V Bonini wrote: > > >Can anyone make this work with Mozilla? > > > > > >@import url("site.css.php"); > > > > > >No matter what I try , header("Content-type: text/css") > >or ini_set to will not output anything other then text/html > > > > >

Re: [PHP] q: extract() and get_defined_vars()

2003-06-27 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sat, 28 Jun 2003 at 01:41, lines prefixed by '>' were originally written by you. > If I call extract() inside of a function, then the variables it > creates will > be local to that function, correct? OK, so, is there a way to get > extract()

RE: [PHP] Sorting problem

2003-06-27 Thread Daryl Meese
ckeck out asort and arsort Daryl -Original Message- From: David Otton [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 7:41 PM To: Sparky Kopetzky Cc: PHP General Subject: Re: [PHP] Sorting problem On Fri, 27 Jun 2003 17:06:50 -0600, you wrote: >I need to sort an array and have th

[PHP] Cookies and Macs

2003-06-27 Thread Joshua Chapman
I wrote a script that used cookies to track users (the cookie contains the user's ID#). However, there was a problem when it came to the Mac users, the cookie that was assigned to them never stuck so every time they hit a page the script generated a new ID for them, made it very difficult to tra

[PHP] q: extract() and get_defined_vars()

2003-06-27 Thread Aric Caley
am I assuming correctly that get_defined_vars() returns an array pretty much like the $GLOBALS array? If I call extract() inside of a function, then the variables it creates will be local to that function, correct? OK, so, is there a way to get extract() to define those variables as global, from

Re: [PHP] Sorting problem

2003-06-27 Thread David Otton
On Fri, 27 Jun 2003 17:06:50 -0600, you wrote: >I need to sort an array and have the key 'follow' the value. I know I could >splice a string, sort it, then split it again but what a pain. Is there a >simpler way? AFAIK, there's no one-liner answer here. the usort() family of functions pass either

Re: [PHP] @import

2003-06-27 Thread Leif K-Brooks
Brian V Bonini wrote: Can anyone make this work with Mozilla? @import url("site.css.php"); No matter what I try , header("Content-type: text/css") or ini_set to will not output anything other then text/html This has nothing to do with PHP. -- The above message is encrypted with double rot13

RE: [PHP] Zend Studio and DreamWeaver MX

2003-06-27 Thread electroteque
they both compliment eachother , use zend for code and dreamweaver to do the html, we use a templating system at work , so i use dreamweaver to quickly interpret the design into html and quickly make the tables and add the graphics etc so the templates are done quickly then i use homesite to do the

Re: [PHP] PHP Web Based File Management and Security

2003-06-27 Thread Jim Lucas
Don't allow them to run php scripts in the public_html directory What is the point of the web based file manager? So they don't have to use ftp or ssh to uploads files? Jim Lucas - Original Message - From: "Dean E. Weimer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 27

Re: [PHP] Newbie and learning

2003-06-27 Thread Daniel J. Rychlik
PHP is, arguably, the better way to go when developing an ecomm solution. This list is full of very intelligent programmers that will help or direct you to the proper documentation. If you use $_GET you will be able to pass value pairs in the url. Make sure that in your data check script that you

[PHP] Re: Array Dump

2003-06-27 Thread Bobby Patel
look at strlen() at php.net "Daniel J. Rychlik" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hmm, I just noticed that array dump counts the number of charaters and white space and lables that number string... What function name is that ? The string counter I mean ? -Dan -- PHP

[PHP] Array Dump

2003-06-27 Thread Daniel J. Rychlik
Hmm, I just noticed that array dump counts the number of charaters and white space and lables that number string... What function name is that ? The string counter I mean ? -Dan

RE: [PHP] Sorting problem

2003-06-27 Thread Daryl Meese
Using the asort function will sort and keep the keys attached (there is also arsort for sorting in reverse order with the keys attached). You may already know that you will need to do something like: while(list ($key, $value) = each($arrayname)) { //$key is the array index, $value is the array va

[PHP] Newbie and learning

2003-06-27 Thread Larry R. Sieting
Hello All, I have been reading and digesting information from this list for about two weeks now. I am doing some work and testing (both) and learning php on the way. Now I have seen several replies about using $_GET[] and $_POST[] and that if you ARE sending variables using the URL you _should

[PHP] Sorting problem

2003-06-27 Thread Sparky Kopetzky
I need to sort an array and have the key 'follow' the value. I know I could splice a string, sort it, then split it again but what a pain. Is there a simpler way? Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net -- PHP General Mailing List (http://www.php.net/) To

[PHP] PHP Web Based File Management and Security

2003-06-27 Thread Dean E. Weimer
I was starting to make and test some pages for web based file management using PHP (4.3.2) with Apache (2.0.46) on a FreeBSD (4.8) Server. The pages of course would be secured with ssl and use .htaccess files combined with mod_auth_pgsql to provide logins. Apache is running as user nobody, so I h

[PHP] @import

2003-06-27 Thread Brian V Bonini
Can anyone make this work with Mozilla? @import url("site.css.php"); No matter what I try , header("Content-type: text/css") or ini_set to will not output anything other then text/html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zend Development Environment

2003-06-27 Thread Ben Edwards
Is it me or is it not up to much. I'me getting totally different results from within the IDE and running the code straight on a browser. I am also getting some very strange results (such as changing code and it not having any affect) since I installed it. What experiences have other people ha

[PHP] getting data from inside a class

2003-06-27 Thread Cory Hicks
Hey folks! I just posted this over on the PEAR list, but thought someone here might have some input. Can someone point me in the right direction with this little piece of code. This all works fine to get $num_rows or a single element in an array, but I need to get at all the actual elements in

[PHP] Weird comparison error.

2003-06-27 Thread Rob Adams
I don't need anything fixed, I'm just curious about something I noticed. I'm doing a comparison between a variable and a hard coded char. Like this: if ($k1 == "n") The variable is usually the first key in an array (0) so it should usually evaluate false, but it was true every time until I chang

[PHP] Re: nl2br and

2003-06-27 Thread Bobby Patel
Since I haven't had any problems with I really don't care. However, if you are concerned why don't you write a function like this: my_nl2br($targetStr, XML = true) { $buffer = ''; if (XML) { return nl2br($targetStr); } else { $buffer = nl2br($targetStr); $buffe

[PHP] nl2br and

2003-06-27 Thread Raymond C. Rodgers
I'm sure that this has probably been discussed before, but I couldn't seem to find any direct references to such a discussion. The line break tags that nl2br() produces have the forward slash embedded in them, which is not in the HTML 4.x standard. While this isn't a big deal really, the fact of th

Re: [PHP] $_POST problem

2003-06-27 Thread Jason Wong
On Saturday 28 June 2003 04:32, Sparky Kopetzky wrote: > I've got my script kinda running but am unable to retrieve any values with > $_POST. I turned on register_globals in the php.ini and am using this url: If you're going to be using $_POST (which you should) then you should *disable* registe

Re: [PHP] $_POST problem

2003-06-27 Thread Mark
You need to use $_GET, not $_POST, if the varaibles are passed in the URL. --- Sparky Kopetzky <[EMAIL PROTECTED]> wrote: > Hi, it's me again... > > I've got my script kinda running but am unable to retrieve any > values with $_POST. I turned on register_globals in the php.ini and > am using thi

Re: [PHP] Trouble reading POST data that is not associated with avalue.

2003-06-27 Thread Leif K-Brooks
Marcus Akre wrote: Hi. I'm currently developing a system that accepts http requests containing xml data. A third-party application delivers the xml data in the post part of the http request. The post data is however not associated with any name. So it cannot be indexed as normal with $_POST["k

[PHP] $_POST problem

2003-06-27 Thread Sparky Kopetzky
Hi, it's me again... I've got my script kinda running but am unable to retrieve any values with $_POST. I turned on register_globals in the php.ini and am using this url: http://www.fttta.com/auction.php?action=reg. (Sorry, it's local for now...) I'm using this kind of line to check for values:

[PHP] Salary

2003-06-27 Thread Michael Lewis
It all depends on how good you are, your experience, local pay rates, etc. The range seems to be from $25 to $60 per hour in most cases. Michael Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Topic Maps with PHP, PEAR, etc...

2003-06-27 Thread IMAC, Sebastian Mangelkramer
Hi all together, does anyone know, how to parse Topic Maps with PHP ? We have to parse the Topic Maps and visualisize them afterwords. Anyone know a Tip ? I dont search for an solution, just for a litte Tip. Thanks, yours sincerly -- Sebastian Mangelkramer IMAC - Information & Management

Re: [PHP] Re: Speed up MySQL

2003-06-27 Thread Wendell Brown
On Fri, 27 Jun 2003 15:05:29 -0500, Erich Kolb wrote: >I am already running MySQL 4, how would I go about adding indexes? http://www.mysql.com/doc/en/CREATE_INDEX.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Speed up MySQL

2003-06-27 Thread Erich Kolb
I am already running MySQL 4, how would I go about adding indexes? "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > On 06/27/2003 04:55 PM, Erich Kolb wrote: > > Can anyone offer some suggestions as to how I can speed up MySQL query > > results? I have a sim

RE: [PHP] Speed up MySQL

2003-06-27 Thread Aaron Gould
Read these mysql.com doc pages: http://www.mysql.com/doc/en/MySQL_indexes.html http://www.mysql.com/doc/en/CREATE_INDEX.html -- Aaron Gould Web Developer Parts Canada [EMAIL PROTECTED] -Original Message- From: Erich Kolb [mailto:[EMAIL PROTECTED] Sent: June 27, 2003 3:56 PM To: [EMAI

[PHP] Re: Speed up MySQL

2003-06-27 Thread Manuel Lemos
Hello, On 06/27/2003 04:55 PM, Erich Kolb wrote: Can anyone offer some suggestions as to how I can speed up MySQL query results? I have a simple database with 3 fields in 1 table. The thing is that there are over 11 million records. Average query time is about 25 seconds. The machine itself is

[PHP] Speed up MySQL

2003-06-27 Thread Erich Kolb
Can anyone offer some suggestions as to how I can speed up MySQL query results? I have a simple database with 3 fields in 1 table. The thing is that there are over 11 million records. Average query time is about 25 seconds. The machine itself is pretty fast(P4 1.8ghz/ 1gb ram). Any suggestions

[PHP] VB script

2003-06-27 Thread Shishir Kumar Mishra
Hi All, Can I call function Defined PHP from VBScript? regards.. Shishir Kumar Mishra

RE: [PHP] Trouble reading POST data that is not associated with a value.

2003-06-27 Thread Moore, Christie
Well, Marcus. Thanks to Mike I found out exactly how to do this. I am doing the same exact thing and now parsing throw my xml message without any problems. You have to add a value in your php.ini (normally located in the /usr/local/lib directory) file if it is turned off. You can see if the se

Re: [PHP] Trouble reading POST data that is not associated with a value.

2003-06-27 Thread Wendell Brown
On Fri, 27 Jun 2003 21:21:34 +0200, Marcus Akre wrote: >However the $_SERVER["CONTENT_LENGTH"] is between 300 and 400 bytes. The >data is there, but how can i access it? Maybe, $_SERVER["HTTP_RAW_POST_DATA"] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Zend Studio and DreamWeaver MX

2003-06-27 Thread Yann Larrivee
On Fri, 2003-06-27 at 14:26, Daniel J. Rychlik wrote: > Hey guys, > > Which is a better environment to write PHP code in? Zend or Dreamweaver ? Zend Studio all the way, dont let DW mess up your php code like it messes up html !!! > Does zend provide a WYSIWYG for putting together a web page

RE: [PHP] Re: mime type

2003-06-27 Thread Brian V Bonini
On Fri, 2003-06-27 at 13:47, Carl Furst wrote: > I doubt this is the problem, but perhaps your webserver is messing with your > mime-types by printing a default header for some reason. > If that were the case it would return text/plain but this is more like not being able to override PHP's defaul

Re: [PHP] OCI8 Issues

2003-06-27 Thread Jason k Larson
http://us2.php.net/manual/en/function.ociexecute.php http://us2.php.net/manual/en/function.ocicommit.php The optional mode allows you to specify the execution-mode (default is OCI_COMMIT_ON_SUCCESS). If you don't want statements to be committed automatically specify OCI_DEFAULT as your mode. Unl

[PHP] Trouble reading POST data that is not associated with a value.

2003-06-27 Thread Marcus Akre
Hi. I'm currently developing a system that accepts http requests containing xml data. A third-party application delivers the xml data in the post part of the http request. The post data is however not associated with any name. So it cannot be indexed as normal with $_POST["key"]. I've tried all

[PHP] PHP Programmer Needed

2003-06-27 Thread Erica Ziegler-Roberts
I am swamped with work and need a php expert who is familiar with IC-Radius to do the following project for me. If it can be done by Monday, I will be willing to pay more. You must be able to accept payment through Paypal, Yahoo Paydirect, or Check/Money Order. Project details are below. This is a

[PHP] OCI8 Issues

2003-06-27 Thread Moore, Christie
I don't receive any errors from this code but when I look in the look at the table it is not updated. I am also receiving a Warning: _oci_open_server: ORA-12535: TNS:operation timed out. Not sure why. I guess my question is what would make the update not change the valuse in the database but sh

Re: [PHP] Re: sessions and browser back

2003-06-27 Thread Chris Sherwood
there is a setting you need to make after the session start http://ca3.php.net/manual/en/function.session-cache-expire.php check that link out I think that it will resolve alot of problems for you.. however I have noticed forms are a little trickier... usually what I do with those is create the

Re: [PHP] Forms / Array Question...

2003-06-27 Thread Jim Lucas
(A) works YES (B) is not actually just some undefined behavior that's risky to use? It works fine for me. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP-programmers salary

2003-06-27 Thread Dan Joseph
Yo, > Can anybody tell me what is the avarage PHP-programmers salary? www.salary.com -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP-programmers salary

2003-06-27 Thread Chris Sherwood
Alot of it depends on the demand and where you are... but averages here in Vancouver BC range from 40k a year all the way to 75k a year - Original Message - From: "Gladk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 11:20 AM Subject: [PHP] PHP-programmers salary

Re: [PHP] Re: Regex Help with -> ?

2003-06-27 Thread Gerard Samuel
sven wrote: looks like id3v2 ;-) how about this: $string = "<[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ"; $pattern = "/<\[TIT2\]>([^<]*)/"; // matches anything exept '<'; till '<' or end of string preg_match($pattern, $string, $match); var_export($match); Yeah, Im trying to figure out a way to parse t

[PHP] Zend Studio and DreamWeaver MX

2003-06-27 Thread Daniel J. Rychlik
Hey guys, Which is a better environment to write PHP code in? Zend or Dreamweaver ? Does zend provide a WYSIWYG for putting together a web page ? -Dan

RE: [PHP] PHP-programmers salary

2003-06-27 Thread Jay Blanchard
[snip] Can anybody tell me what is the avarage PHP-programmers salary? [/snip] It would depend some on geographical location, years of experience, and some other factors. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Forms / Array Question...

2003-06-27 Thread Noel Wade
Hi All, Quickie Question... Possibly a silly one; but it would make my life easier if it works! I know that with a SELECT MULTIPLE, you have to use the convention: NAME="$varName[]" to get all of the responses into a nice neat array. I'm wondering about the mechanism behind this - is it simply

[PHP] PHP-programmers salary

2003-06-27 Thread Gladk
Hi PHPeople! Can anybody tell me what is the avarage PHP-programmers salary? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: sessions and browser back

2003-06-27 Thread chris
On Wed, 25 Jun 2003 18:56:13 +0530, Bibhas Kumar Samanta <[EMAIL PROTECTED]> wrote: Hi, I am trying to create restricted pages for my php/mysql/apache server with sessions and passing session varibales to other pages for validation. Eventually I am doinng session_start() at the begining and ch

Re: [PHP] include question

2003-06-27 Thread Leif K-Brooks
Blake Schroeder wrote: Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: You can't use SSI in PHP. PHP is not SSI. You can do something similar though, www.php.net/virtual. -- The above message is encrypted with double rot13 encoding. Any

RE: [PHP] include question

2003-06-27 Thread Jay Blanchard
[snip] I used to include a perl script via Sever Side Include how could I do this in php? example: [/snip] exec("/cgi-bin/something.pl?data=something"); HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include question

2003-06-27 Thread Blake Schroeder
Hey all I used to include a perl script via Sever Side Include how could I do this in php? example: -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is there an RTFM for 'use strict' ?

2003-06-27 Thread chris
On Mon, 23 Jun 2003 14:51:22 +0100, Dave Restall - System Administrator <[EMAIL PROTECTED]> wrote: Hi, Done a lot of Perl & PHP coding over the years and one thing I _really_ liked about Perl is its 'use strict;' directive. For those of you not familiar with Perl, this made the script die if yo

RE: [PHP] Re: mime type

2003-06-27 Thread Carl Furst
I doubt this is the problem, but perhaps your webserver is messing with your mime-types by printing a default header for some reason. Carl Furst Chief Technical Officer Vote.com 50 Water St. South Norwalk, CT. 06854 203-854-9912 x.231 -Original Message- From: Brian V Bonini [mailto:[EMA

Re: [PHP] Re: mime type

2003-06-27 Thread Brian V Bonini
On Fri, 2003-06-27 at 13:26, Pete Morganic wrote: > chech here > http://www.phpfreaks.com/mimetypes.php > > and in php add the folowing header > > header ("Content-type: model/vrml"); As I had already stated I tried using header() and ini_set(), e.g., header("Content-type: text/css") or ini_se

RE: [PHP] mysql split?

2003-06-27 Thread Carl Furst
There is a mysql function called substring_index() that returns a substring based on an index character like space ' '. You have to specify the string, the index character, and how many time it has to find it from the left or right (left being positive and right being negative, I think) before t

[PHP] Re: mime type

2003-06-27 Thread Pete Morganic
chech here http://www.phpfreaks.com/mimetypes.php and in php add the folowing header header ("Content-type: model/vrml"); Brian V Bonini wrote: I want to get php to output text/css for one .php file. I tried using header() and ini_set () but seems no matter what I do the Content-type remains tex

[PHP] suscripcion

2003-06-27 Thread Raúl Alberto Córdoba
- Internet GRATIS es Yahoo! Conexión. Usuario: yahoo; contraseña: yahoo Desde Buenos Aires: 4004-1010 Más ciudades: clic aquí.

[PHP] OOPS!!! [PHP] Date/Time problem

2003-06-27 Thread Sparky Kopetzky
Opps! I meant strftime() as I have to pass timestamp from a file. Sparky - Original Message - From: "Adam Voigt" <[EMAIL PROTECTED]> To: "Sparky Kopetzky" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 11:07 Subject: Re: [PHP] Date/Time problem > ec

Re: [PHP] Date/Time problem

2003-06-27 Thread Adam Voigt
echo(date('T')); Works fine for me. On Fri, 2003-06-27 at 13:03, Sparky Kopetzky wrote: > Well, I got the time displaying sort of right but have a length problem. See, using > %T doesn't work in date() but %Z does but it returns a very long string 'Mountain > Daylight Time' when all I want is

[PHP] Date/Time problem

2003-06-27 Thread Sparky Kopetzky
Well, I got the time displaying sort of right but have a length problem. See, using %T doesn't work in date() but %Z does but it returns a very long string 'Mountain Daylight Time' when all I want is 'MDT'. Is there a way around this problem other than having to edit the string date() returns??

RE: [PHP] File upload HELP!!!

2003-06-27 Thread Daryl Meese
Hello, Have had similar problems with filenames containing spaces and, I imagine the & symbol might cause some problems but maybe not. Check if the file spaces are '%20', I also recommend removing odd characters with an eregi_replace statement ($filename = eregi_replace ("[^a-z0-9]","", $filename

RE: [PHP] Serving files with different filename from their own

2003-06-27 Thread Ivo Pletikosic
You can also initiate the download with headers yourself...tho it might be a bit cumbersome than just using direct links: Header( "Content-Type: application/octet-stream" ); Header( "Content-Length:" . filesize( $path ) ); Header( "Content-Disposition: attatchment; filename=$filename" ); readfile

[PHP] mime type

2003-06-27 Thread Brian V Bonini
I want to get php to output text/css for one .php file. I tried using header() and ini_set () but seems no matter what I do the Content-type remains text/html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File upload HELP!!!

2003-06-27 Thread Dustin Pate
I believe your problem has something to do with the fact that the filename has spaces in it. "Ian Young" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tearing our hair out here. Have been trying for ever to get files to upload. > The good news. We are connecting to database and obt

Re: [PHP] PHP-4.3.1 with bundled GD does not support jpeg?

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 23:48, Reuben D. Budiardja wrote: > I compiled and installed from source php-4.3.1 with the bundled GD. I > enabled it during configure using --with-gd, and double check that using > phpinfo. The bundled GD says it's 2.0. But when I tried using > imagejpeg() > i got: > Fatal

[PHP] File upload HELP!!!

2003-06-27 Thread Ian Young
Tearing our hair out here. Have been trying for ever to get files to upload. The good news. We are connecting to database and obtaining information on filename, size, type etc but no file!. Have made a tempdir d-ol/temp and have configured php.ini to reflect this.Maximum file size is the same a s

[PHP] Re: ignored php.ini?

2003-06-27 Thread Rob Adams
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, >I have php 4.3.2 running as isapi module on windows 2000. > I have a php.ini in d:\winnt > > but when I edit it the output from > > > > is as before. > > Any hints? Many thanks in advance, bye >

Re: [PHP] mysql split?

2003-06-27 Thread Chris Sherwood
Andrew... I think most likely you will have to pull the information into a php page and parse it. you then will be able to get accurate results and I dont know if mysql has an explode function it doesnt look like it http://www.mysql.com/doc/en/Function_Index.html - Original Message - Fr

Re: [PHP] mysql split?

2003-06-27 Thread Andrew McCombe
Does mysql have an explode function? I suppose this is the wrong place to ask... Andrew - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Andrew McCombe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 5:08 PM Subject: RE: [PHP] mysql split? > us

Re: [PHP] Bundled GD & Webalizer

2003-06-27 Thread Adam Voigt
PHP doesn't install GD. GD is a library that PHP can link against, giving you the ability to manipulate images. PHP doesn't give you GD. GD is an independent library. On Fri, 2003-06-27 at 12:09, Michael A Smith wrote: > No, you don't understand, I want to know where PHP installs GD. > > -Mich

[PHP] Re: Calling PHP from Java usign CGI...

2003-06-27 Thread Rodrigo Reyes
Catalin I am also quite new to all this. I'll tell you a bit more about what I am trying to accomplish here. I am working on some project which has a a lot of code written in PHP and is going to need also a lot of code in JAVA. So, I was thinking that it would be great if we could have PHP conn

Re: [PHP] Bundled GD & Webalizer

2003-06-27 Thread Michael A Smith
No, you don't understand, I want to know where PHP installs GD. -Michael On Fri, 2003-06-27 at 08:06, Adam Voigt wrote: > PHP did not remove your copy of GD, so this is > a system question, not PHP. > > > On Fri, 2003-06-27 at 12:03, Michael A Smith wrote: > > I compiled PHP 4.3.2 --with-gd, but

RE: [PHP] mysql split?

2003-06-27 Thread Jay Blanchard
use explode() -Original Message- From: Andrew McCombe [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql split? Hi I have a field in mysql that has paths to files such as: project/entertainment/andrew/job/1.jpg project/corporate/r

[PHP] mysql split?

2003-06-27 Thread Andrew McCombe
Hi I have a field in mysql that has paths to files such as: project/entertainment/andrew/job/1.jpg project/corporate/roberts/job/1.jpg project/corporate/andrew/job/1.jpg project/identity/john/job/1.jpg The first level is always 'projects'. What I want to do is get the unique name for the 3rd le

Re: [PHP] Bundled GD & Webalizer

2003-06-27 Thread Adam Voigt
PHP did not remove your copy of GD, so this is a system question, not PHP. On Fri, 2003-06-27 at 12:03, Michael A Smith wrote: > I compiled PHP 4.3.2 --with-gd, but now webalizer can't find GD? Where > is it? I tried installing the original library but that's not good > either. > > -Michael > --

RE: [PHP] Re: Seraching for good Hotel & room booking program.....

2003-06-27 Thread Miles Thompson
Don't flame me, this doesn't have a PHP back end, I suspect it's Flash Communications server at the back end, as there seems to be a constant data stream for virtually every change made on the form. But everyone should have a look at the Broadmoor's Reservation system, and play with it a bit ...

[PHP] Bundled GD & Webalizer

2003-06-27 Thread Michael A Smith
I compiled PHP 4.3.2 --with-gd, but now webalizer can't find GD? Where is it? I tried installing the original library but that's not good either. -Michael -- Michael Smith [EMAIL PROTECTED] "The great thing about democracy is that it gives every voter a chance to do something stupid." -Ar

Re: [PHP] mysql lock

2003-06-27 Thread Adam Voigt
Yes you seem to have it figured out, just do the lock in a normal mysql_query, following the MySQL manual for syntax, and you can release a lock whenever you want, but the rule is the sooner the better, since if more then one page or query tries to do a write, while you have it locked it has to wai

[PHP] mysql lock

2003-06-27 Thread anders thoresson
Hi, I've never used a lock on a MySQL table so far, but need one now. Two questions: 1. Do I set the lock by a normal query, but in the form of "LOCK TABLE WRITE", instead of "SELECT * FROM WHERE x = 1"? 2. Can I set the lock in one query, then perform multiple other queries on the table, i

[PHP] PHP-4.3.1 with bundled GD does not support jpeg?

2003-06-27 Thread Reuben D. Budiardja
Hello, I compiled and installed from source php-4.3.1 with the bundled GD. I enabled it during configure using --with-gd, and double check that using phpinfo. The bundled GD says it's 2.0. But when I tried using imagejpeg() i got: Fatal error: Call to undefined function: imagejpeg() in /usr/loc

[PHP] Content-Type:

2003-06-27 Thread Brian V Bonini
This could be an Apache issues, not really sure. I'm trying to output a php doc as text/css using But no matter what I do, changing it in the document, adding/altering apache mime types, all I get is text/html. The reason is I'm trying to use @import url('xx.css.php') and Mozilla seems to be ver

[PHP] exec problem in php (2 times execution)

2003-06-27 Thread Lepretre Olivier
Hi all, I have a php code that tries to execute an "rexec" function for a "at" command. For this I coded it in this way : $str = exec ("rexec -l usr1 -p usr1 myserver at now + 2minutes -f input file"; the rexec function in itself is running fine in shell mode but whene I try to execute it throu

[PHP] Is this a new PHP technology??????

2003-06-27 Thread Brian Dunning
Check it out: http://www.americansubstandard.com/index.php?sub=v&word=vmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Constants in heredoc strings?

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Stewart Is there a way to expand constants in heredoc strings without assigning the constant's value to a variable first? -- No. Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

  1   2   >