Thank you very much, I do appreciate your help.
(B
(BUr script doens work, but, curiously, it works when I changed a bit...
(B select left(loc1,3) as locx, openart_id, tit1, pub1, id1, ref1 from
(Bopenart_table
(B
(BIf possible, can I ask one more thing?
(BThis part is the problem
(B .j
Jared Williams wrote:
>> Given this, why is the default value of arg_separator.output
>> '&' and not '&'?
> URLs don't have & in them.
> The & is specific escaping for _only_ XML.
No, XML and SGML which includes XHTML and HTML. How often are PHP sessions
used to generate output for languages ot
On Wednesday 20 April 2005 03:05, Brian Dunning wrote:
> I know this is a common question but I have RTFM and STFW until I'm
> blue in the face - I really need some help here. :)
>
> I've got some forms into which users are going to enter text that
> frequently contains funny characters (pilcrows
Richard Lynch wrote:
> But if it's going to break a billion scripts, it's probably not gonna
> happen to follow a "standard" that isn't the only game in town. XHTML is
> not ubiquitous. [shrug]
Representing & characters as & has been a requirement of SGML and XML
based languages, HTML included,
Dan Rossi wrote:
Thanks this seemed to work except say you had a class Packagename_Classname
its trying to load the file like that Packagename_Classname.php
Well, you can put whatever logic you need into the autoload function.
It's up to you.
HTH
--
PHP General Mailing List (http://www.php.net/)
Why not try selecting both the short and the full values of loc1 from
the database? Then you can display them both in the html output.
Select loc1, left(loc1,3) as locx, etc
Have I missed your point here?
Mark
-Original Message-
From: Sugimoto [mailto:[EMAIL PROTECTED]
Sent: 20 April
You might consider using JavaScript to set the cookie, as that will
execute on the client and therefore use the client's time to make any
calculations regarding expiry. This may or may not suit your purpose.
Mark
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: 20 A
Hello,
I have txt file "text.txt" that contains:
line1:one
line2:two
line3:three
line4:
Line 4 contains empty string.
If I use f*() functions to read from the file:
$handle=fopen("text.txt","r");
while (!feof($handle)) echo("-".chop(fgets($handle))
Hi,
i got a problem to write automaticaly varibles in classes.
i got a simple object name test like this
classes Test{
public $id;
public $text;
}
i want to affect my value to my variable like this
$test = new Test
$champ = id;
$valeur_champ = 4;
$test->$champ = $valeur_champ;
my exam
Richard Lynch wrote:
On Tue, April 19, 2005 7:03 am, Jochem Maas said:
The 'other' guy mentioned that while() is faster than foreach,
is this true?
Don't know ; Don't care.
You should never loop through so many things in PHP that it matters in the
first place :-)
I read a few days ago somewhere o
On Wednesday 20 April 2005 13:29, marc serra wrote:
> Hi,
> i got a problem to write automaticaly varibles in classes.
>
> i got a simple object name test like this
>
> classes Test{
> public $id;
> public $text;
> }
>
> i want to affect my value to my variable like this
> $test = n
Hello,
Is it possible to delete a session cookie from browser? If so how?
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry jocham, for you getting this twice.
I'd assume foreach is recommended because it lends to more readable
code. More readable code, is generally considered better code.
Personally I'd disagree and use while( list() = each() ), because it
doesn't create a copy of the array in memory, especiall
On Wednesday 20 April 2005 14:51, William Stokes wrote:
> Hello,
>
> Is it possible to delete a session cookie from browser? If so how?
Just unset it.
>
> Thanks
> -Will
--
Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)
PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
William Stokes wrote:
Hello,
Is it possible to delete a session cookie from browser? If so how?
http://www.php.net/manual/en/function.session-destroy.php
See the example.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Jay,
Tuesday, April 19, 2005, 1:28:25 PM, you wrote:
J> Normalization has no effect on sort order where any DB is concerned.
J> Sort order is determined in the sort clause in the query. So if you want
J> to sort by location and you are using MySQL your ORDER BY clause should
J> be location.
> The actual SELECT statement is as follows:
> $sqlCourses="SELECT * FROM " . $tbl_courses . " WHERE courseDate > '" .
date("Y-m-d") . "' ORDER BY " . $orderBy . " ASC";
> the $orderBy variable is set via $_GET['orderBy'] which is sent by the
> table headers as below:
I'm curious why you aren't jo
explode by ","
$output1 = explode(",",$string);
use a loop and explode array $output1 by ":"
Hope this helps.
Saswat
On 4/18/05, Sebastian <[EMAIL PROTECTED]> wrote:
> $string = '4:gaming,5:hardware,3:software,8:security';
>
> what is the best way to explode then loop this string after its t
[snip]
SELECT *
FROM Course
ORDER BY locationID ASC
Now the ORDER BY can be any one of five things based on the variable
passed by the hyperlink for the column they clicked on (location,
course, date, category, and instructor
[/snip]
If you had a JOIN to the location table you could order by the
Hello ,
Need to do handle a file upload done via http POST.
I can read the content length and from POST and get the contents.
But, how do I get the exact file ??
Eg. suppose for uploading a .doc file I could see that it sends the
font type and other parameters also..
I am not sure how does i
[snip]
Sorry that this has degenerated into a MySQL question rather than PHP.
I was originally looking for how people handled it in PHP.
---
Actually it didn't degenerate, it was a SQL question all along. Unless
you had a desire to build sortable arrays in PHP this type of sort
should always be don
[snip]
Need to do handle a file upload done via http POST.
I can read the content length and from POST and get the contents.
But, how do I get the exact file ??
Eg. suppose for uploading a .doc file I could see that it sends the
font type and other parameters also..
I am not sure how does it w
Did you try using the $_FILES superglobal?
-- Original Message ---
From: Saswat Praharaj <[EMAIL PROTECTED]>
To:
Sent: Wed, 20 Apr 2005 18:26:14 +0530
Subject: [PHP] handling file upload (OT not exactly PHP)
> Hello ,
>
> Need to do handle a file upload done via http POST.
>
Hi,
I've installed PhpMyAdmin 2.6.2, PHP 5.0.4 and Mysql 4.1.11 and PHP is
working fine but when I try to start PhpAdmin I get this message:
"PHP cannot load mysqli extensions, please controll your PHP configuration".
In "Paths and directories" I wrote:
extensions_dir="e:\php\ext\"
and in "Dynami
Hello Kim,
Tuesday, April 19, 2005, 6:44:58 PM, you wrote:
K> If you are still looking for "tips" and want to get
K> complicated/fancy, I have seen columns used called sort_order more
K> than a few times. This should not be too hard to maintain for
K> things like a few buildings, etc., where the l
Hello Richard,
Tuesday, April 19, 2005, 9:12:14 PM, you wrote:
R> Just build a JOIN query and do one query.
Doing a join on four tables is ok? (serious question, not being
facetious).
R> No, it is *NOT* sorting on the ID number.
I can definitely say it is sorting on locationID, categoryID,
or i
Hello Chris,
Tuesday, April 19, 2005, 1:23:53 PM, you wrote:
C> Firstly, what DB are you using?
MySQL.
C> SELECT
C> course.name,
C> location.name,
C> instructor.name
C> FROM
C> course
C> INNER JOIN location ON location.id = course.locationID
C> INNER JOIN instructor ON instructor.id = co
> R> Just build a JOIN query and do one query.
> Doing a join on four tables is ok? (serious question, not being
> facetious).
Yes. I've built a query before (for reporting purposes) that join
15 tables... Just make sure the tables are indexed properly.
thnx,
Chris
--
PHP General Mailing List
[snip]
Doing a join on four tables is ok? (serious question, not being
facetious).
[/snip]
Yes, it is OK. Make sure that you have the tables properly indexed and
you'll have no problems.
[snip]
R> By definition, in SQL, if you don't specify a sort order (or in
R> this case a second order) then th
On Tuesday, April 19, 2005 18:46, Ryan A wrote:
> Hey,
> Thanks for replying, I tried using the test example of Petar
> Nedyalkov, but when i try to create the following:
>
> CREATE TABLE `profile_log` (
>`profile_id` int(10) default NULL,
>`user_id` int(10) default NULL,
>`last_log
Saswat Praharaj wrote:
Hello ,
Need to do handle a file upload done via http POST.
I can read the content length and from POST and get the contents.
But, how do I get the exact file ??
Eg. suppose for uploading a .doc file I could see that it sends the
font type and other parameters also..
I a
I have a database field that I need to read and do some conversion on.
Here is what the raw data from the database looks like:
--
1084751309jpenaDisney Vignette Fleximon disk utilization
alert C:\ at 85%1084799703bpalmafixed.1084799713bpalmaclosed
--
After conversion, it should look li
On Wednesday 20 April 2005 15:22, Bob Palma typed:
> I have a database field that I need to read and do some conversion on.
> Here is what the raw data from the database looks like:
>
> --
> 1084751309jpenaDisney Vignette Fleximon disk utilization
> alert C:\ at 85%1084799703bpalmafixed.10847
> > Thanks for replying, I tried using the test example of Petar
> > Nedyalkov, but when i try to create the following:
>
> > CREATE TABLE `profile_log` (
> >`profile_id` int(10) default NULL,
> >`user_id` int(10) default NULL,
> >`last_login` timestamp NOT NULL
> > ) ENGINE=MyISAM CH
Wow! Thanks.. That works great. Just one small hitch though. After it
prints all of the data properly, it adds one more '$date' on the end
which gets printed as '12/31/69 7:00:pm'. Is there a way to do all
groups - 1 ?
Bob Palma
[EMAIL PROTECTED]
Duncan Hill wrote:
On Wednesday 20 April 200
On Wednesday 20 April 2005 16:01, Bob Palma typed:
> Wow! Thanks.. That works great. Just one small hitch though. After it
> prints all of the data properly, it adds one more '$date' on the end
> which gets printed as '12/31/69 7:00:pm'. Is there a way to do all
> groups - 1 ?
No reason for it
Thanks. I took a look, and you were right. It was creating another
entry in the array at the end, so I used an if statement checking the
value of [1] and [2] in $array_of_fields.
Thanks for all the great help
Bob Palma
[EMAIL PROTECTED]
Duncan Hill wrote:
On Wednesday 20 April 2005 16:01,
On Wednesday, April 20, 2005 09:57, Ryan A wrote:
>
>>> Thanks for replying, I tried using the test example of Petar
>>> Nedyalkov, but when i try to create the following:
>>
>>> CREATE TABLE `profile_log` (
>>>`profile_id` int(10) default NULL,
>>>`user_id` int(10) default NULL,
>>>
> Theres something wrong coz its not working as expected...
> I followed instructions and created a table like this:
>
>
> CREATE TABLE test_last_visitors (
> profile_id int(10) default NULL,
> user_id int(10) default NULL,
> ttimestamp timestamp(14) NOT NULL) TYPE=MyISAM;
>
> then I ran this
Ryan A wrote:
then from my php script (test_last_visitors.php) I ran this test SQL:
$SQL = "UPDATE test_last_visitors SET profile_id=".$profile_id.",
user_id=user_id+1,
ttimestamp=now() WHERE profile_id=1 ORDER BY ttimestamp ASC LIMIT 1";
Why are you setting the profile_id equal to a value when yo
Hey,
> Why are you setting the profile_id equal to a value when you also have
> that in your WHERE clause? I may have missed something here, but I
> though the purpose of this was to track the last ten visitors to a
> certain page, and if this is the case, why increment the user_id when
> updatin
I searched through my server's system (I'm not running it, it's my ISP) and
finally found that TIFF isn't compiled into GD. I can get them to do it, but
I need to know what functions to use! Are they under a different file type?
I'm pretty sure I searched through thoroughly for the function. Did
Hi,
I have this piece of code:
class test1 {
var
$data = 'hi',
$node = false;
function test1() {
$this->node =& new test2($this);
}
}
class test2 {
var
$data = 'yoyo',
$root = false;
fu
Petar Nedyalkov wrote:
On Wednesday 20 April 2005 13:29, marc serra wrote:
Hi,
i got a problem to write automaticaly varibles in classes.
i got a simple object name test like this
classes Test{
public $id;
public $text;
}
i want to affect my value to my variable like this
$test = new
hello,
I created little script in PHP 5 in which I entered the following line
the "hidden" input helped me to keep the rep_source variable with the same
value in the next page than in the new page.
I'm not a specialist but it has been working well until today.
Olivier
energize!
-Messa
Evert|Rooftop Solutions wrote:
Hi,
I have this piece of code:
class test1 {
var
$data = 'hi',
$node = false;
function test1() {
$this->node =& new test2($this);
}
}
class test2 {
var
$data = 'yoyo',
Looks like mysqli is the new method of talking to mysql? Should I be moving
away from the legacy mysql_* functions? I'm running php5 and mysql 4.1.11 on
IIS5 and Apache 2.
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Petar Nedyalkov wrote:
On Wednesday 20 April 2005 03:05, Brian Dunning wrote:
I know this is a common question but I have RTFM and STFW until I'm
blue in the face - I really need some help here. :)
I've got some forms into which users are going to enter text that
frequently contains funny charact
David Dorward wrote:
Richard Lynch wrote:
But if it's going to break a billion scripts, it's probably not gonna
happen to follow a "standard" that isn't the only game in town. XHTML is
not ubiquitous. [shrug]
Representing & characters as & has been a requirement of SGML and XML
based languages,
Dasmeet Singh wrote:
...
Get some decent editor with syntax highlighting
ditto. :-)
Thanks.. That was really silly..
BTW.. pls suggest some good editor.. I use notepad currently..
OFFS.
http://www.php-editors.com/
http://www.google.com/search?hl=en&lr=&q=good+editor+for+php&btnG=Search
choose one.
On 4/20/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Looks like mysqli is the new method of talking to mysql? Should I be moving
> away from
> the legacy mysql_* functions? I'm running php5 and mysql 4.1.11 on IIS5 and
> Apache 2.
Finding clients who even run 4.0.x is rare for me, most st
Jochem Maas wrote:
also I believe print_r() and var_dump() have a few odditities regarding
display of recursion with regard to objects... internals mailinglist
archive
might tell you more on that.
I think I have the answer, when I pass a var to print_r it isn't passed
by reference, so there will
Please don't hijack threads.
Olivier GOEGEL wrote:
hello,
I created little script in PHP 5 in which I entered the following line
the "hidden" input helped me to keep the rep_source variable with the same
value in the next page than in the new page.
I'm not a specialist but it has been working
I find it not quite right that imagecolorallocatealpha is limited to 128 levels
right now (0-127) ... the png format can support 256 with true 32bit images. I
am concerned about this because I am using php to make an application that
loads a nonstandard image format (MM2/MC TEX) and converts it t
> Looks like mysqli is the new method of talking to mysql?
> Should I be moving away from the legacy mysql_* functions?
> I'm running php5 and mysql 4.1.11 on IIS5 and Apache 2.
Why not use PDO :)
Jared
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
Has anyone written anything, perhaps in PEAR or elsewhere, that allows for
some portability of XSLT use across PHP 4 with Sablotron, PHP 4 with
domxml, and PHP 5?
I'm doing some work on a project at the moment, and the server it will be
hosted on initially has PHP 4 compiled with Sablotron support
On 4/20/05, Jared Williams <[EMAIL PROTECTED]> wrote:
> Why not use PDO :)
Pacific Decadal Oscillation?
I'm stumped.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> On 4/20/05, Jared Williams <[EMAIL PROTECTED]> wrote:
> > Why not use PDO :)
>
> Pacific Decadal Oscillation?
>
> I'm stumped.
PHP Data Objects
http://www.php.net/pdo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andrew D. Keyser wrote:
I find it not quite right that imagecolorallocatealpha is limited to 128 levels
right now (0-127) ... the png format can support 256 with true 32bit images. I
am concerned about this because I am using php to make an application that
loads a nonstandard image format (MM2/M
On 4/20/05, Jared Williams <[EMAIL PROTECTED]> wrote:
> PHP Data Objects
>
> http://www.php.net/pdo
Sweet.. DBI for PHP.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
i need to store some files that contain text in my database. im planing to
upload the file using a php script. what id like is to be able to take the
info(text writen in the file) from the file and store it on a plain text
file and then store it since i plan to consult the info in these plain
Hi group
This is kinda hard to say in words, so I'll give a little example
Class A
function x
calls function guid
function y
function z
function guid
Class B extends A
function y
calls function x
function guid
So what I'm wondering is when class B calls its function Y, it will i
* Andy Pieters <[EMAIL PROTECTED]>:
> This is kinda hard to say in words, so I'll give a little example
>
> Class A
> function x
> calls function guid
> function y
> function z
> function guid
> Class B extends A
> function y
>calls function x
> function guid
>
> So what I'm wonde
Jochem Maas wrote:
>> Representing & characters as & has been a requirement of SGML and XML
>> based languages
> you might be able to put this func to use somewhere:
Not really, since my concern is with URLs modified by the session handling
code and that can be fixed by changing the arg_separato
On Wednesday 20 April 2005 23:36, Matthew Weier O'Phinney wrote:
>
> Since Class B overrides method guid, function x will call the method
> from Class B.
Thank you.
Andy
--
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C+++
On Wednesday 20 April 2005 23:14, Cima wrote:
> them. is there a way to these types of files in php or some other way?
The easiest way is to tell your users you expect file format to be text only.
You can test for mime type by using built-in php functions (and should do
so!).
The hard way me
Hi,
Thursday, April 21, 2005, 3:15:31 AM, you wrote:
TDJ> I searched through my server's system (I'm not running it, it's my ISP) and
TDJ> finally found that TIFF isn't compiled into GD. I can get them to do it,
but
TDJ> I need to know what functions to use! Are they under a different file type?
Andy Pieters wrote:
> This is kinda hard to say in words, so I'll give a little example
>
> Class A
> function x
> calls function guid
> function y
> function z
> function guid
> Class B extends A
> function y
>calls function x
> function guid
>
> So what I'm wondering is when
Thank you both, this was indeed helpful.
Now for one more question...
I'd like to get my code to calculate the time between the current date
(when the page is loaded by the visitor) and the very next Tuesday at
11pm. I suspect I can do this with date("w") but I can't quite figure
out how to make
I'd like to get my code to calculate the time between the current date (when
the page is loaded by the visitor) and the very next Tuesday at 11pm. I
suspect I can do this with date("w") but I can't quite figure out how to make
Tuesday the beginning or end of the week in order to accomplish this.
On 4/20/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
>> Dasmeet Singh wrote:
>> BTW.. pls suggest some good editor.. I use notepad currently..
> http://www.php-editors.com/
> http://www.google.com/search?hl=en&lr=&q=good+editor+for+php&btnG=Search
>
> choose one.
>
This can take a long time, I k
Hi All,
I'm hoping someone can help me figure out a regex that will replace
pseudo-HTML codes in a string with desired HTML equivalents. In particular,
I'm trying to implement a message quoting facility, such as when you click
on the 'quote' button in phpBB.
An example of a source string w
thanks to all for the kind support.
i resolved the problem, i would like to share the same with you:-
1. made the changes in php.ini (gave sendmail path)
2. gave my smtp server ip address and name in /etc/hosts file
3. gave my smtp server name in /etc/mail/sendmail.mc file
4. then made sendmail.
Thanks. That's what I was looking for...
"Burhan Khalid" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
> William Stokes wrote:
>> Hello,
>>
>> Is it possible to delete a session cookie from browser? If so how?
>
> http://www.php.net/manual/en/function.session-destroy.php
>
> See the
74 matches
Mail list logo