t error message are you getting?
>
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 x289
> [EMAIL PROTECTED]
>
> -----Original Message-
> From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 23, 2001 3:28
Hey all. I have a problem. I made a script that handles file uploads,
and all the while I was testing on mozilla and netscape, totally forgot
about IE. I have it set to only accept jpeg pics. It works no problem
on mozilla and netscape, but IE isnt do too well. When I try to upload
a jpeg
e != "image/jpeg") {
echo "Please let the picture be in jpeg format.
Thanks.\n"; exit();
}
Gerard Samuel wrote:
> Hey all. I have a problem. I made a script that handles file uploads,
> and all the while I was testing on mozilla and nets
$query = "SELECT mpn_job.ID, job, assigned_to, status_date, category";
$query .= "FROM mpn_job, mpn_job_category WHERE CID =
mpn_job_category.ID";
$query .= "AND category = '$category'";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
foreach
Gentlemen, thank you for correcting me with the space ont the end. Ill
try and make it a habit to echo out the query.
All is well in the land of PHP, till next time.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Hey all. I just started venturing into functions. I have a function
that displays a form, but I have a problem with getting the multiple
strings back after the submit. Im tryed a return statement at the
bottom of the function, but it cannot take more than one string. I
tried turning the ar
I was doing it like so ==>
$string = array(var1, var2...);
return string;
I also tried to implode the array into a string and return the result,
but no go.
David Robley wrote:
> On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote:
>
>>Hey all. I just started venturing into funct
ay = array("$new_cat,$assigned_to","$job","$assigned_by")
$string = implode("|",$array);
return $string;
}
The variables that form $array are from the form
David Robley wrote:
> On Thu, 30 Aug 2001 10:19, Gerard Samuel wrot
echo "$data[0]";
}
$array = array("$new_cat,$assigned_to","$job","$assigned_by");
$string = implode("|",$array);
return $string;
}
The variables that form $array are from the form....
es that form $array are from the form....
David Robley wrote:
> On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote:
>
>>I was doing it like so ==>
>>$string = array(var1, var2...);
>>return string;
>>
>>I also tried to implode the array in
:
> On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote:
>
>>Mozilla sucks sometimes with email formatting.
>>Correction==>
>>
>>Here is a snippet example.
>>
>>function assign() {
>> global $adminurl, $string;
>> to
o with this new found knowledge called 'functions'.
David Robley wrote:
> On Thu, 30 Aug 2001 11:38, Gerard Samuel wrote:
>
>>top(); is a function that displays a menu, that works.
>> is where the form goes.
>>In its current setup less the array/implode/explod
I can only speak for apache...
==> apachectl graceful
Raphael Pirker wrote:
> Hi,
>
> i just moved my PHP project from my local PC to the online webserver and I
> will need to do a few adjustments to the server. since the server is used by
> all the employees in the company, there is no chan
Hey all. Im trying to reduce some lines of code that has muliple lines
of str_replace. I figure lets try using arrays but its not working.
E.g. I have about 15-20 lines like this.
$message = str_replace(":D", "", $message);
Im trying
$path = "images/forum/icons/";
$one = array(":D",":)");
$two
Can a file be truncated from the beginning, and by x amount of lines??
Thanks
--
PHP General 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]
Sterling, your example looks doable, Ill report back when Im done with
these other functions. Thanks
Sterling Hughes wrote:
> On Fri, 7 Sep 2001, Gerard Samuel wrote:
>
>
>>Can a file be truncated from the beginning, and by x amount of lines??
>>Thanks
>>
ng Hughes wrote:
> On Fri, 7 Sep 2001, Gerard Samuel wrote:
>
>
>>Can a file be truncated from the beginning, and by x amount of lines??
>>Thanks
>>
>>
> Truncated from the beginning? Do you mean truncate the file by X
> lines, st
es,
the whole file gets dumped, not what I want. The form Im using can only
put out 109 bytes plus /n total. In this example (if you want to call
it one), I would like it to kill the first 2 lines in the file. Thanks
to Hughes for putting me on to this, its a little clearer...
Gerard Samu
hey, I have a large file and I want to keep the last x row of it. I
figured out how to navigate to the point where I want to extract the
data, but I cant figure out how to extact from the file current $fp and
write out the data to another file.
Think of it like this, when the file gets to be x
Im trying to get results from a mysql command (describe tablename;)
into php. I know about the php functions, but I would like the mysql
nameing instead. Im trying like so
$query = "DESCRIBE users";
$result = mysql_query($query);
$array = mysql_fetch_array($result);
foreach ($array as $data)
Try this.
$sql = "select bp_section_id,bp_section_name from bp_sections order by
bp_section_name";
$sql_result = mssql_query($sql);
while ($row = mssql_fetch_array($sql_result)){
$bp_section_id = $row["bp_section_id"];
$bp_section_name = $row["bp_section_name"];
$ln = "$bp_secti
John Holcomb wrote:
> I'm sorry for those who my have responded to my last
> email. I thought I had plenty of room in my email
> client, but I forgot to delete my trash, so I did not
> get any responses. So, I'm going to restate my initial
> problem. Any help will be greatly appreciated.
>
> Th
Hey I figured out my problem. Instead of using a foreach loop, I used a
while loop and everything is cool man :).
UPDATED CODE:
$query = "DESCRIBE mpn_users";
$result = mysql_query($query);
while ($data = mysql_fetch_array($result)){
echo "$data[0], $data[1], $data
Hey all. I have a script that uses that creates/manipulates files, and
it works great on my end. Thats no question. There is a small
percentage of my users that when they try to run the file it cannot
create or modify files. I suspected file ownership may be wrong on
files and directories.
'b'. This is useful only on systems
> which differentiate between binary and text files (i.e. Windows. It's
> useless on Unix). If not needed, this will be ignored. "
>
> Can you ignore it as well?
>
> Maxim Maletsky
> www.PHPBeginner.com
>
>
> ---
Ok, I found out what was causing some of the people who were using my
script and have it fail. They are on a shared server and apache is
being run as user nobody, so therefore the script is being run as
nobody. But the the files has to have user ownership foo foo. Is it at
all possible to have
ROTECTED]
> Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: Gerard Samuel <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: PHP <[EMAIL PROTECTE
A means that is not specifically tied to Apache functions.
Just looking for a way so that it works no matter the webserver.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote:
> A means that is not specifically tied to Apache functions.
> Just looking for a way so that it works no matter the webserver.
>
Seems like the function stream_get_meta_data() will fill the job..
--
PHP General Mailing L
On Sunday 01 August 2004 12:19 pm, Randall Perry wrote:
> Any major gotchas going from 4 to 5? Any problems with PostgreSQL
> connectivity? Will I have to scour and rewrite current scripts?
>
My opininon would be to wait on maybe 5.0.1, especially if its on a production
box. Im not having an abs
Im parsing a document, and its stopping prematurely.
I get this error ->
not well-formed (invalid token)
Its breaking on the word ->
Exposé
in the document.
Is the "é" an illegal character?
Any ideas how to work around this???
Thanks for any pointers...
--
PHP General Mailing List (http://www.p
Im writing an xml parser. Most of the documents Im parsing, is written by
someone else, so have no control over the validity of the xml file.
Im running into problems with parsing a few documents where the author uses
"exotic" characters such as "é".
Characters like this kill the parser. Ok.
Im
On Thursday 05 August 2004 11:33 pm, CD Baby wrote:
> > I'm writing an xml parser.
>
> Gerard -
>
> All of that stuff has already been taken care of for you. Hundreds of
> hours have gone into developing GREAT xml parsers!
>
> http://www.php.net/dom
> and
>
On Saturday 07 August 2004 11:22 am, Jason Barnett wrote:
> I assume you are using PHP4's DOMXML functions? If that's the case then
> you have a bit of a problem. XML support changed between 4.0 and 5.0, we
> use libxml2 (which supports UTF-8), but the object model / methods changed
> to better c
I've read (at least on 2 occasions) that one can secure their forms, to
ensure that the form came from the site, and not via a script kiddie.
Not the method where one puts a graphic of random text to copy to the
form, but via a hidden field.
It has to do with having a hidden field of data, that mu
Chris Shiflett wrote:
You might find these resources helpful:
http://education.nyphp.org/phundamentals/PH_spoofed_submission.php
http://shiflett.org/talks/oscon2004/php-security/36
Hope that helps.
Thanks. These are doable..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Chris Shiflett wrote:
You might find these resources helpful:
http://education.nyphp.org/phundamentals/PH_spoofed_submission.php
http://shiflett.org/talks/oscon2004/php-security/36
Hope that helps.
Just wanted to chime in to the list and to Chris.
I've been mulling the example in the second link si
Eugene Voznesensky wrote:
I am looking for sources for weather information and found the site
http://www.nws.noaa.gov/forecasts/xml/
Is there any way to get historical weather data via a PHP Script or any available SDK?
Take a look at http://www.weather.com/services/xmloap.html
Unfortunately they
Peter Brodersen wrote:
On Wed, 18 Aug 2004 17:59:34 -0700, in php.general
[EMAIL PROTECTED] (John Holmes) wrote:
$token = md5(uniqid(rand(), true));
.. is a pretty bad idea, since the output could include quotes,
newlines, low-ascii-characters, thereby messing up the form.
How do you figure that?
Chris Shiflett wrote:
This doesn't provide any benefit that I can see, but I'm ready to admit
that I might be missing something. If the token is captured, the
conditional statement can still be bypassed, because the value of
$some_hidden_key isn't necessary for this at all.
Anyway, I'm a bit rushed
Say I have a form like ->
...
If this form is submitted, the $_GET['id'] variable *is not* available.
If the method is changed to "post", the $_GET['id'] variable *is* available.
Is this how forms are supposed to work???
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Chris Shiflett wrote:
Yes, when you use the GET method, the query string of the URL that your
browser requests contains the form data. I think you want to have
something like this in your form:
Thanks John/Chris for the explanations...
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Ok, I know what it does, but Im currently trying to track some "oddity"
down.
My script works fine when output compression is turn off (its off in
php.ini, and ob_start('gz_handler') is not being used.
If I turn on compression via ob_start('gz_handler'), I get sporadic
problems with page loading
Sheni R. Meledath wrote:
session.use_trans_sid On On
Im currently running FBSC 4.10/php 4.3.6, and the only difference with
our session setup is session.use_trans_sid.
Mine is off.
For sessions to get lost means that either
a) You have cookies disabled in the browser
b) Yo
b/php/20040412/mbstring.so' -
/usr/local/lib/php/20040412/mbstring.so: Undefined symbol
"zif_mb_regex_encoding" in Unknown on line 0
Anyone heard of this problem or suggest a solution?
Gerard Samuel <[EMAIL PROTECTED]> wrote:
Dont cross post your messages to other lists
Mos
The situation.
Im currently using a home brewed groups permission code in my site,
but for limited users/groups its ok. Beyond that, the code will take
the fast road to hell.
I started to look in depth at bitwise operations today,
and after much googling, and looking at other code, came up with t
Marek Kilimajer wrote:
Gerard Samuel wrote:
The situation.
Im currently using a home brewed groups permission code in my site,
but for limited users/groups its ok. Beyond that, the code will take
the fast road to hell.
I started to look in depth at bitwise operations today,
and after much
Marek Kilimajer wrote:
Your checks are something like
if($user['tom'] & $perm['read']) echo 'Tom can read';
Only the 3rd bit is checked, all others are ignored and won't do any harm.
Anyway, the "clean" way of setting permissions is:
$user['tom'] = $perm['execute'] | $perm['write'] | $perm['read'];
Frédéric Hardy wrote:
What is PECL ?
PECL is a repository for PHP Extensions, providing a directory of all
known extensions and hosting facilities for downloading and development
of PHP extensions.
The packaging and distribution system used by PECL is shared with its
sister, PEAR.
...
Is it cl
Matthew Sims wrote:
Just mostly curious but is there a way to assign one variable to multiple
variables in one single line?
Rather than do this:
$var2 = $var1;
$var3 = $var1;
Is there a method to perform a:
($var2,$var3) = $var1;
$var1 = $var2 = $var3 = 'some_value';
--
PHP General Mailing List (ht
Is it possible for a class to extend the state of its parent class?
In the example provided, I was hoping for the statement to say ->
"I wish 10 equals to 10"
If there is a solution, I would like it to work with php 4+
Thanks
-
class foo
{
var $foo = 0;
}
$foo = new foo;
$foo->foo = 10;
cla
Dustin Krysak wrote:
Hi there... I have a simple search page (mysql database), and I can get
it to display the results no issues, but i was wondering how I could
display a message stating there were no results, instead of just having
the field blank. I am familiar with IF and ELSE statements, bu
Im trying to dynamically construct a multidimensional array
to be used with PEAR's HTML_Menu.
http://pear.php.net/manual/en/package.html.html-menu.intro.php.
Basically, Im pulling the data from a DB table, and trying to
attempt to convert the original array to what is needed for HTML_Menu.
If you l
'AB4wFQI2QUpzujZ8' =>
array (
'id' => 'AB4wFQI2QUpzujZ8',
'pid' => 'AB4wFQI2QUewz3P7',
'name' => 'Register',
'url' => 'modules/user/register.php',
),
);
function foo(&$arr
I could have sworn that references and I used to get along...
In the menu::hasChild method, I cant seem to reference $this->_data.
$this->_data is supposed to be a reference to the original array $array
in the local scope.
The only way to make this script work is to call on the $GLOBALS array
in me
Gerard Samuel wrote:
I could have sworn that references and I used to get along...
In the menu::hasChild method, I cant seem to reference $this->_data.
$this->_data is supposed to be a reference to the original array $array
in the local scope.
The only way to make this script work is to c
Just wondering.
With the advent of php5 with its OO capabilities, is php-general too
*general* for advanced php5 users?
For me, I've learned quite a lot from listening to others, and participating
in threads on php-general & php-db.
Currently, Im investigating OO theory, and how I can translate it
raditha dissanayake wrote:
Gerard Samuel wrote:
Just wondering.
With the advent of php5 with its OO capabilities, is php-general too
*general* for advanced php5 users?
This topic has been discussed at least once a month. Please refer to
list archives.
I wasn't aware of this. So I searched
#x27;m not going to pursue this any further, as my original post
was meant as an inquiry and not as an arguement.
Thanks for replying...
Gerard Samuel wrote:
Just wondering.
With the advent of php5 with its OO capabilities, is php-general too
*general* for advanced php5 users?
For me, I've lear
Marek Kilimajer wrote:
Gerard Samuel wrote:
Niklas Lampén wrote:
It's wrong to think people here don't know how to code object
oriented. You can do that with PHP4 too - and you should in many cases.
In some time PHP4 will be old school and PHP5 will be the general
one. In my oppinion,
Mag wrote:
Hi,
I have never done this before (but in my first test it
seems to work), I am include()ing a file into a
variable like this:
$a=include("th-file.php");
Will this give me any extra problems later on? or is
this resource intensive?
I've seen other people do something similar to this,
but
Im unable to find documentation on this.
Does one exist? If so can you point me to it.
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Curt Zirzow wrote:
* Thus wrote Gerard Samuel:
Im unable to find documentation on this.
Does one exist? If so can you point me to it.
I dont think anything officially exist in the manual, yet. The type
hint can only be an Object, and will cause a fatal error if not the
paticular object isn
Aidan Lister wrote:
Hi Gerald,
If you did see something like that, it was a mistake in our manual :)
I've documented typehinting now, though it will take a while to show up in
the manual.
http://php.net/language.oop5.typehinting
It may have been Example 18-23 at
http://us2.php.net/manual/en/lang
Im playing around with iterators, and Im getting this error ->
php in free(): warning: chunk is already free
Im running php 5.0.3 on FreeBSD 5.3.
Any ideas what may be wrong?
Thanks
$array = array(0 => array('world'));
class RecursiveArrayIterator extends ArrayIterator implements
RecursiveIterato
Jason Barnett wrote:
Gerard Samuel wrote:
...
$array = array(0 => array('world'));
class RecursiveArrayIterator extends ArrayIterator implements
RecursiveIterator
{
function hasChildren()
{
return (is_array($this->current()));
}
function getChildren()
{
Via cli that is.
Is there anyway besides making an actual system call
(i.e. exec()/system()/etc...) to determine the server's name via php's
cli???
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mirco Blitz wrote:
Probably the Global Variable $SERVER_NAME helps you out.
The global variable $SERVER_NAME is not available via cli
(at least for me)
-Ursprüngliche Nachricht-
Von: Gerard Samuel [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 13. Februar 2005 19:33
An: php-general
Bostjan Skufca @ domenca.com wrote:
php_uname()
That works ->
$ php -r "var_dump(php_uname('n'));"
string(20) "gladiator.trini0.org
Thanks
On Sunday 13 February 2005 20:37, Gerard Samuel wrote:
Mirco Blitz wrote:
Probably the Global Variable $SERVER_NA
Im currently using md5() to hash strings to be used,
as an id for a cache system.
Im trying to determine if md5() would be the fastest,
*cheapest* solution.
The only native php functions that I know of are md5() and sha1().
Are there any other native php functions that hash
strings?
Thanks
--
PHP G
Richard Lynch wrote:
Gerard Samuel wrote:
Im currently using md5() to hash strings to be used,
as an id for a cache system.
Im trying to determine if md5() would be the fastest,
*cheapest* solution.
The only native php functions that I know of are md5() and sha1().
Are there any other native
Jason Barnett wrote:
Gerard Samuel wrote:
...
Im trying to determine if md5() would be the fastest,
*cheapest* solution.
...
What Im looking for is something where the generated hashes can
be reproduced.
For example, md5('foo') today, will be equal to md5('foo
Looking for libraries that are capable of decompressing files, such as
those in zip or tar format.
Im aware of PCL(Tar/Zip), and was wondering if there were any others out
there.
Just want to see whats out there before I settle on one of them.
Thanks
--
PHP General Mailing List (http://www.php
On Friday 21 May 2004 04:44 pm, Justin Patrin wrote:
> Gerard Samuel wrote:
> > Looking for libraries that are capable of decompressing files, such as
> > those in zip or tar format.
> > Im aware of PCL(Tar/Zip), and was wondering if there were any others out
> > there.
I installed php5 RC2 on winXP with Apache 2 on my dev box.
I started with the sapi module and it worked great there.
I edited apache's httpd.conf file to try out php as a CGI,
(as mentioned in the install file), and I keep getting server 500 errors
--
Internal Server Error
The server e
On Saturday 29 May 2004 10:21 am, Andrei Verovski (aka MacGuru) wrote:
> Hi,
>
> Anyone knows ho to obtain MAC address of server where PHP is running (with
> PHP function, of course)?
>
> Thanks in advance for any suggestion(s)
>
I use passthru() to execute shell commands, and use preg_match() to
On Saturday 29 May 2004 08:55 am, charles kline wrote:
> Hi all,
>
> I was having a conversation with a friend and talking about coding
> standards in the open source community (focusing on PHP). I seem to
> remember there being a document out there that sort of laid it out
> pretty well.
>
> Anyon
On Saturday 29 May 2004 12:35 pm, Andrei Verovski (aka MacGuru) wrote:
> Hi, Gerard,
>
> Can you please be so kind to post your code snippet you have described
> below?
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not sure if the subject was worded correctly, but
I was looking to see if this (or something like it) is possible.
$array = array('key_1' => 'This is some text',
'key_2' => '' . $array['key_1'] . ''
);
And the array structure would be something like
Looking for suggestions on if this bit of code can be improved..
The goal. To extract the conditions in the WHERE of an sql statement.
I would appreciate any pointers you may have...
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
On Wednesday 23 June 2004 05:08 am, Jason Wong wrote:
> On Wednesday 23 June 2004 16:42, Vincent DUPONT wrote:
> > I have a script that need to run on ISAPI module on one server and on CGI
> > on anther server. I would like my code to be able to react differently
> > depending on the CGI/ISAPI mode
On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote:
> I looked at server configurations but i couldn't find anything usefull. I
> tried to change IE settings to accept all cookies but nothing changed.
>
> Maybe someone knows where's the problem..
I dont know of all the specifics of your situat
On Friday 02 July 2004 02:13 pm, Torsten Roehr wrote:
> Passing the session id via GET/POST may be ugly but makes you independent
> of the browser's cookie settings.
I would have to agree...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 02 July 2004 04:38 pm, Matthew Sims wrote:
> As long as the user keeps his browser pointing at your site, then they'll
> stay in the currect session. The moment they shut down the web browser,
> the session is lost.
>
The logic doesnt compute with me. I guess I'll have to try this mysel
On Wednesday 07 July 2004 05:43 pm, Shaun wrote:
> Hi,
>
> Can someone tell me why
>
> echo '$_SERVER[HTTP_REFERER] = '.$_SERVER[HTTP_REFERER].'';
>
> Produces
>
> $_SERVER[HTTP_REFERER] =
>
> Is this a problem with my server configuration, if so is there a SERVER
> variable I can use instead?
>
I
Im trying to do something like sprintf() because I would like to
have control over placeholders.
The code I've posted works for the most part, but when I introduce content
that has the same characters as my placeholders (%s and %i), it breaks to
hell...
Anyone got any ideas on how to fix, or tel
On Thursday 08 July 2004 10:12 pm, Michal Migurski wrote:
> Much easier recommendation: use provided sprintf, but parse out any
> unwanted placeholders first, using preg_replace.
>
After some thought, I think I'll follow this recommendation.
With the frequency that I would have to execute this cod
On Wednesday 28 January 2004 09:32 am, Stuart wrote:
> Diana Castillo wrote:
> > is there any function that will always replace a "&" with a "&" in a
> > string?
>
> $string = str_replace('&', ' ', $string);
>
Just a heads up on using the above method.
If there are more than one & in the string it
On Wednesday 28 January 2004 10:23 am, Stuart wrote:
> Not from where I'm sitting [PHP 4.3.3RC1 (cli) (built: Jun 21 2003
> 23:40:27) on FreeBSD built from ports]. Code...
>
Hey, as least we can agree with something. FreeBSD :)
> print str_replace('&', '&', 'Here is one & and here is another
On Wednesday 28 January 2004 01:35 pm, John W. Holmes wrote:
> Depends how you define "mess them up"... If you want to display
> literally on a web page, then you need to write in the source.
> So this may not be messing things up but rather preparing them to be shown
> on a web page, lite
Tested on winXP/Apache 2.0.48 (cgi)
php 4.3.3
var_dump( __FILE__ );
gives -> C:\Program Files\Apache Group\Apache2\htdocs\index.php
php 4.3.4
var_dump( __FILE__);
gives -> c:\program files\apache group\apache2\htdocs\index.php
php 4.3.5RC2
var_dump( __FILE__ );
gives -> C:\Program Files\Apache G
On Thursday 12 February 2004 06:52 pm, carlos castillo wrote:
> does anyone know how to reproduce a mp3 file with php?
>
reproduce???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I dont have a Mac handy to get the value of the constant PHP_OS.
If anyone has access to a Mac, please reply to me with the output of
var_dump( PHP_OS );
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 13 February 2004 01:27 pm, Ben Ramsey wrote:
>
> In addition, as a special exception, Ben Ramsey gives permission to link
> the code of this program with those files in the PEAR library that are
> licensed under the PHP License (or with modified versions of those files
> that use the sam
On Saturday 14 February 2004 02:34 am, - Edwin - wrote:
> I don't have a Mac Server here; only a G5 with the "ordinary" Panther ;)
>
> The answer must be the same though...
>
>
>var_dump(PHP_OS);
>// result is -> string(6) "Darwin"
>
> ?>
>
Thanks
--
PHP General Mailing List (http://www.
On Wednesday 18 February 2004 12:20 am, ajay wrote:
> how do i set this variable?
>
Set it via php.ini. Usually php knows the temp directory the OS is using, so
only set this if you need something other than the OS's temp directory...
Windows: c:\windows\temp
*nix: /tmp
--
PHP General Mailing
On Wednesday 18 February 2004 01:25 am, John Taylor-Johnston wrote:
> I'm not even sure if this is a Unix thing, or if it can be done, but ...
> How can I read the amount of memory used in a directory /var/something/
> (and maybe sub-directories) and echo it? John
The amount of memory or the amoun
On Wednesday 18 February 2004 01:38 am, John Taylor-Johnston wrote:
> Both for that matter. I have root access. I want to echo how much /var/xxx
> contains, and while I'm at it, how much my partition contains and how much
> is used.
>
Im not sure about memory, but for diskspace you can look at
ht
On Wednesday 18 February 2004 11:24 am, Diana Castillo wrote:
> How do I convert ' to ' before displaying it in HTML?
> Thanks,
>
You could leave it as it is, and the browser would convert it to ' if its an
HTML page...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Im looking for the fastest way to modify array keys.
For example, changing ->
$foo['hello_world'] = 'HELLO WORLD';
to
$foo['hello'] = 'HELLO WORLD';
The only way I can think of is to loop through the array,
copying array values to new keys, and unsetting the old key.
Thanks for any insight you m
301 - 400 of 441 matches
Mail list logo