RE: [PHP] Unserialize stopped working after php & db upgrade

2002-09-18 Thread Martin Towell
If you've seen a serialised variable a few times, you get to know how one is set up and how to interpret it. If you're using serialised variables, I'd suggest serialising a few simple ones and see what the output looks like so that you can see when things are going amiss. This is one way that I d

Re: [PHP] how to time an http request

2002-09-18 Thread Petr Tomenendál
If you want a tool to test HTTP server responses, then i can recommend Siege. You can specify number of simultaneous requests and URL/URLs to be tested. For more info look at: http://www.joedog.org/siege/index.shtml P. On Thu, 2002-09-19 at 01:12, Lee Doolan wrote: > > > is there a program

RE: [PHP] Need some help please.

2002-09-18 Thread David Freeman
> Thats a Nice feaure you have, How do you do that? I have a cron event on my server that grabs the relevant page from the web site soon after it is updated (around 20 past each hour) using "lynx -dump url" which then pipes the resulting page dump through grep to grab just the line of data that

[PHP] Unserialize stopped working after php & db upgrade

2002-09-18 Thread Geoff Caplan
Paul, PN> It looks like that string has been serialized multiple times Many thanks - that is the problem! I think that this qualifies as one of my more creative bugs... Can I ask you how you spotted this? Pretty impressive, considering you only had the string itself to go on. Thanks again, --

[PHP] New problem - preg_match?

2002-09-18 Thread Chad Winger
Yes, I'm STILL a newbie :) I've gotten pretty far in a few days thanks to you all. I have a new question for you, maybe this is a bit easier than my last issue. Still using my text file example, which has lines such as: 0706010102|01.01.02|16:00|Serie C2|02|Forlì|Florentia Viola| 0610010102|01.0

[PHP] Re: Good OO PHP resources? Open Source APIs?

2002-09-18 Thread Manuel Lemos
Hello, On 09/19/2002 01:50 AM, Michael Zornek wrote: > I've been doing PHP for about 2 years now. The code I write is generally > procedural although I have been using a MySQL class to do some db stuff as > of late. > > Over last few months, I've been learning Cocoa. If you don't know its an > O

[PHP] Good OO PHP resources? Open Source APIs?

2002-09-18 Thread Michael Zornek
I've been doing PHP for about 2 years now. The code I write is generally procedural although I have been using a MySQL class to do some db stuff as of late. Over last few months, I've been learning Cocoa. If you don't know its an OBJ-C based API to develop apps for Mac OS X. By doing so I want

[PHP] redefining a function

2002-09-18 Thread David T-G
Hi, all -- Is there any way to redefine or undefine (to then redefine) a function? We have an image handling function, for instance, and would like to let our users put in their own definition instead. I haven't yet found anything that will allow this... TIA & HAND :-D -- David T-G

Re: [PHP] header() and POST

2002-09-18 Thread Chris Shiflett
Here is an example of how to manually perform an HTTP POST with PHP. If you execute this code, you should see the search results of searching the PHP manual for the term "curl" (using language en_US). Curl is another option for people who need to do this sort of thing. Happy hacking. Chris h

[PHP] Re: how to time an http request

2002-09-18 Thread Jason Morehouse
What's wrong with fopen? On Wed, 18 Sep 2002 16:12:05 +, Lee Doolan wrote: > > > is there a program which i can run in a unix environment (FreeBSD or > redhat) which can run, say, 100 requests on a url and then report the > total time spent on the requests? i know that i could run curl or

[PHP] Re: inheriting default constructor behavior?

2002-09-18 Thread Jason Morehouse
Try: function archive ($max_size = 20560, $archive_dir = ${DOCUMENT_ROOT}.'/tmp/') On Wed, 18 Sep 2002 23:25:08 +, Monique Y. Herman wrote: > > My question is regarding default arguments -- is it possible to define a default > argument that is itself a variable? > > I'd like to do the fol

[PHP] compiling a regexp

