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
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
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
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
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
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
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??
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
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
-
Internet GRATIS es Yahoo! Conexión.
Usuario: yahoo; contraseña: yahoo
Desde Buenos Aires: 4004-1010
Más ciudades: clic aquí.
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
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
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
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
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
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
[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
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
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
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
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
[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
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
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
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
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
(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
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
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
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
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
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
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
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
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.
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
Hi All,
Can I call function Defined PHP from VBScript?
regards..
Shishir Kumar Mishra
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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()
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
> >
> >
>
>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
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'
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'=>
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
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")
>
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
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
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
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
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
> 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.
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
101 - 182 of 182 matches
Mail list logo