Hi,
Sunday, October 6, 2002, 4:20:40 AM, you wrote:
JB here is the URL that will give you the php compile info on my website
JB (phpinfo)
Looks identical to mine as far as mcrypt is concerned.
Try changing the $key = to this:
$key = 'test';
As it looks like the key is getting truncated to 0
Hi,
Sunday, October 6, 2002, 7:32:11 AM, you wrote:
JB ok - that made things work... here is the output. it looks like it is
JB still encrypting it. what would the resolution be for this, or can I set
JB the key to anything I want?
Ok I have got to the bottom of it :)
You changed the name of
Hi,
Friday, October 4, 2002, 3:01:53 PM, you wrote:
JB I've seen a few other post on this, and it sounds like there is more then
JB one of use that is trying this script. I've got it so that I can use the
JB commands, but I still get errors on the page...
JB here is what I have done.
JB I
Hi,
Friday, October 4, 2002, 10:14:31 PM, you wrote:
DÖJ ?php
DÖJ header(Content-Type: application/xml);
DÖJ //query database records
DÖJ $connection = mysql_connect(localhost, user, pass) or die(can't connect);
DÖJ mysql_select_db(webbish);
DÖJ $query = SELECT id, title, artist FROM
Hi,
Untested but it would be something like this:
?php
header(Content-Type: application/xml);
//query database records
$connection = mysql_connect(localhost, user, pass) or die(can't connect);
mysql_select_db(webbish);
$query = SELECT id, title, artist FROM xmldb;
$result =
Hi,
Saturday, October 5, 2002, 4:10:03 AM, you wrote:
JB I had not downloaded mcrypt, but I download it (which required a later
JB version of mhash so I downloaded, and installed it too). I compiled
JB everything with the instrucitons you listed, and I am still getttng the same
JB error
Hi,
Thursday, October 3, 2002, 6:01:53 PM, you wrote:
O You know...maybe I should mention where this code is...
O I have my main file which loads using 'require.once' a second file called
O 'everything.php'.
O Inside everything.php is a class called 'mainclass' which is called by the
O mail
Hi,
Thursday, October 3, 2002, 6:06:52 AM, you wrote:
AG Hello,
AG how can I use global variables in my web portal? I have read the php
AG documentation, but it works only in the same file.
AG I want use more global variable on many php site.
AG For example:
AG In login.php I use the code
AG
Hi,
Tuesday, October 1, 2002, 5:11:08 PM, you wrote:
PO $title_err = ($adTitle == ) ? 1 : strlen($adTitle) 50 ? 2 : 0;
PO Can anyone tell me why this is not evaluating correctly (returning a
PO value of 1) when $adTitle is an empty string?
It is right according to your expression, try
Hi,
Tuesday, October 1, 2002, 1:36:43 PM, you wrote:
JB is there a way to for an input box to come up looking for a value? I know
JB there are a few ways I could resolve my current issue, but I would prefer to
JB display an inputbox, and use that value in my query.
JB basically I would do a
Hi,
Wednesday, October 2, 2002, 11:52:34 AM, you wrote:
TR Hi,
TR Tuesday, October 1, 2002, 1:36:43 PM, you wrote:
JB is there a way to for an input box to come up looking for a value? I know
JB there are a few ways I could resolve my current issue, but I would prefer to
JB display an
Hi,
Wednesday, October 2, 2002, 12:21:29 PM, you wrote:
JB OK Tom - that script worked beautiful.
JB there are a few different applications that I need this for, and I'm
JB wondering if you can either help me with the coding, or refer me to a
JB webpage that can get me started in the right
Hi,
Monday, September 30, 2002, 10:54:25 PM, you wrote:
DÖJ I need to apply iso-8859-1 encodeing to the ?xml version=1.0? that
DÖJ this function creates:
DÖJ new_xmldoc(1.0).
DÖJ I tried to replace the line but ofcourse the new_xmldoc function creates
DÖJ object-tree of the document and I
Hi,
Tuesday, October 1, 2002, 4:12:46 AM, you wrote:
DB List,
DB On my php.4.2.3, Apache 4.0.42 install my echo statements all output the
DB number of characters written (in hex).
DB So this code:
DB echo addrone$id-addrone/addrone;
DB echo addrtwo$id-addrtwo/addrtwo;
DB echo
Hi,
Tuesday, October 1, 2002, 1:02:46 PM, you wrote:
PO Notice: Use of undefined constant year - assumed 'year' in
PO c:\apache\htdocs\jotr\includes\globalFooter.php on line 3
PO ?php
PO $year = getdate();
PO $print_year = $year[year];
?
PO Is this not valid code?
No
It should be
Hi,
Monday, September 30, 2002, 5:20:48 AM, you wrote:
d I made a MySQL database with a dictionary in it. Above there is a form in
d wich you can specify some parameters. The problem is that the navigation
d doesn't work well. I always get the first 5 results. Can somebody help me
d out? There
Hi,
Friday, September 27, 2002, 10:20:32 AM, you wrote:
SM Thanks to Micah Ive resolved my old problem, but now im working on something new
and fairly gnarly...i ahve a data entry form and one of the textareas on the form
needs to have the ability to
SM take a table...from users who dont know
Hi,
Thursday, September 26, 2002, 9:50:28 AM, you wrote:
DC Philip,
DC Running test.php arg1 arg2 test.txt
DC Then searching test.txt for arg1, it was found here:
DC HTTP_GET_VARS[test_php_arg1_arg2]
DC Nowhere else.
DC Gotta be a server issue?
DC --- Philip Hallstrom [EMAIL PROTECTED]
Hi,
Thursday, September 26, 2002, 4:45:04 AM, you wrote:
SF How do I encrypt the data and decrypt it back using PHP? I do know that hte
SF random number can not be used becuase it will make it impossible to decrypt
SF it.
SF Thanks!
Here is a simple class for encoding and decoding:
class
Hi,
Thursday, September 26, 2002, 12:02:29 AM, you wrote:
RM Could somebody help me with the correct syntax for an ereg_replace to
RM replace literal occurences of the quote character in a string. I can't
RM seem to get it right.
RM In other words, I have a form input variable -- that
Hi,
Tuesday, September 24, 2002, 7:22:24 PM, you wrote:
RB Hi,
RB I'm generating XML files with the domxml functions. Everything works fine,
RB but I can't set the !DOCTYPE blah SYSTEM my.dtd.
RB I tried to add a textnode, but are translate in lt; gt; quot; :(
RB Thanks for your help.
Hi,
Sunday, September 22, 2002, 2:44:54 PM, you wrote:
JS Folks, I have a PHP script that needs to be executed automatically every 15
minutes. I have the option of doing this on a RedHat linux box, or on Windows 2000
Server.
JS How would I do this (on either platform) and which would be
Hi,
Sunday, September 23, 2001, 3:25:02 PM, you wrote:
NV I am new to php and that the folowing error: Warning: mysql_num_rows():
NV supplied argument is not a valid MySQL result resource in
NV /home/tbonestu/public_html/smallimages.php
NV i dont know what i am doing wrong here is the code:
NV
Hi,
Saturday, September 21, 2002, 12:30:48 PM, you wrote:
P Hi,,
P my server is located in the US and i live in Sweden, so when i try to run
P the following command i get a 8hour diffrence,, anyone got any idea of how
P to solve this?
P date(Y-m-j)
P regards
P Patrick
A quick fix that
Hi,
Thursday, September 19, 2002, 5:29:06 AM, you wrote:
BY What does this do?
Here is the class again with all errors fixed and some unfinished bits
but it should be enough to get you started. It uses recursion as it
repeats after one thousand .. ie one, two, three one thousand,
two
Hi,
Wednesday, September 18, 2002, 7:15:36 AM, you wrote:
DM Is there a clean way to make use of PHP builtins that use callbacks and
DM point those call backs to a method inside the class/object:
DM A good example would be:
DM ...
DM class XMLClass {
DM var $parser;
DM function
Hi,
Friday, September 13, 2002, 12:37:41 AM, you wrote:
rhc Hi..
rhc anyone know any function to convert numeric values to word..
rhc something like this:
1252 -- one thousand two hundred and fifty two
rhc Thanks...
Here is a class that will get you started :)
class num_to_text {
var
Hi,
Friday, September 13, 2002, 12:37:41 AM, you wrote:
rhc Hi..
rhc anyone know any function to convert numeric values to word..
rhc something like this:
1252 -- one thousand two hundred and fifty two
rhc Thanks...
Here it is without the typo :)
class num_to_text {
var $mode;
Hi,
Wednesday, September 11, 2002, 12:22:05 AM, you wrote:
RM Could someone show me a quick and simple way to randomly sort array
RM elements? I can't seem to pinpoint the correct parameters in the docs.
RM Thanks!
The function you need I think is shuffle()
--
regards,
Tom
--
PHP
Hi,
Tuesday, September 10, 2002, 7:08:27 AM, you wrote:
KF Hi,
KF I apologize for asking this question as it must have been asked many times
KF before but I can't find it in any of the archives..
KF What I would like to do is setup forms in javascript and then on a submit to
KF assign these
Hi,
Tuesday, September 10, 2002, 1:41:23 PM, you wrote:
PH Hello everyone..tryin to run this qry against a mysql db, but after it runs,
PH it doesn't assign anything to the variables as it should. If i return all
PH rows, and spit out each record in the result in an array, i have the same
PH
Hi,
Monday, September 9, 2002, 3:42:44 AM, you wrote:
A Hello I am working on a PHP server which has register_globals off. In my
A script is there anyway to turn it on, just for my script?
By the time your script is read register_globals has already done it's
checking so it is too late and
Hi,
Tuesday, September 3, 2002, 4:35:45 PM, you wrote:
Try this with single quotes:
INPUT TYPE=HIDDEN VALUE='Hello world' NAME=Message
MT Year, but then I couldn't use single-quotes in the text ;-) The problem is that
MT the content of the field is inserted by the user, so I cannot say
Hi,
Tuesday, September 3, 2002, 3:19:01 PM, you wrote:
JV Hello, All,
JV I've given myself two black eyes and a bloody nose on this one, and I'm sure
JV it's a simple solution. I have a form on the php page entry.php:
JV form name=zForm action=entry.php method=POST
JV input type=text name=txt
Hi,
Wednesday, September 4, 2002, 1:30:49 AM, you wrote:
RL Why exit() funtion always exit with 255 value instead of the passed
RL value, in php 4.2.2, even when I compile with --enable-cli.
RL Check the code bellow, to see
RL # cat t3.php
RL #!/usr/src/php-4.2.2/php
RL ?php
RL echo Version:
Hi,
Monday, September 2, 2002, 7:59:43 PM, you wrote:
MT Hello!
MT I have a simple hidden input-field like
MT INPUT TYPE=HIDDEN VALUE=Hello world NAME=Message
MT Now sometimes I need to insert like:
MT INPUT TYPE=HIDDEN VALUE=Hello \world\ NAME=Message
MT But this makes PHP (or the browser?)
Hi,
Tuesday, September 3, 2002, 6:49:25 AM, you wrote:
MK Everything is good, Everything is fine, so I decide to put the same=20
MK snippet of code in again, this time pointing to a different page --
MK One=20=
MK page lets you edit the fields, the other shows you the final output,=20
MK the
Hi,
Tuesday, September 3, 2002, 7:55:56 AM, you wrote:
aac I'm looking for the approximate solution of mailing out (or doing anything
aac else )
aac timed by cron(tab) along with use of mysql as means of identification and
aac storing
aac of the dates in multiuser enviroment.
aac Initial date
Hi,
Tuesday, September 3, 2002, 12:53:22 AM, you wrote:
a OK, I found the reason, but not the solution yet:
a The cookie time during setting is the time taken from the server. The time
a for checking the coockie is the time of the local machine!!
a So what can I do if I would like to last the
Hi,
Friday, August 30, 2002, 7:28:45 PM, you wrote:
PT Hi all.
PT I have a tag:
PT a href=index2.php?pg=2 CV/a
PT when I want to validate page (W3C online validator) , validator prints:
PT Line 37, column 50:
PT a href=index2.php?pg=2PHPSESSID=195c0283f8 ...
PT
Hi,
Friday, August 30, 2002, 3:10:09 PM, you wrote:
J I am still very new to PHP so things are still a little foreign to me - what
J exactly is the SUM finction - I tried to locate one on both the PHP and
J MySQL site but found nothing!
J Thanks ~ John
J Volve [EMAIL PROTECTED] wrote in
Hi,
Thursday, August 29, 2002, 1:35:47 PM, you wrote:
RL That makes absolutely no sense. How is and or different from simply
RL or?
RL Draw me the sets and show me the overlap satisfied by this alien and or
RL operator of yours.
RL -Rasmus
RL On Wed, 28 Aug 2002, Victor wrote:
What is the
Hi,
Wednesday, August 21, 2002, 5:34:35 PM, you wrote:
A Hello everybody,
A I am still having problems to run php scripts inside a directory with
A register globals on.
A This is what I did put inside the httpd.conf file right after the Directory
/ close tag.
A Directory /home/www/oasis
A
Hi,
Wednesday, August 21, 2002, 9:32:43 PM, you wrote:
A thanx tom, but this doen not seem to have anything to do with it.
A Regards,
A Andy
A Tom Rogers [EMAIL PROTECTED] schrieb im Newsbeitrag
A [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
Wednesday, August 21, 2002, 5:
Hi,
Wednesday, August 21, 2002, 10:53:48 PM, you wrote:
TR Hi,
TR Wednesday, August 21, 2002, 9:32:43 PM, you wrote:
A thanx tom, but this doen not seem to have anything to do with it.
A Regards,
A Andy
A Tom Rogers [EMAIL PROTECTED] schrieb im Newsbeitrag
A [EMAIL PROTECTED]">new
Hi,
Wednesday, August 21, 2002, 11:25:30 PM, you wrote:
n I am a new person to PHP. I have purchased and read PHP fast easy by
n Julie Meloni and have also read the 24 hours PHP book. I am able to connect
n to the SQL database and insert into the database via my html form. However,
n the
Hi,
Wednesday, August 21, 2002, 11:22:36 PM, you wrote:
JJ I want to find a certain text in a string and i want it to return me a
JJ boolean.
JJ What is the best thing to do this?
JJ a) ereg(search for this, $string);// returns
JJ int(1) if true, bool(false) if not
Hi,
Wednesday, August 21, 2002, 8:26:29 AM, you wrote:
G Is there a soul who has the xslt extensions compiled with php 4.2.2,
G sablotron 0.95 and expat 1.95.4 and working on Linux who is willing to
G give me some tips?
G I have tried the suggestions here:
G
Hi,
Wednesday, August 21, 2002, 6:21:30 AM, you wrote:
G I have been struggling to compile php(4.2.2, mandrake 8.2, apache
G 1.3.26) with xslt support for over 3 days now. I can configure with
G trouble like this:
G ./configure \
G --with-apxs=/usr/lib/apache/bin/apxs \
G
Hi,
Tuesday, August 20, 2002, 1:04:12 PM, you wrote:
S In ASP I use the expression myvar = string(254,A)
S to have a var filled with 254 characters 'A'
S What is the similar one in PHP?
Try this:
$string = array();
$string = array_pad($string,254,'A');
--
regards,
Tom
--
PHP General
Hi,
TR $string = array();
TR $string = array_pad($string,254,'A');
TR --
TR regards,
TR Tom
Ignore this I was asleep :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Friday, August 16, 2002, 4:13:39 AM, you wrote:
KSM Am I mistaken to assume that a Session is automatically
KSM destroyed if a Window Browser is closed?
The session as such is not destroyed only the cookie used to id it if you are using
cookies. If The SID is being passed in the url and
Hi,
Thursday, August 15, 2002, 5:17:00 AM, you wrote:
MA Well, I actually have a full db class which has a connect and close method
MA as well as query, fetch_array, etc... What I really want to know is how to
MA use the methods in my db class from another class (myclass for example)..
MA Do I
Hi,
Thursday, August 15, 2002, 3:20:47 PM, you wrote:
snip
LM Is there a way to get rid of any new lines in a string?
LM Because this is making my directory listing go whacko.
LM Cheers,
LM Liam
trim($dir)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
Friday, August 2, 2002, 11:29:39 PM, you wrote:
JV Tried to post this to the news group before, but I'm having trouble getting
JV to my news server from work - hopefully I'm not posting a duplicate.
JV I think I'm seeing the problem I'm seeing because I'm getting a copy of a
JV var instead
Hi,
Friday, August 2, 2002, 10:52:14 PM, you wrote:
JB Good morning!
JB I need to subtract months by their abbreviated month name, so shouldn't this
JB work?
JB print(date(M, mktime(date(M)-$i));
JB and if I loop;
JB Aug
JB Jul
JB Jun
JB May
JB
Does this help...
$now = time();
$i
Hi,
Friday, August 2, 2002, 2:03:18 AM, you wrote:
SF Anyone know the workaround with the situation here? Here is the sample
SF script. The problem is I include the XML tag into the PHP variable and it
SF messed up everything. It all had to do with ? here since PHP use it also.
SF --clip--
Hi,
Friday, August 2, 2002, 5:03:19 AM, you wrote:
H Is there some easy way to make rand() only use each number once in a loop,
H to avoid getting the same values more than once?
H Håkan
Have a look at shuffle() it may do what you want
--
regards,
Tom
--
PHP General Mailing List
Hi,
Tuesday, July 30, 2002, 1:53:50 PM, you wrote:
D This looks good but I just have one question about it if you don't mind,
D what if someone was uploading a gif or a PNG file? can it be made to only
D detect jpgs?
D Thanks in advance
D Deadsam
Try it this way, it will check if it is a jpeg
Hi,
Wednesday, July 31, 2002, 5:18:05 AM, you wrote:
1JWH Yes, it'd be really smart to. If any of the data in the serialized string
1JWH has a ' or in it, it could break your query. Or the user being able to
1JWH enter a ' or into the data could open you to SQL attacks.
1JWH You want to do
Hi,
Wednesday, July 31, 2002, 3:48:15 PM, you wrote:
S I just turn to use CSS instead of HTML style. Can you explain pros and
S cons of using CSS? I am quite concern about compatibility to client-side
S web browser. Thanks
S Sailom
God bless google
Hi,
Tuesday, July 30, 2002, 3:52:23 AM, you wrote:
D maybe it would be easier to show you the part of code I'm using,
D }
D /** Check for the type of the image : only allow jpeg's */
D if($_FILES['uploadFile']['name']['type']!=image/jpeg){
D echo You can only upload jpg images.;
D
Hi,
Monday, July 29, 2002, 11:21:34 AM, you wrote:
MM Do sessions not work when using an https connection? It seems I'm losing my
MM data between pages.
MM Mike
If you are changing domain names when going to https you will lose the
session info if relying on cookies. You will have to hard
Hi,
Monday, July 29, 2002, 7:53:30 AM, you wrote:
D I'm trying to get an uploader to work, where you check to make sure it's a
D jpeg file that's being uploaded, and no other files allowed. the server is
D unix linux using php4.1
D Any help would be appreciated.
D thanks in advance
D deasdam
Hi,
Saturday, July 27, 2002, 11:38:44 AM, you wrote:
MD Ok, here i made a function that can accept an unknown number of params.
MD In fact, it's a data interface for a mysql database, when i call the
MD object's constructor it is in possibility to pass any number of table names
MD from 1 to x.
Hi,
Thursday, July 25, 2002, 12:20:47 AM, you wrote:
P Prolly a silly question, but I have a session process that never really
P ends as it is supposed to allow the user to carry on submitting etc.
P So I don't know where and when to end the session, and if it is really
P nescessary to end a
Hi,
Wednesday, July 24, 2002, 5:04:06 AM, you wrote:
MD I just wrote this message in the wrong list so i'll be short...
MD I have two classes:
MD - mysql_connection
MD - data_collection
MD data_collection REQUIRES a mysql_connection object to work. So i decided to
MD pass this object in the
Hi,
Thursday, July 25, 2002, 1:41:25 AM, you wrote:
CG Well my RedHat system got hosed, so I reinstalled everything. I'm back to
CG installing PHP now, and I'm wondering if it's safe for me to run ./configure
CG multiple times. Here's the situation:
CG I want to compile with gd support, and
Hi,
Thursday, July 25, 2002, 4:26:15 AM, you wrote:
JL I'm putting together a message board, and I'm having
JL problems with hitting the return(enter) key within my
JL textarea.
JL I've looked around for a solution, I tried
JL wrap=hard, wrap=soft and wrap=vitual and none of
JL them worked
Hi,
Thursday, July 25, 2002, 10:44:00 AM, you wrote:
v Hi.
v I've got this script that needs to take for examle 02 and increase that to
v 03.
v but when i run the script $Num++; it changes 03 to 3;
v is there not a function that adds leading zeros onto a string ?
have a look at the
Hi,
Thursday, July 25, 2002, 10:39:08 AM, you wrote:
R Hi all,
R Thought I turned on register_globals on in the php.ini, my server didn't know the
HTTP_POST_FILES.
R echo $HTTP_POST_FILES[$file]['type'] ;
R echo $HTTP_POST_FILES[$file]['name'] ;
R echo $HTTP_POST_FILES[$file]['size'] ;
R
Hi,
Thursday, July 25, 2002, 11:15:33 AM, you wrote:
TR Hi,
TR Thursday, July 25, 2002, 10:39:08 AM, you wrote:
R Hi all,
R Thought I turned on register_globals on in the php.ini, my server didn't know the
HTTP_POST_FILES.
R echo $HTTP_POST_FILES[$file]['type'] ;
R echo
Hello Nick,
Monday, July 22, 2002, 8:47:39 PM, you wrote:
N i get php to allocate a colour then make it transparent using
N imagecolortransparent()
N instead of turning it transparent it becomes black.
N Is it something i'm doing wrong? can anyone help me?
N thanx in advance
Post a bit of
Hello KK,
Monday, July 22, 2002, 9:00:47 PM, you wrote:
KL Dear ALL,
KL It seems that i have a very silly problem.
KL I can't get the new line escape character to work.
KL the following is my SIMPLE script and corresponding output.
KL PHP script:
KL !DOCTYPE HTML PUBLIC
KL-//W3C//DTD
Hi,
Tuesday, July 23, 2002, 5:16:43 AM, you wrote:
N Tom Rogers [EMAIL PROTECTED] wrote in message
N [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Nick,
Monday, July 22, 2002, 8:47:39 PM, you wrote:
N i get php to allocate a colour then make it transparent
Hi,
Tuesday, July 23, 2002, 5:16:43 AM, you wrote:
N Tom Rogers [EMAIL PROTECTED] wrote in message
N [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello Nick,
Monday, July 22, 2002, 8:47:39 PM, you wrote:
N i get php to allocate a colour then make it transparent
Hi
At 02:05 AM 17/07/2002 +0200, you wrote:
Lo all,
If I have say 20 web servers in a cluster behind something like a Cisco
LocalDirector, will session data remain constant over the 20 web servers if
they use a shared NFS or similar mount to save session data on?
Have a look at msession at
Hi
If you check with phpinfo() you will see that it is getting set to 1 or 0
but by the time your script is run it is too late for it to have any effect.
Also ini_get('registar_globals') will not return the current state.
I have no idea why, it looks like one of those undocumented safety
Hi
Even with the correct spelling it returns null (php-4.2.1)
$x = ini_get('register_globals');
echo current settings = .$x.br;
Tom
At 12:43 PM 8/07/2002 +0800, Jason Wong wrote:
Tom Rogers said:
Hi
If you check with phpinfo() you will see that it is getting set to 1 or
0
in the html.
Your quite welcome to the files if it'll help.
Tom
At 04:03 PM 1/07/2002 +1000, Justin French wrote:
on 01/07/02 3:36 PM, Tom Rogers ([EMAIL PROTECTED]) wrote:
Ok probably the easiest is just to add ?if(!empty(SID) echo 'sid='.SID?
to the end of each url, if cookies are supported SID
Hi
One way to achieve the same effect:
fallthru = 0;
switch($whatever){
case 1:
do something1;
$fallthru = 1;
case 2:
if(!$fallthrough){
do something2;
}
case 3
Hi
enable_trans_sid does exactly what you are trying to re create, if no
cookies are available it modifies all the urls automatically.
and transparently
Tom
At 12:48 PM 1/07/2002 +1000, Justin French wrote:
Hi,
As discussed a few months back, I'm interested attempting to recreate PHP's
at
emulating enable_trans_sid.
Regards,
Justin French
on 01/07/02 1:07 PM, Tom Rogers ([EMAIL PROTECTED]) wrote:
Hi
enable_trans_sid does exactly what you are trying to re create, if no
cookies are available it modifies all the urls automatically.
and transparently
Tom
At 12:48 PM 1
Hi
I would do it this way (untested)
while ($row = mysql_fetch_assoc($result)) {
$vehicles[$row['dealer_id][$row['vehicle_id]['views'][] =
$row['page_views'];
}
should end up something like this
(
[645] = Array
(
[35073] = Array
([
missed a couple of quotes and braces there :)
while ($row = mysql_fetch_assoc($result)) {
$vehicles[$row['dealer_id']][$row['vehicle_id']]['views'][] =
$row['page_views'];
}
At 02:03 PM 28/06/2002 +1000, Tom Rogers wrote:
Hi
I would do it this way (untested)
while ($row = mysql_fetch_assoc
At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote:
Ok, I have never, in my entire life, have such a persistant little freakin
problem with a programming language... It started out while i was running
4.1.2 where sessions would not write to the disk properly. I researched and
found a bug. I couldnt
Ignore me ..I just got up :)
Tom
At 01:09 PM 22/06/2002 +1000, Tom Rogers wrote:
At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote:
Ok, I have never, in my entire life, have such a persistant little freakin
problem with a programming language... It started out while i was running
4.1.2 where
Hi
Here is a messy solution, but I think it does what you want using strtotime()
(well worth looking up in the manual :)
?
$weeks = 30;
$year = date(Y);
$monday1 = strtotime(1 monday,strtotime(1/1/.$year)); //get unix
time of first monday of this year
$monday = intval(date(d,$monday1));
Hi
One method for later browsers is to use a header tag that causes a new page
to be loaded for printing. This is done transperantly so the users don't
need to click anything other than the normal print button. It goes like this :
link rel=alternate media=print href=?echo
Hi
Should have made that a bit clearer :)
head
link rel=alternate media=print href=?echo $_SERVER['PHP_SELF']??print=yes
/head
One method for later browsers is to use a header tag that causes a new page
to be loaded for printing. This is done transperantly so the users don't
need to click
Hi
itemcd and unitprice should be in quotes I think if they are keys in an array.
$catalog[itemcd]
$catalog[unitprice]
Tom
At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote:
Can someone tell me why this doesn't work?
The $mycart array is fine and the $catalog array is also fine but nothing
Perry wrote:
Thanks, but that didn't work either
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:32 PM
To: [EMAIL PROTECTED]; Php
Subject: Re: [PHP] beginner in PHP
Hi
itemcd and unitprice should be in quotes I think if they are keys
Hi
One way is to create an external reference to your class and use that in
the cleanup function. To make the cleanup function visible it has to be
declared inside the constructor (which makes it invisible to the rest of
the class:) This is how I have done it:
?
$ref = array();
class cRoute{
At 01:18 PM 12/06/2002, Lars Torben Wilson wrote:
On Tue, 2002-06-11 at 20:12, Tom Rogers wrote:
Hi
One way is to create an external reference to your class and use that in
the cleanup function. To make the cleanup function visible it has to be
declared inside the constructor (which makes
);
}
}
$c1 = new cRoute(First:);
$c2 = new cRoute(Second:);
echo exiting now br;
?
Tom
At 01:12 PM 12/06/2002, Tom Rogers wrote:
Hi
One way is to create an external reference to your class and use that in
the cleanup function. To make the cleanup function visible it has to be
declared inside
Hi
It was the register_shutdown_function(array($this, 'cleanup')); syntax
that had me stummped and looking for magic :)
Tom
snip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
Why not just do it in one call?
$fp = fopen(data/news.txt,w);
$np = fputs($fp,$pr.$ag);
fclose($fp);
Tom
At 04:17 AM 10/06/2002, Kris wrote:
Hi all,
I'm having some trouble getting my basic news script to work. Here is the
code:
$fp = fopen(data/prev.txt,r);
while (!feof ($fp))
Hi
Have a look at http://www.mohawksoft.com/phoenix/msession.html
I just started playing with it and seems to be ok, except when I try my own
session handler it chucks a core dump now, but if it is as good as they
reckon I wont need my own handler :)
Tom
At 03:17 PM 6/06/2002, Cameron Just
HI
Just a thought, if your on a windows box you will need to ad a 'b' to the
fiopen function like
fopen($file, br)
Tom
At 09:43 PM 5/06/2002, freestylez wrote:
it almost works :) unfortunatly the gif file seems to be corrupted at some
point,
but anyhow - i am not good in these hex and bin
hi
what gif is getting corrupted?, it works ok with the one you gave.
To see what all those flag things are have a look at the gif spec at
http://www.goice.co.jp/member/mo/formats/gif.html
unpack puts the binary string into an array, flag gives some info as to the
colour index table
Tom
At
701 - 800 of 879 matches
Mail list logo