2002-09-18 Thread David T-G
Hi, all -- Can I compile a regexp as I can in perl? We have various possible values that we want to strip out of a string and we store them in an array so that users can update with their own. To wit: $noadobe = array ( "File written by Adobe Photoshop", "LEAD Techn

[PHP] pardon the previous mis-topic

2002-09-18 Thread Monique Y. Herman
I'd started another question, realized the answer to it, and typed in another question without checking the subject ... mea culpa! Monique Y. Herman [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange submission problem

2002-09-18 Thread Jesse Lawrence
Hmmm, that was the solution. That's kind of a strange little thing isn't it? Thanks a lot for your help, Jesse I've had this same problem. It seems that the value of submit is only sent if the button is clicked (netscape and internet explorer). Could it be that you're using the enter

[PHP] inheriting default constructor behavior?

2002-09-18 Thread Monique Y. Herman
My question is regarding default arguments -- is it possible to define a default argument that is itself a variable? I'd like to do the following: function archive ($max_size = 20560, $archive_dir = "${DOCUMENT_ROOT}/tmp/") but I seem to get parse errors unless I do the following: fu

Re: [PHP] Strange submission problem

2002-09-18 Thread Jacob Miller
I've had this same problem. It seems that the value of submit is only sent if the button is clicked (netscape and internet explorer). Could it be that you're using the enter key to submit the form? The solution I used was to remove the value assignment to the submit button and set it in a hi

[PHP] Strange submission problem

2002-09-18 Thread Jesse Lawrence
Hello everyone, In a simple signup form that I'm using, I send the variables to a script, which performs a function if ($submit == "register") { function(); } The problem is, my signup form isn't passing the submit variable, though it is passing the other variables in the form. The strange t

Re: [PHP] Need some help please.

2002-09-18 Thread Simon Angell
Thats a Nice feaure you have, How do you do that? I have spoken to guy who made the php file and he will look into the bugs for me, also i will keep playing around with it. -- Cheers - Simon Angell Canberra ACT www.canberra-wx.com -

Re[4]: [PHP] numeric to word function

2002-09-18 Thread Tom Rogers
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 thous

Re: [PHP] reuse database connections

2002-09-18 Thread olinux
When you create a connection it is available to the end of the script run. You can run as many queries as you wish in the script and all will use the same connection. If you wish for multiple accesses to use the same connection, I think you will have to use persistent connections. olinux ---

Re: [PHP] can you recommend PHP shopping cart

2002-09-18 Thread Nicole Lallande
http://www.fishcart.org/ - the guy who wrote this (in PHP) has been programming banking gateways for 20 years -- very security conscious. The cart is very robust... Best, Nicole Peter J. Schoenster wrote: >Hi, > >Looking for a shopping cart. I've written plenty in the past but in >Perl. I

Re: [PHP] Friend of function??

2002-09-18 Thread Sascha Cunz
Just as Kevin Stone said, you can either use one of these constructions: function func1() { global $myarray; array_push($myarray,1); } # _or_ function func2() { array_push($GLOBALS['myarray'],1); } In fact, there is no performance decrease, because PHP will internally use the same mechani

Re: [PHP] SELECT dropdown from a db query?

2002-09-18 Thread Andre Dubuc
Thanks Jacob and Sascha, I would've struggled with that one for a day before I realized what was wrong. Thanks again -- it works great! Regards (and thanks yet again :>) Andre On Wednesday 18 September 2002 09:54 pm, Jacob Miller wrote: > Move outside the do-while loop: > > print ""; > > $ro

[PHP] RE: Weird problem with Windows XP and IE6

2002-09-18 Thread Jason
As an adendum to this... my initial thoughts are that the forms are not posting correctly in XP. I'm using the POST method. Jason Cathcart Check Out My Site: http://www.biohazardous.org -Original Message- From: Jason [mailto:[EMAIL PROTECTED]] Sent: September 18, 2002 7:50 PM To

Re: [PHP] SELECT dropdown from a db query?

2002-09-18 Thread Jacob Miller
Move outside the do-while loop: print ""; $row = 0; do { $myrow = pg_fetch_array($result,$row); if ($myrow['rupload'] != "") { print "{$myrow['rfname']} {$myrow['rsname']}"; } $row++; } while ($row < $numrows); print ""; pg_close($db);

Re: [PHP] SELECT dropdown from a db query?

2002-09-18 Thread Andre Dubuc
Thanks Sascha, Thought that would do the trick (at least I thought it should) but same results - a mess of single entry dropdowns. Perhaps the code should be after the 'row++;' ? Sigh . . . this is frustrating! Andre On Wednesday 18 September 2002 09:38 pm, Sascha Cunz wrote: > Change t

[PHP] Weird problem with Windows XP and IE6

2002-09-18 Thread Jason
Hi... I've written a shopping cart program that is in use at www.dangeo.com and I'm having a weird problem that has just been brought to my attention. As far as I can tell everything works perfectly fine with the shopping cart in windows 98, and 2000. However the problem I'm having is that when

Re: [PHP] SELECT dropdown from a db query?

2002-09-18 Thread Sascha Cunz
Change to Sascha Am Donnerstag, 19. September 2002 03:34 schrieb Andre Dubuc: > I'm trying to generate a dropdown SELECT list from a database query. So > far, all I've managed to create is multiple one-item dropdowns for each > database entry spread across the page. Bad -- very bad! > > I'd li

RE: [PHP] Auto-increment value

2002-09-18 Thread Faisal Abdullah
Hello people, Thanks for all your help. I guess I'll go with $oid = pg_last_oid($result); select id from table where oid = $oid; If i'm not mistaken, there will no race issue here: pg_last_oid($result) has already returned me the row that 'I' have just inserted, based on $result, regardless whet

Re: [PHP] can you recommend PHP shopping cart

2002-09-18 Thread olinux
I believe that x-cart provides the code when you purchase. Looks like an inexpensive and full featured solution. Check out www.oscommerce.com for an excellent open source project that will rival most commercial solutions. There are some live site examples in the featured sites section. Many feat

[PHP] SELECT dropdown from a db query?

2002-09-18 Thread Andre Dubuc
I'm trying to generate a dropdown SELECT list from a database query. So far, all I've managed to create is multiple one-item dropdowns for each database entry spread across the page. Bad -- very bad! I'd like normal drop-down SELECT behavior, but somehow the code escapes me. I've tried a bu

[PHP] can you recommend PHP shopping cart

2002-09-18 Thread Peter J. Schoenster
Hi, Looking for a shopping cart. I've written plenty in the past but in Perl. I'm looking for one in PHP and I don't want to write my own. I looked at this: http://www.x-cart.com/ And I asked to see their code but I have not heard anything back. I'm already favorable to anything that uses Sm

Re: [PHP] include_path? programmatically

2002-09-18 Thread Matt Wiseman
You could always just use .htacess to do it.. -- Matt "TrollBoy" Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft -

[PHP] include_path? programmatically

2002-09-18 Thread Christian Calloway
I dont have access to the php.ini file, is there anyway to access the "include_path" setting programatically from php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reuse database connections

2002-09-18 Thread Kumar Lakshminarayanan
You can use persistent connections from php to mysql server using mysql_pconnect(host,user,passwd) then go on to use the returned link. this will open a new connection only if one is not available. kumar "Support @ Fourthrealm.com" wrote: > Another question about efficiency / using server resour

[PHP] reuse database connections

2002-09-18 Thread Support @ Fourthrealm.com
Another question about efficiency / using server resources: In another language I use, I can re-use an ODBC connection to make further queries/update/etc to the database to save the overhead of closing and reopening the connection to the db over and over. It works sometime like this (in the o

Re: [PHP] use of mysql_free_result (was Re: [PHP] Efficiency)

2002-09-18 Thread Chris Shiflett
This frees the memory that is used to store the results of your query (the $result variable in most examples). Many people leave this out, because PHP does a lot of cleanup for you when your script exits. However, it is a good habit to go ahead and free your results once you are finished using

Re: [PHP] COOKIE Question.

2002-09-18 Thread Tom Ray
Discovered my cookie issue. I wasn't setting the path in setcookie() so it defaulted to what ever directory the script ran in. I set it so it loads from the root of the website now, and it's working like a charm. Thanks to all that helped! John Holmes wrote: >>I do the print $_COOKIE["Accces

[PHP] use of mysql_free_result (was Re: [PHP] Efficiency)

2002-09-18 Thread Support @ Fourthrealm.com
Rick, or anyone, Based on what you said below, can you describe for me when the mysql_free_result tag should be used, and when it is not necessary? I'm fluent in other web languages (iHTML, ASP), but am fairly new to PHP, so I'm still learning the intricacies of the language, and the best way

RE: [PHP] Need some help please.

2002-09-18 Thread David Freeman
> I am having trouble with a PHP script. I am not the one who > made this and my knowledge on php is very little. > I came across this php script > www.canberra-wx.com/bomonster/bomonster01.php Tried loading this and had too many page errors to figure out what you are doing. > www.canber

RE: [PHP] Date-format

2002-09-18 Thread Support @ Fourthrealm.com
Thanks everyone for the helpful answers. I agree that manuals are useful, but there are times when an example works better. I took all of this information, and some details from earlier posts about dates, and produced the following function to make it easy to format dates without have to go

Re: [PHP] header() and POST

2002-09-18 Thread Chris Shiflett
The short answer is no (based on my interpretation of your question). Consider carefully where you are wanting to send data and when. The header() function is specifically for manipulating HTTP headers in the response you will send the Web client. You are probably not wanting to post data to t

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Chris Shiflett
James's answer is likely what you are looking for. As there are many different ways to maintain sessions, you're going to get many different answers. However, the default behavior for PHP sessions is to assign the unique identifier to a cookie. If this cookie has a domain of .web.com (see Jam

[PHP] linux install error

2002-09-18 Thread :B nerdy
i got the following error on install.. any ideas? In file included from /usr/include/math.h:348, from /root/php-4.2.3/main/php_config.h:2107, from my_config.h:5, from global.h:33, from net.c:14: /usr/include/bits/mathinline.h: In

[PHP] how to time an http request

2002-09-18 Thread Lee Doolan
is there a program which i can run in a unix environment (FreeBSD or redhat) which can run, say, 100 requests on a url and then report the total time spent on the requests? i know that i could run curl or wget in a loop, but i would have to account for the fork-exec time somehow. i hope that t

[PHP] Re: Loop through POST-result

2002-09-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I would like to get all the data from a POST-result into an array. > > Is there a function like that adds all the vars from the post into an array > where Key is the name of the form-field and Value is the value entered in > this field.

[PHP] mysql_query w/ JOIN results giving unexpected results w/ PHP (not regular SQL though)

2002-09-18 Thread Thoenen, Peter Mr. EPS
Hello everybody, Having an issue where I am getting unexpected results with a simple query and at a lost to explain why. At the end is my code. The problem I believe though I have narrowed down to the following statement. 1. When I run SELECT accounts.id, accounts.action, people.last, people.

[PHP] Re: Join in MySQL-select doesn't work

2002-09-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello > I'm using PHP4 and MySQL on Apache webserver. > I have a table valled "liste" with names of some people, and a table > called "postnummer" with zip-codes and citynames. > My select should join the adress and zip from one table w

[PHP] How to approach a new project?

2002-09-18 Thread Wm
I'm trying to work out the best way to approach a new project, and would appreciate any suggestions/"beware of"s from the experienced PHPers out there. I want to build a project where I can enter data from a gym routine online and generate graphs of the data. I'm not familiar with GDLIB, but is

Fw: [PHP] Friend of function??

2002-09-18 Thread Kevin Stone
I don't think there is a way to do pull a variable into the local scope of a function without passing it as a value to the function. But you can always do this.. myfunction() { global $myarray; //..use myarray..// unset $GLOBALS['myarray']; } You're in no danger this way. -Kevin - Origina

Re: [PHP] Efficiency

2002-09-18 Thread Rick Widmer
At 04:41 PM 9/18/02 -0400, Support @ Fourthrealm.com wrote: >Which is more efficient? Considering that the difference in efficiency is so small, a more important question is which is clearer to the programmer? I prefer b, except that I allow short tags and use the magic print/echo function:

[PHP] Friend of function??

2002-09-18 Thread Anup
I want to use arrays (that are outside of a function) to be visible to a function. I understand that I must you global. But I was wondering is it possible to make it visible to only certain functions, similar to the 'friend' keyword in C (or C++ ?) ? The reason, is that I don't feel comfortable ha

Re: [PHP] Auto-increment value

2002-09-18 Thread Leonid Mamtchenkov
Dear Faisal Abdullah, Once you wrote about "RE: [PHP] Auto-increment value": > > There is a similar one for postgresql as well: pg_last_oid() . > > I tried that. It gives me 24807, instead of 5. > Or is oid is a reference to something else, which would > lead me to the '5' i'm looking for? I'd

[PHP] Re: Unserialize stopped working after php & db upgrade

2002-09-18 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoff, It looks like that string has been serialized multiple times. Update your serialized string to: - - a:2:{s:10:"attributes";a:32:{s:13:"attr ibute_204";s:1:"4";s:13:"attribute_205";s:1:"5";s:13:"attribute_206";s:3:"Ye s";s:13:"attribute_207"

[PHP] Efficiency

2002-09-18 Thread Support @ Fourthrealm.com
Which is more efficient? a) a sql loop where everything is displayed/formatted using echo stmts, like this: $result = mysql_query("SELECT * FROM news WHERE active=1"); while ($row = mysql_fetch_object($result)) { echo "$row->title "; } mysql_free_result($result); ?> OR b) a sql loop

Re: [PHP] Re: replacing mail()

2002-09-18 Thread Rick Widmer
>"Liam Mackenzie" <[EMAIL PROTECTED]> wrote in message >002a01c25f00$54a01050$0b00a8c0@enigma">news:002a01c25f00$54a01050$0b00a8c0@enigma... > I've spent over 6 months trying to get sendmail to work to my liking, >don't > talk to me about sendmail! > :-P I know the feeling. I use qmail now.

[PHP] Re: Global Vars

2002-09-18 Thread David Eggler
In article <004b01c25f36$961fbbd0$6200a8c0@squitta>, [EMAIL PROTECTED] (Sascha Braun) wrote: > But how can i make definitions like method="post"> Those variables can be accesd via the global $_POST['varname'] > working without usage of hidden fields. > > Or links like test.php?action=update

[PHP] Re: Unserialize stopped working after php & db upgrade

2002-09-18 Thread Geoff Caplan
Paul, PN> There must be an error in the serialized stringswould you mind PN> posting one for us to look at? How about posting some code? This is all very strange. The code has been working in production for months. Since the upgrade of PHP and the DB, some are working and some not. I can't

Re: [PHP] imagettftext function does not handle combining characterproperly

2002-09-18 Thread Ziying Sherwin
Rasmus, Thanks for the suggestion. We tried to compile php 4.2.2 with freetype 2.1.2 and gd 2.0.1, but during the configuration, we kept getting the following error messages: configure: error: Unable to find required gettext library And the following lines in config.log: configure:26000: gcc

Re: [PHP] Installation

2002-09-18 Thread Dan Ostrowski
Well first off... the normal sequence of events goes as thus: ./configure ./make ./make install So you are missing a step in there. Secondarily, a "make clean" will only go through and tidy up bits of code that need cleaning AFTER an install. It will not "uninstall and clear space" as it we

[PHP] test

2002-09-18 Thread Ryan A
Testing

[PHP] Help Fatal Error

2002-09-18 Thread James E Hicks III
[18-Sep-2002 15:19:31] PHP Fatal error: Unable to start session mm module in Unknown on line 0 What have I done? I updated my redhat box using up2date. Now I get these errors when I am running command line scripts only. I'm pretty sure if I reboot the box my web-scripts will have the same proble

[PHP] Re: PHP4 Oracle SELECT statement ERROR

2002-09-18 Thread notoriousvic_ca
I have also noticed that when I retreive values from a view into an associated array I will not get the proper name of the field. For example if I create a view like : create or replace view view_specimen_details as SELECT a.ITEM_CLASS "order", a.FIELD2 "scientific name",

Re: [PHP] Unserialize stopped working after php & db upgrade

2002-09-18 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, There must be an error in the serialized stringswould you mind posting one for us to look at? How about posting some code? ~Pauly On Wednesday 18 September 2002 02:02 pm, you wrote: > Hi folks > > Bit of a major panic - any help MUCH apprec

Re: [PHP] Re: Large uploads

2002-09-18 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, You might want to check the archives..I know this came up before. Anyway, you didn't say if you checked your memory limitthat has to be larger than the post_max_size. HTH! ~Pauly On Wednesday 18 September 2002 11:54 am, you wrote: > Hi

RE: [PHP] Date-format

2002-09-18 Thread Chuck Payne
I know everyone love to quote read the manual and forget that we[newbies] are only asking here because we need help...so here you go... You can do the following... DATE_FORMAT IS THE MySQL Command And let say you want to format your date as the following mm-dd-yy(US) or dd-mm-yy(the rest of th

[PHP] Installation

2002-09-18 Thread Sascha Braun
All these installation docs are just driving me crazy. How am I installing PHP 4 any version on my RedHat 7.3 Server. Isn't it done by an RPM easily? Bye Sascha

[PHP] PHP4 Oracle SELECT statement ERROR

2002-09-18 Thread notoriousvic_ca
Hi I am a programmer and I just started using PHP4. I created a view in Oracle (code below) and I added an underscore to the end of one of the column names ("id_number_"). When I use asp code to select from this view I have to write a select statement like so: "Select * from view_specimen_detail

Re: [PHP] Conditionally include file based on document location

2002-09-18 Thread Eric C. Pollitt
Thanks for the insight, but I'm not clear on how to implement this. Here is what I have so far: Perhaps $DOCUMENT_URI is not correct...perhaps it should be $PATH_INFO? Or should I have some sort of return or print statement? TEST URL: http://globalhemp.phpwebhosting.com/switch.php Thanks, Er

Re: [PHP] Date-format

2002-09-18 Thread Jacob Miller
From http://www.mysql.com/doc/en/Using_DATE.html The format of a DATE value is '-MM-DD'. According to ANSI SQL, no other format is allowed. You should use this format in UPDATE expressions and in the WHERE clause of SELECT statements. For example: mysql> SELECT * FROM tbl_name WHERE date

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread James E Hicks III
Have a look at this php.ini setting, I think it will help you! ; The domain for which the cookie is valid. session.cookie_domain = James -Original Message- From: David Buerer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 1:39 PM To: '[EMAIL PROTECTED]' Subject: [PHP]

Re: [PHP] Date-format

2002-09-18 Thread Support @ Fourthrealm.com
Reformatting before an inserting/updating is one option, but how would we change the mySQL database to accept the other format? Peter At 04:18 PM 9/12/2002 +0800, Jacob Miller wrote: >Why can't you just reformat it before inserting it into the db? > > $date = "31.12.2002"; > >

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun
That seems to be a more perfekt way. Honorabel, nice. Sascha - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Sascha Braun" <[EMAIL PROTECTED]> Cc: "PHP Mailingliste" <[EMAIL PROTECTED]>; "David Buerer" <[EMAIL PROTECTED]> Sent: Wednesday, September 18, 2002 8:16 PM

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun
Normaly you store SESSION Data in variables. When you make the step to another domain, you should reassign a new Session and give to data of the old session to the new one. Or isn't is possible to put some date behind an url like www.somedomain.com?check=it&out=mh If you are working with databa

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
Sascha Braun wrote: > > Yeah, > > I believe so, but you could reinitialize them when you jump to the other > webserver, or you use one > mysql database for sessionmanagement for both webservers. Not exactly true, since if they jump to another server, you can make the assumption they have a sess

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread David Buerer
I do have control over the content of both domains...in fact right now it's the identical contenteven the same physical data store on the disk, I just seem to be losing session variables for one reason or another. DAvid -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTE

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Jacob Miller
My first assumption would be yes they are domain specific, but it might be possible to cross domains if both domains were run from the same web server and you were to pass the session id between pages manually rather than it being stored in a cookie.. What does everyone else think? - Jacob A

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun
Yeah, I believe so, but you could reinitialize them when you jump to the other webserver, or you use one mysql database for sessionmanagement for both webservers. Ciao Sascha - Original Message - From: "David Buerer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Septemb

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
Domains are specific, and so you do not get the same sesion variables. here's are ways around this, but you need control of the content of both servers. Cheers, Rob. David Buerer wrote: > > Are sessions domain specific? > > What I mean is this. > > Suppose I have two websites: > secure.we

[PHP] PHP Installation

2002-09-18 Thread Sascha Braun
Hi Peops, I need some help for an PHP Installation. I did uninstall my apache on my domain. I reinstalled it again and now want to install PHP again. I believe all option in httpd.conf are correct. My Linux Distribution is: RedHat 7.3 I looked into the Modules Direktory from Apache and I coul

[PHP] Sessions /Cross Domain

2002-09-18 Thread David Buerer
Are sessions domain specific? What I mean is this. Suppose I have two websites: secure.web.com www.web.com and both web sites point to the same set of data. If I looking at web page http://www.web.com/index.html and have a set of

[PHP] Unserialize stopped working after php & db upgrade

2002-09-18 Thread Geoff Caplan
Hi folks Bit of a major panic - any help MUCH appreciated. I have been storing serialized arrays in MySQL Gemini tables without any problems. But with Gemini looking more and more like a dead duck, I decided to take the server down and port from Gemini to InnoDB. I also took the opportunity to

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings
Jacob Miller wrote: > > With leap year adjustment... > > strtotime("+1 year", ); > > will return a unix timestamp. Nice, don't think I've ever used that function :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Jacob Miller
With leap year adjustment... strtotime("+1 year", ); will return a unix timestamp. - Jacob At 01:49 09/19/2002, Robert Cummings wrote: >"Support @ Fourthrealm.com" wrote: > > > > Hi guys, > > > > What is the easiest way to get the date of one year from today? > > Accommodating for leap years i

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings
"Support @ Fourthrealm.com" wrote: > > Hi guys, > > What is the easiest way to get the date of one year from today? > Accommodating for leap years is not essential (but would be a nice bonus). Without leap year adjustment... date( "your format string here", time() + 60 * 60 * 24 * 365 ); HTH,

[PHP] Date(), adjusted for one year

2002-09-18 Thread Support @ Fourthrealm.com
Hi guys, What is the easiest way to get the date of one year from today? Accommodating for leap years is not essential (but would be a nice bonus). Thanks, Peter - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions [EMAIL PROTECTED] http://www.fourthrealm.com Tel: 519-739-1652 - -

RE: [PHP] time() problem

2002-09-18 Thread Adam Voigt
Change it to an INT or a VARCHAR datatype, the mysql timestamp field uses MySQL's date/time formmating. If you decide to let MySQL use it's own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix timestamp from that date field. Adam Voigt [EMAIL PROTECTED] On Wed, 2002-09-18 at 13:19

[PHP] Loop through POST-result

2002-09-18 Thread Michelle
I would like to get all the data from a POST-result into an array. Is there a function like that adds all the vars from the post into an array where Key is the name of the form-field and Value is the value entered in this field. Like this: array('firstname' => 'fname', 'lastname' => 'lname'); T

RE: [PHP] time() problem

2002-09-18 Thread Savaidis
Hello all! I use time() to keep UNIX seconds from 1970 to a timestamp(14) MySQL field. But when I read it (Dt_last) it is TO big compearing with "today=time()" in a php script that is only some seconds later. today : 1032350421 Dt_last: 20001101165838 What can I do? Thanks! Makis Makis -

[PHP] Global Vars

2002-09-18 Thread Sascha Braun
Hi Everone, for my newest projekt i started to use global var like $_REQUEST['varname'] and so on. But in some cases i started again to use old var mode. Finally i have read some about there is need to define the vars, before I'm going to create the source for my webpages. But how can i make

[PHP] Stripping specific tags

2002-09-18 Thread Alexis Antonakis
Hi, I was wondering is there a way to strip ONLY the tags that you specify from a page, rather than having to include all the tags you do want (using strip_tags() ) Cheers Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and Flash

2002-09-18 Thread timo stamm
Or let Flash take over the active part. You can retrieve data from PHP scripts in Flash and build dynamic menus, for example. Pretty much everything is possible. Timo Am Mittwoch den, 18. September 2002, um 06:11, schrieb Rasmus Lerdorf: > php.net/ming > > On Wed, 18 Sep 2002, [EMAIL PROTECT

Re: [PHP] Image resolution and php

2002-09-18 Thread pan
> I need to get resolution information (dpi) from any > image of jpg, gif or png formats. > > It would be sufficient to obtain pixel and inches > dimension of such images and calculate resolution by > simply dividing but I haven't found any function that > gets effective dimensions in inches. >

[PHP] Difficult MIME question

2002-09-18 Thread C.F. Scheidecker Antunes
Hello all, I have one situation other than the normal that I cannot extract/save the MIME content of an e-mail which Content-type is different than the normal. When I get attachments that have the following normal structure: === Content-Type: application/x-zip-compre

[PHP] Join in MySQL-select doesn't work

2002-09-18 Thread Henning
Hello I'm using PHP4 and MySQL on Apache webserver. I have a table valled "liste" with names of some people, and a table called "postnummer" with zip-codes and citynames. My select should join the adress and zip from one table with the cityname from the other table. But my join-line does not wor

Re: [PHP] mid-level PHP/MySQL people in Los Angeles?

2002-09-18 Thread Eric C. Pollitt
I recommend checking out websites such as Elance for freelance workers and employers to find one another. There are several others out there that are similar as well...try searing

RE: [PHP] Please, Help dynamicaly creating an Array

2002-09-18 Thread Max Sullivan
Thanks Marek, That's exactly what I was looking for. I also found another solution, which was to build a second array with the information I want and merge the two arrays together with +. I like eval better :) thanks again. For anyone that is interested this works too. $a = "'THREE'"; $b = "3

Re: [PHP] Re: Image resolution and php

2002-09-18 Thread Eric C. Pollitt
I believe that image files on the Mac platform contain metadata that does in fact include this information. Sherlock on Mac OS 9 is not capable of finding this information. However, I did find the following information for Adobe Photoshop 7 for Mac OS X on how you can achieve this. I don't know if

[PHP] Re: Large uploads

2002-09-18 Thread Rickard Dahlstrand
Hi again, Is there anyone in this group that has successfully uploaded a file large than 10 MB? Regards, Rickard. "Rickard Dahlstrand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I have been trying to upload files using PHP 4.1.2. Everything work

[PHP] header() and POST

2002-09-18 Thread dsfljsdfklj kljvdskljfsdkl
I have the following problem: a php page receives POST data from a form, it needs to elaborate the data and send it to another page again in POST automatically, without the user noticing. Is it possible to use the header() function to send a POST request? If yes how? And how do I send the post d

  1   2   >