andu wrote:
This is a very busy list, over 100 message in a quiet day and most
people are helpful and decent, don't mind reading and learning.
Unfortunately there are some who mostly post stuff like 'read the
manual' and other shit like that. Stuffing e-mailboxes with such garbage
day after da
From: "Mauricio" <[EMAIL PROTECTED]>
> On the Address Bar I can see: index.php?slcAdd=1&slcAdd=2&slcAdd=3
> But when I get the value using $HTTP_GET_VARS['slcAdd']; it returns just
the
> last value. What can I do to get them all?
Name your select box as "slcAdd[]" and you'll have all of the values
David Nicholson wrote:
If you want *only* the ?:&/ characters changed then it can be done
with a regular rexpression, the e modifier, and the ord(), hex() and
strtoupper() functions, post back if you would like an example.
$new_str =
str_replace(array('?',':','&','/'),array('3F','3A','26','2F'),$o
From: "Gerard L Petersen" <[EMAIL PROTECTED]>
> My code looks like this.
>
> $test = "gerard's name is \"gerard\"";
> echo $test."";
> echo '';
> ?>
Just like HTML doesn't render newlines, it also doesn't understand using the
\ character as an escape character. You are creating this:
So, HTML
From: "Mauricio" <[EMAIL PROTECTED]>
> I wrote a JavaScript to set the values of a Select html object by client
> side. The values are copied from another Select that I create getting the
> values from the database. After the user set the values he/she wants to
add
> it in another form, for example
From: "PHPSpooky" <[EMAIL PROTECTED]>
> When I create any field and let data be sent into my mySQL DB through
> it.. it goes ok. But when I retrieve it.. the data comes completely
> unformatted.
Ah, this question again. Has it been four days already?
HTML does not render new lines. Have a look at
skate wrote:
okay, so i know there's an easy way to do this, and i've seen it done, sure of it. so please forgive the stupidity of my question, i don't even know where to begin to look in the archives either...
i have several forms on one page, they all submit a different variable, i then want to
RiGe wrote:
Is there possible to log outgoing mails sent via mail() function? I need to
know, when, which script (can be path to php file on server) and receipt of
mail that was sent.
Is there possible?
Not directly, unless your SMTP server is keeping a log.
Write your own wrapper function my_mail
John W. Holmes wrote:
DvDmanDT wrote:
I use to write my own search engines... That way they get customized
easier... You can write one that spiders like google... Hell, it even
found
my private server... And there's not a single link ther afaik..
Now, is it for web or site search? If
DvDmanDT wrote:
I use to write my own search engines... That way they get customized
easier... You can write one that spiders like google... Hell, it even found
my private server... And there's not a single link ther afaik..
Now, is it for web or site search? If site, just get a MySQL table with a
Balazs Halasy wrote:
I need to have the contents of $HTTP_RAW_POST_DATA because of
non-regular uploads (from browser to my home-made WevDAV server implementation
(done in PHP)). However, no matter what I
do, it is always NULL. I guess the following script should return
SOMETHING in $HTTP_RAW_POST
DougD wrote:
Sure.
It is pretty basic stuff. I have the following inserted in the middle of an HTML document to pull
in the current weather. It delays the loading of the rest of the page too
much as it queries to www.msn.com to pull weather data and then complete the
script.
If it were possible
DougD wrote:
I have a page with a particular PHP section that takes quite a time to load.
Is there a way I can delay that script to run after everything else has
loaded. I suppose it may need to use Javascript
You could use register_shutdown_function() to execute the code,
providing you don't
Jay Paulson wrote:
The company I work for just got bought out by a larger company. The larger company uses .NET from Micro$oft. I of course use all open source stuff for our web sites and now the new company wants to come in and pretty much blow away everything I have done and use their .NET setup
From: "Ow Mun Heng" <[EMAIL PROTECTED]>
>>
>>
>> The Location: header requires a correctly formed URL, ie http://...
>>
>
> I'm running fine using only Location:home.php on Mozilla & IE 6
>
> maybe I should change.
Please see my previous emails on the difference between "works" and
"right"...
> Thanks, but if I leave off this line then I get an error when I try and
> view my pages.
What kind of error, exactly?
You need to determine if you're running PHP as a module or CGI.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
From: "Ryan A" <[EMAIL PROTECTED]>
> I am just screwing around and getting used to arrays with a "foreach"
thanks
> to Michael,Jan and Evan from this list and have run into problems.
>
> My requirment is pretty simple (code is below too)
> 1)unset all the sessions that might have been set with refe
From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> > The four element array will be
> > 1 => 'one'
> > value => 'one'
> > 0 => 0
> > key => 0
>
> OK, some more
Jason Williard wrote:
In parsing a file, I ended up with a number of variables that include
spaces. Is there an easy way to remove a space from a variable?
$new_string = str_replace(' ','',$old_string);
?
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Archite
From: "Steve Buehler" <[EMAIL PROTECTED]>
> hm. Looks like on my localhost I can't seta cookie like this:
> setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost");
> if I change it to just:
> setcookie ("coach_access_login_id", "coach",0,"/","$cookhost");
> it will work. But then my
> h. This seemed to set the cookie just fine. Does this mean that
> either localhost in the browser or Apache/PHP on a windows box has to set
> the cookie differently than on RedHat/Apache/PHP? I am going on vacation
> next week and need to keep working on a project that is working fine on
t
> I have a page that queries the database then uses the data to build an
> excel spreasheet. THat spreadsheet is downloaded according to info in the
> headers. My manager wants to put the page inside of another HTML page to
> make it prettier, but then it breaks because headers are already writte
> I have PHP/Apache/MySQL installed on my WinXP laptop. I do this so that I
> can write programs when not connected to the Internet (like when
> traveling). I am trying to set a cookie from the http://localhost site on
> my computer and it doesn't get set. Does this sound like something wrong
>
> I've got a problem with preconfigured server (Apache 1.3/MySQL 3/PHP 4):
>
> Files and directories created by a PHP script are always owned by the
apache
> user and apache group. But the script itself is inside of a virtualhost
> which has another user and group (web2 / ftponly)!
>
> So in fact t
Ney André de Mello Zunino wrote:
Ray Hunter wrote:
$fooVar = mysql_fetch_assoc($result)["barColumn"];
No bug here...mysql_fetch_assoc($result) is a function that takes a
result set as an argument and returns only one row as an associated
array...that is why you need to do
Thanks for the quick
Jason D. Williard wrote:
I am trying to build script that will parse a file on the user's computer.
There are 2 things that I am not quite sure about.
1) How to read a file on the user's computer, and not on the server.
http://us2.php.net/manual/en/features.file-upload.php
2) How to parse a line s
Ryan A wrote:
I GOT IT
this is where the data was coming from:
and this is where i take the values and dump it into an array/variables that
i can call when and where i please:
$pppno)
{$asdf[$nn]=$pppno;
$nn++; }
?>
I just took out some of the breaks so it will take less space but y
Ryan A wrote:
Hi,
Thanks for replying.
I tried that and have 2 numbers like so:
and tried to echo it like so:
Echo of one is and echo of two is:
Echo of one is and echo of two is:
the output i got was:
**
32563Echo of one is 5 and echo of two is: 6
Echo of one is and echo of
Curt Zirzow wrote:
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
think it was made to be intentionally confusing. For what reason, I
don't but all that matters to most is: it works.. and foreach has
I cant type nor proof read today... at least before hitting send.
I think I understood you.
Hank TT wrote:
I've read the official manual on session handling, as well as the section in
"PHP Developer's Cookbook" (2/e, Hughes & Zmievski). But I still cannot
make a cookie persist across browser sessions -- very frustrating.
I use PHP 4.1.1 running as a CGI in Win32.
Here is a snippet:
==
Frank Keessen wrote:
I've got a form with a field called datebirth[];
After submitting the form; it must put the datebirth field (or fields) into the mysql format -mm-dd and after that put it in a session:
$date_array = split("-", $_POST['datebirth']);
$mysqldate = $date_array[2]."-".$date_ar
Curt Zirzow wrote:
Include files are expanded into the parent file as if they file is
in the file that included it.
Ah... clear as mud. heh... ;)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
-
imran wrote:
CGI Timeout
The specified CGI application exceeded the allowed time for processing.
The server has deleted the process.
"
does it mean that I have to use set_time_limit so the script doesn't time out ? I don't really understand why I should do that.
You may be reaching an IIS imposed
Curt Zirzow wrote:
Ok... I'm getting the red pen out now :)
[snip]
the each() function returns a one element array that the current
(internal) array pointer is pointing to and will return false if at
the end of the array.
It actually returns a four element array (as per the manual).
the list() fu
> Hello everyone,
> Am new to php and have run into a problem while reading my book... can
anybody tell me what does this mean:
Hi... let's see who gets this one first... :)
> foreach($invoice as $number => $pppno)
$invoice is an array. foreach() is going to loop through that array one
element a
> I am able to see the contents of the $company_name array. The next
> part involves storing this as a session variable.
>
> I am trying to link this page to another search page using the href=\"full-profile.php?name=".$row['company']. "\">--Link--
If you're passing the company name in the
$details is an array (just like $company_name was). Try to view
print_r($details); and see what you get.
---John Holmes...
- Original Message -
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 3:18 PM
Subject: [PHP] Store array as Se
Chris Hayes (SENSE) wrote:
i have to move data from a table with a datetime (2003-05-14 13:36:04)
to a unix timestamp (e.g. 2147483647) . Any ideas?
ALTER TABLE Table ADD COLUMN unix_time_column INT;
UPDATE Table SET unix_time_column = UNIX_TIMESTAMP(mysql_time_column);
--
---John Holmes...
Amazon
> * Thus wrote 386-DX ([EMAIL PROTECTED]):
> > Hello. Let's say I have something like this:
> >
> > function aa($test) {
> > $a = 8;
> > echo $test;
> > }
> >
> > $a = 2;
> > aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".);
>
> http://php.net/eval
No... you need to make $a glo
Merlin wrote:
I am trying to replace a backslash inside a string. Somehow nothing workes,
not the str_replce, not preg_replace, not erreg_replace.
$new_str = str_replace('\','-',$old_string);
or
$new_str = str_replace("\\",'-',$old_string);
But this begs the question of why do you think you need to
Ow Mun Heng wrote:
Hi,
I have this problem, which could easily be solved through a name
change but I would like to learn more.
There's a table set up from a MySQL query like this
row1) Eval # Title # Heads My Findings
row2) P1000 Title16
Peter James wrote:
A while ago, Philip Olson wrote:
As of 4.3.2, if you compile PHP with --enable-memory-limit
you may use memory_get_usage(). This is documented and
will show up when the next PHP manual is built.
This function is not documented in the PHP manual, but is in the zend copy:
http:
KEN - 2mediaZone wrote:
(B> I'm trying to find out how to get multiple values from text area box
(B> .
(B>
(B> Values are like this.
(B>
(B> aaa\n
(B> bbb\n
(B> ccc\n
(B> ddd\n
(B> eee\n
(B>
(B> I need to take "\n" from each value and put all the values to array.
(B
(BUse explode()
TWSC HQ wrote:
Is this possible :
How do i call the cookie value (surname) with Perl if it was set with PHP?
Yes, a cookie is still a cookie no matter where it's set. Ask on a Perl
list how you read cookies.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Archi
Torsten Rosenberger wrote:
is it possible to find out the memory consumption on a php script ?
I trie to develop a chat with php and SHM and want to fiend out how
much memory is used to scale the chat server
No, not now. I seem to remember talk about a function that would help
with this being ava
Mike Brum wrote:
I'd like to start to seriously do some OOP coding and "take things to
the next level". But as I understand it, PHP5 is going to make quite a
few changes/improvements to PHP4's current handling of OOP.
Given that the PHP5 beta has been out for approx. 1 month, do you think
it makes
Ryan A wrote:
Hey John,
I dont think its the browser because I have tried this with opera 6,opera 7,
IE and NN with the same results...
But when i checked the phpinfo() it says that cookies are enabledDo you
think its worth it to search and replace each Location header with .SID?
Well, if SID h
Ryan A wrote:
I know you can manipulate the php.ini file via htaccess or by putting some
instructions in the include file...is there any way to turn on cookies again
and turn off session.use_trans_sid so i can go back to the old way it was?
because I have a lot of header("location:") statement
Thomas Hochstetter wrote:
Hi there.
I got a question from someone why the following (from the manual) will not
bring the desired output:
/* if I open the following txt file and in explorer*/
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20);
echo "$newtext
Irvin Amoraal wrote:
I have two independent websites, both with their own mySQL db's. I would
like to run a query in site A against site B's database. I am trying to
establish a connection using something like:
$conn = mysql_connect("abc.com:3306", $user, $pass);
A warning is returned to the brow
Binay Agarwal wrote:
Hi all!
As a php developer i need to know how can i separate my "business logic tier" with "presentation". I mean wht all different kinds of php Templates are available and which one to go for better efficiency and speed? Where can i find the resources. Please help me
Matthew A. Blasinski wrote:
I'm trying to track session data and merge several related services
through a common server-side session (using Apache). One condition is
that it won't use cookies to store the user data OR the session ID.
Another is that the services we're merging use different lang
> Another stupid newbie question...(btw, is there a list more geared towards
> the newbies?)
Yes, it's called the manual.
> Is the file_put_contents() function not available in PHP 4.3.2?
Seriously: www.php.net/file_put_contents
---John Holmes...
--
PHP General Mailing List (http://www.php.n
From: "Lee Stewart" <[EMAIL PROTECTED]>
> I'm moving an application that I'm in the trying to move to a new
> platform. It was running fine on an older Linux platform with PHP
> 4.0.3 and Apache 1.3.14. The new platform is also Linux, with PHP 4.2.2
> and Apache 1.2.26 -- with register_globals o
> How can I easiest rewrite A and IMG tags? I'm fetching a page with
> fsockopen() and I need to rewrite these tags before sending it on to a
user.
>
> My own theory is that it's made with Regular Expressions. I just don't
> know these myself.
If you're writing one of those "anonymous" browsing pr
Peda wrote:
I want to upload some file to my web site.
[snip]
But It doesn't work.
Do you have file uploads enabled in php.ini? Take a look at a phpinfo()
page for details.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professio
The threading is messed up on this message, so sorry for the top post.
Actually, the method that Shaunak gave is the best method to use. If you
took your questions and had them formatted from this:
> What color are you eyes?
>
>Blue
>Green
>
to this:
What color are you eyes?
[EMAIL PROTECTED] wrote:
who can tell me what's the pattern string mean.
if(ereg("[\\][n]",$username))
{
/*Do err*/
}
It's looking for a \ character or a \ character followed by the letter n
anywhere within the string $username.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/
Carlos Castillo wrote:
HI,
I have the following problem, i have a website with php and asp files, in
one asp file i create some cookie that i need to access on another php
file.do you have any idea.???
$_COOKIE['cookie_name']
Who cares where the cookie was made. If the page is on the sam
> Let's say I have a number: 1281924
>
> The rules call for removing "1280+", meaning remove 128 and all 0's that
> come after it, until you run into another number.
>
> In the end, it would leave 1924, and everything else on the beginning
would
> be gone.
$new_number = preg_replace('/^1280+/'
Miles Thompson wrote:
At 04:09 PM 7/24/2003 +, Curt Zirzow wrote:
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
> * Thus wrote Bill Pilgrim ([EMAIL PROTECTED]):
> > If php and html are to be included in the same document, does the
document extension always have to be .php ? Are there ways
Daryl Meese wrote:
Well, I know I am not running the latest version of PHP but I don't believe
this is accurate. I believe PHP case sensitivity is based on the os that
processes the file. Can anyone clear this up.
Yes, you're wrong. :)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/regis
> Subject: [PHP] Software Application Engineer WANTED (PHP/MySQL Guru)
I hope there are job postings like this if/when I get out of the Army! :)
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Take out the plus sign... type != 'Meal Plans'
And using single quotes in your query might make things easier (no
escaping...)
$dbqueryshipping1 = "select * from tempuserpurchase where
usersessionid='$User_Shopping_Id' and day='1' and type!='Meal Plans'";
You don't need quotes around '1' since i
From: "Beauford.2005" <[EMAIL PROTECTED]>
> Yes, I'm still screwing around with this stupid redirection thing, and
> either I'm just a total idiot or there are some serious problems with
> PHP. I have now tried to do it another way and - yes - you guessed it.
> It does not work.
>
> I mean really,
From: "Curt Zirzow" <[EMAIL PROTECTED]>
> * Thus wrote James Hatridge ([EMAIL PROTECTED]):
> > I've got a search page written for my web site. I can find the html page
I
> > want by keyword. Now I need to get the title of that page in to a
variable.
> > In other words I have a file name, for exampl
> When registered globals is set to off this does not effect the $PHP_SELF
> variable right? In other words I should be able to call $PHP_SELF with
> out having to do this $_SERVER['PHP_SELF'], right?
No. With register_globals OFF, $PHP_SELF is not set.
---John Holmes...
--
PHP General Mailin
From: "Jeff Stillwall" <[EMAIL PROTECTED]>
>
> Now I'm (possibly) getting somewhere:
>
> When I modify the function to be this (notice the key name change by
adding
> "s"):
>
> function setupUserEnv ($userArray) {
>
> $_SESSION['loggedIn'] = 1;
>
> foreach($userArray as $key=>$value) {
>
From: "Jennifer Goodie" <[EMAIL PROTECTED]>
> > ! am trying to count the number of items in this table. The table
> > has one field in it.
> >
> > The code I am using is:
> >
> > $dbquerymeal = "select COUNT(*) from mealtype";
> > $resultmeal = mysql_db_query($dbname,$dbqueryshipping1);
> > if(mysq
Beauford.2005 wrote:
Hi,
I am trying to figure out how to redirect a user back to a page but not
having much luck.
For example: I click on a menu item on my site which goes to a.php. This
file includes another file that determines if they are logged in or not.
If not, they are sent to login.php
Beauford.2005 wrote:
Sorry all, apparently this doesn't work on either Windows or Linux.
Again, I thought it was working and once I got farther along I see that
it really wasn't. Basically what I get after I login is an empty screen.
Here is what I have :
This is the script that runs to see if the
Quit spamming us. We don't want to visit your lousy poker site.
---John Holmes...
- Original Message -
From: "Rausch Alexandru" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 22, 2003 4:42 AM
Subject: [PHP] Hi
MYSQL problems problems.
I want to install an user login ap
> I have a form that has a select form object with where I can select
multiple
> values. The select is called "number". When I post the form, I get a lot
> of variables called $number with the various values I selected. Is there
a
> way that I can make this an array of values?
name it "number[]
Hardik Doshi wrote:
> There is still one problem. On so many forms on my
education intranet application, students are
submitting the final projects with the supporting
documents and images. Once they submit the final
project, my script is performing serveral error
checking for the file size, exten
> In my first post I showed that one of the versions of the logout page
> that I used had this line in it.
>
> setcookie("user_info","",(time()-3600),"/");
>
> Shouldn't that take care of the cookie?
Like someone else said, that'll take care of a cookie called "user_info".
Your session cookie is n
> I have 7 checkboxes, which make up the array information. I currently use
> implode to make the array, however that array only consists of the
> information that it checked.
>
> What I need to do now is make it so the array will always be 7 items, but
if
> there isnt a checkbox for the item, I wa
> What is the point of having a unique ID for each session if the only
> thing that matters is the data stored within it? Why have a session id
> at all if it can't be used to uniquely track a user?
Well, it can, and it does. I guess it's all in how you use it. If my session
id is "abcd", then whe
> I have an upload form that will be used for some really large files. I
need to ask a couple of questions about the ways of improving the success
rate that I have using it.
>
> (1) what is the best and most stable method for uploading a large file.
Sometimes the transfer peters out.
>
> (2) how ca
From: "Chris W. Parker" <[EMAIL PROTECTED]>
> > CPT John W. Holmes <mailto:[EMAIL PROTECTED]>
> > on Monday, July 21, 2003 12:39 PM said:
> >
> > You should still consider the user logged out since the
> > session is empty, right?
>
>
You have the same session id, but there is no data in it, so what's the
problem? You should still consider the user logged out since the session is
empty, right?
If you really want, upon logout, make a new session id with session_id(),
md5() and uniqid().
---John Holmes...
- Original Message
> --- Andrei Verovski <[EMAIL PROTECTED]> wrote:
> > I am need to pass serialized assotiative array via form hidden
> > field (not GET or POST).
>
> This is impossible. A hidden form field is simply a form field that is not
> displayed to the user. Form actions must be GET or POST.
>
> > In order t
> hi, i'm trying to select * through 3 tables - is the following syntax
correct?
>
> $sql="(SELECT * FROM mjp_cc)";
> $sql="UNION";
> $sql="(SELECT * FROM imc_cc)";
> $sql="UNION";
> $sql="(SELECT * FROM pmp_cc)";
> $sql.=" ORDER BY savedccactivity DESC";
>
> i basically just want to spit out the c
I think you need to make a second index that just consists of the one column
ALTER TABLE biblio ADD FULLTEXT (title)
if you want to search on just that one column.
---John Holmes...
- Original Message -
From: "Angelo Zanetti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Ju
Ow Mun Heng wrote:
Hi,
Got a quick question.. How do I get the table headers also
printed/retrieved by PHP for 'echo'??
mysql_field_name()
Next time, check the manual. :)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Pr
Hardik Doshi wrote:
Hi,
I have implemented the Auto session timeout after the
specific period of time.
What i am doing is..At the time of login to the
system, my script is storing the current unix time
into the session and later on at every user click, It
(my script) is checking the stored unix
John Manko wrote:
You dont need to touch any php code, just modify the html so the
properlinks point to https where needed.
I tried that. However, the session is different when going from 80 to 443.
You'll have to pass the SID through the form or URL when switching from
HTTP to HTTPS.
--
-
Curt Zirzow wrote:
On and advanced note, there are ways to protect a users password on a
normal http connection. The authentication program I helped developed
and use has the abilty to make a hash of the password on the client side
then send the hash value to the authentication script. The authen
Tan Ai Leen wrote:
Hi,
Can someone confirm that php does not have a auto timeout feature? Meaning
something like session will auto expire irregardless of whether the browser
is close or not?
If you're using the default session handler and storing the session
files in the location specified in php.
Mark Clarkstone wrote:
If any one finds any bugs or anything please let me know!
Got this:
Warning: readfile(content/subcats/Products.html): failed to open stream:
No such file or directory in /home/britspy/public_html/mnet/index.php on
line 76
--
---John Holmes...
Amazon Wishlist: www.amazon.
Andu wrote:
--On Saturday, July 19, 2003 20:02:52 +0100 Mark Clarkstone
<[EMAIL PROTECTED]> wrote:
Hey Guys I need People to test out My Program, Mini serve to find out
more go to www.mini-networks.uni.cc
The black text on dark-blue background is really inviting, did you try
black on black??
A
Yasir Malik wrote:
Given a date in MySQL datetime format, how do I extract the elements?
That is get the month, day, year, hour, ...
You could do it in the query using DATE_FORMAT(), MONTH(), YEAR(), etc.
You can do it in PHP by sending the MySQL timestamp through strtotime()
and then using date(
From: "Reuben D. Budiardja" <[EMAIL PROTECTED]>
>
> This is a hypothetical situation. The real situation is that I am trying
to
> have a protocol for data sent by client using Flash. But the basic
question
> remains.
So FLASH is creating the string that you must decode in PHP? Is there any
way to
> On Friday 18 July 2003 02:42 pm, Chris Shiflett wrote:
> > --- "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote:
> > > Suppose I have a long string like
> > > $myStr = "$string1:$string2:$string3";
> > >
> > > I can obviously explode them using ":" as the separator. But what if
> > > $string1 cont
> Ok, I want to specify who the mail is coming from by using the
sendmail_path
> option in the PHP.ini. I've added the [EMAIL PROTECTED] to it, but I want
> to be able to dynmaically change [EMAIL PROTECTED] to [EMAIL PROTECTED] or
> whatever else. Anyone have any ideas how I can do this? I'm pu
Peda wrote:
Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec,
O_RDWR) failed: Permission denied (13) in
/home2/pena/public_html/listing1.php on line 3
Can anyone tell me what is wrong?
PHP is trying to save session data in /tmp by writing a file there, but
permission is den
> Ok, before you go responding with percentages, I should note this.
>
> consider this:
> Image1 : 100x100 (Ratio = 1:1)
> Image2 : 100x200 (Ratio = 1:2)
>
> Space available for display : 75x75
>
> now, i can say "width=75% height=75%", but this will
> only work for Image1, since Image2 will end
> Angelo Zanetti napsal(a):
>
> > Anyone know where I can download a demo point-of-sale program from?
preferably written in php and preferably a point-of-sale designed for
restaurants? any links etc will be great
>
>
> This problem (POS) is too serious to be written in PHP(via browser).
> Maybe in
> Artoo wrote:
> > How do you repost data in a textarea field of a form? I've set up a
session
> > variable named old_data and want to repost the data into the textarea of
a
> > form so it can be re-editied.
>
> You can use the $_POST variavle in the text area
>
> eg
>
>
You should run htmlentit
> You'll be waiting a long time, until the end of time :)
> Because the php4 module is now named php-src, so change
> that in the url and you'll be set.
Thanks. Someone needs to change the link in the Configuration chapter of the
manual, too, b/c that's how I always find it. :)
---John Holmes...
Chris Blake wrote:
My php.ini file has gone awol, how or why I don`t know
You can normally just get a new php.ini from here:
http://cvs.php.net/co.php/php4/php.ini-dist
but it's giving a 505 error right now. May have to wait a bit.
First, create a PHP page with just the function on it.
Lo
1101 - 1200 of 2763 matches
Mail list logo