[PHP] syntax question

2003-03-06 Thread Jimmy
I'm looking through some existing code for a project I'm working on, but I keep running into this syntax that I really don't understand. Here's an example: $a=strpos($a,'-')?explode('-',$a,2):array($a); What do the ? and the : do here? I'm seeing this sort of thing all over and just have no idea

[PHP] Reading header information

2002-08-29 Thread jimmy
0:09 GMT Server: Apache/1.3.26 (Darwin) PHP/4.2.2 Connection: close Content-Type: text/html Really what I'm trying to find is the server message (404, 200, etc.) on a remote server from this line... HTTP/1.1 200 OK Is there anyway to access this through php? thanks, jimmy -- PHP Genera

Re: [PHP] Supplied argument is not a valid PostgreSQL result resource

2001-12-26 Thread Jimmy
Hi James, > I've been getting the following error: > Warning: Supplied argument is not a valid PostgreSQL > result resource in dbasefunctions.php on line 87 that's because your SQL query return nothing, but you try to fetch a row. -- Jimmy

Re: [PHP] Mysql Curdate problem

2002-01-02 Thread Jimmy
Hi Andras, > $aresult=mysql_query("select * from orders WHERE (a3 >= CURDATE()-$datec)" > ,$db); what's the value of $datec? integer 7 or 14? if so then try to change it to this: "interval 7 days" -- Jimmy Love deeply and passion

Re: [PHP] How to read/write form/into certain place in a text file

2002-01-06 Thread Jimmy
t; what will happen if another one will open and write the same file? php doesnt handle file locking automatically, so i think it would depend on the OS. if you want to handle file locking, read about flock(). -- Jimmy God is greater than your greatest problem -- PHP Gen

[PHP] no reply-to header?

2002-01-06 Thread Jimmy
Hi All, I just realize there's no reply-to header in this mailing list. No wonder I never receive my own email when I reply to any mail here. Does it purposely set this way? Or is this a glitch? -- Jimmy Mistakes show us what we need to learn. -- PHP Ge

Re: [PHP] no reply-to header?

2002-01-06 Thread Jimmy
Hi Martin, > I thought that if there's no "reply-to", then email clients will use the > "from" as the reply to ?? yes, correct, but the "from" is the address of the original sender, so when someone hit reply, the email will goes to the original sender

Re: [PHP] strip from

2002-01-07 Thread Jimmy
Hi WB, > Hi i need to strip out the up to the tag. > preg_replace( "/" , " " , $body ); try this: preg_replace( "/[^]*]*>/" , " " , $body ); -- Jimmy Your mind is like parachute. It works best when it is open.

Re: [PHP] HOWTO USE : htmlspecialchars

2002-01-07 Thread Jimmy
to use this function. -- Jimmy Leave loved ones with loving words, it may be the last time you see them -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

Re: [PHP] take links from url

2002-01-07 Thread Jimmy
Hi Alawi, > I want to take string between tags in put it > in variable preg_match ("|([^]*)|i", $str, $match); $match[1] will contain the string between -- Jimmy Fate shuffles the cards and we play with them -- PHP General Mailing List (ht

Re: [PHP] Running php in background?

2002-01-07 Thread Jimmy
Hi James, > Ideally, I would like to run the job in the background anyway. Can > that be done? read this: http://www.php.net/manual/en/function.exec.php and search for 'background' keyword. -- Jimmy Brigands will demand your money or your life,

Re: [PHP] Supplied argument is not a valid MySQL result resource

2002-01-08 Thread Jimmy
Hi Dan, > $parent_sql = "SELECT * FROM categories ORDER BY sort_order ASC"; > $parent_result = mysql_query($parent_sql); change the line to this one and run it again to see the error: $parent_result = mysql_query($parent_sql) or die(mysql_error()); -- Jimmy ~~

Re: [PHP] inserting a file into MSSQL

2002-01-09 Thread Jimmy
reason and left with no option other than store the file in DB. -- Jimmy Brigands will demand your money or your life, but a woman will demand both. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Interesting Problem

2002-01-09 Thread Jimmy
at works. My idea was to create two querys, but the results in from your table definition i didn't see any relation between those two tables, so most probably it doesnt make sense to make a "join" operation. just do it in 2 query, one for each table. -- Jimmy ~~

Re: [PHP] weird fopen problem

2002-01-10 Thread Jimmy
ooks like you try to open a file outside the allowed direcory tree. check your "open_basedir" setting in php.ini config file. -- Jimmy Politics SUCKS !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP] Test if picture exists then load.

2002-01-10 Thread Jimmy
e does not exist, open default image } -- Jimmy Bigamy is having one spouse too many. Monogamy is the same. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

Re: [PHP] Object Copying

2002-01-10 Thread Jimmy
Hi Ken, > As we all know, this copies an object in PHP: > $obj2 = $obj1 > Preferable a way to fix PHP not to copy the object, but the reference. this will do want you want: $obj2 = &$obj1; -- Jimmy Always keep a cool head and a warm heart --

Re: [PHP] ereg

2002-01-10 Thread Jimmy
Hi Kunal, > ereg("(.*)", $lineofhtml, $output); ereg("([^]*)", $lineofhtml, $output); -- Jimmy It's not what you have in your life that counts, but who you have in your life -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] eregi and alfa numeric characters.

2002-01-11 Thread Jimmy
id char in the pattern, and dont forget to escape the char which has special meaning in regex. -- Jimmy Money is what you make it - a servant or a master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] preg_replace help

2002-01-11 Thread Jimmy
"\\1", $myLink); -- Jimmy People are like clouds, all unique. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Piping data into a select box

2002-01-12 Thread Jimmy
February // // NOTE: This will only create the tag, without the tag // while ( list($key,$value) = each($key_value) ) { if ($key==$set) {$var.="$value";} else {$var.="$value";} } return $var; } ?> -- Jimmy

Re: [PHP] help using ereg_replace()

2002-01-14 Thread Jimmy
h position from behind, using substr_replace() function. anyway if you insist on using regex: preg_replace("/(\d{3})(\d{3})(\d{4})/", "(\\1) \\2-\\3", $arr); -- Jimmy Everything loses its value when overly used, including love. -- PHP Gene

Re: [PHP] unable to copy and chmod

2002-01-14 Thread Jimmy
you login to ftp as nobody ;)) > I can't change the file owner too. only root can chown You need root access to fix your problem...or re-upload your file using ftp, not php. -- Jimmy A diplomat is man who always remembers a woman's birthday but never her ag

Re: [PHP] Content

2002-01-15 Thread Jimmy
$ApplicationName if it show the correct value, then you're lucky. otherwise, you have to parse the HTTP request. parse_str($QUERY_STRING); // after this you will have the $NotificationProtocolVersion variable -- Jimmy A woman is like your shadow; follow her, she fl

Re: [PHP] Content

2002-01-15 Thread Jimmy
request, all the variable will be in the body/content part, so it is correct. -- Jimmy To Jazz or not to jazz. That's the question. -William Saxpeare- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Including a REMOTE FILE using include (php function)

2002-01-15 Thread Jimmy
Hi louie, > Im trying this little example of mine, Im trying to include > a file from a remote webserver but could not possibly get > it to work.. could be because the url fopen wrapper is disabled. check the value of this setting in your php.ini file: allow_url_fopen

Re: [PHP] Lazy evaluation?

2002-01-16 Thread Jimmy
Hi Alexander, > Does PHP support lazy evaluation? Meaning that if: Yes, it does. -- Jimmy Got a dictionary? I want to know the meaning of life. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] StripSlashes() & quotes in text boxes

2002-01-16 Thread Jimmy
ewhere else other than browser, for example email or printing. -- Jimmy All work and no pay makes a housewife. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] Time calculation after UNIX

2002-01-16 Thread Jimmy
n support date range from '1000-01-01' to '-12-31'. and for calculation, you can use MySQL function: ADDDATE() or SUBDATE() -- Jimmy Bigamy is having one spouse too many. Monogamy is the same. -- PHP General Mailing List (http://www.php

Re: [PHP] Lazy evaluation?

2002-01-16 Thread Jimmy
why you dont want lazy evaluation in "AND"? > if i have a statement like > if (($a == 'a') && ($b == 'b')) blahblahblah(); > and, $a != 'a'. > why should php even look at the value for $b while evaluating this line? i believe PHP implement l

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
revious 'session', not current 'session'. to prevent this, you should call last_insert_id() only when your INSERT query executed succesfully. -- Jimmy Right thinking leads to right living -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] WDDX...

2002-01-16 Thread Jimmy
btw, it's interesting that you can use WDDX to help you update your website easily. would you mind sharing with us how? Thanks -- Jimmy The past is present in the future -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Help !! Mail Function Problem (Newbie)

2002-01-16 Thread Jimmy
ight be stands for "number of recipients", and it is showing 0. So maybe you should pass the email address in proper string (enclose it inside quote), like this: mail("[EMAIL PROTECTED]", "Subject", "Line 1\nLine 2\nLine 3"); -- Jimmy

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
he previous/last INSERT query, so that if the INSERT fails then mysql_insert_id() will intelegently return the correct value. just my 1 cent -- Jimmy The average woman would rather have beauty than brains, because the average man can see better than he can think. -- P

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
his case and never looked for the last_insert_id, Exactly. That's why in the first posting (read the first paragraph above), I told him to exec last_insert_id() or mysql_insert_id() ONLY when the insert query is SUCCESSFUL. -- Jimmy When you lose, don't

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Jimmy
m lousy at reading someone's code...:) nice discussion, Neil :) -- Jimmy Buy Land. They've stopped making it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Error notification and pretty error page

2002-01-21 Thread Jimmy
being parsed/executed. you always have to pass this __FILE__ and __LINE__ because PHP dont have the ability to "backtrack" from which file/line a function is called :( and dont forget to add "@" sign in front of the PHP's function, to sur

Re: [PHP] Best way to get the remote IP address?

2002-01-21 Thread Jimmy
he "register_global" setting is off. otherwise, it's wiser to use getenv('REMOTE_ADDR') instead of $REMOTE_ADDR directly. -- Jimmy Failure doesn't mean you'll never make it. It just means it may take longer. -- PHP General Mailing Lis

[PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
different id) the question is, why pconnect() print different resource id, whereas connect() print the same one? -- Jimmy You can't quicken the growing of a plant by pulling the leaves -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
onnection = same host and same username), regardless of using connect() or pconnect(). but then someone make a small testing, by doing 2 same pconnect() and printing the returned link_identifier, which surprisingly return 2 different id. -- Jimmy There is no greater waste

[PHP] php printer functions...

2002-04-18 Thread Jimmy
I'm running PHP 4.1.1 on a Win2K box. If I understand the manual correctly, the printer functions have been integrated into PHP as of v4.0.4. However, when I try to call any of the printer functions, nothing works. Any ideas or suggestions? TIA -josh -- PHP General Mailing List (http://ww

[PHP] ODBC & MSSQL...

2002-04-29 Thread Jimmy
Anyone have any experience resetting the result cursor when using ODBC to access MSSQL (2000)? TIA -josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for security annoucements

2001-11-08 Thread Jimmy
Hi, I'm running a PHP/mySQL site which has been hacked twice this week :-((( I'm not so bad at security but I don't know any active resource to be aware of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice? Nice day to all, by the way.. Jimmy Carpe diem...t

Re: [PHP] Looking for security annoucements

2001-11-09 Thread Jimmy
I'm running phpBB not phpNuke and I'm subcribed to Buftraq, hope the otehrs are more helpful for me... Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

Re: [PHP] Looking for security annoucements

2001-11-09 Thread Jimmy
2.0 so I think the release is not serious. I spent all the day to recover the defaced topics and texts, now I gonna backup and think to another solution... Thanks for the reply anyway, Jimmy -Message d'origine- De : Mark Roedel [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 9 nov

[PHP] E-Commerce

2004-02-12 Thread Jimmy
Hi all. Is PHP a suitable language for building an online shop? Where would I go to find out more info on this? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] E-Commerce II

2004-02-13 Thread Jimmy
Wow, thanks for the help guys. Appreciate it. Here's 2 other Q that popped into my head while researching... 1. I looked at Yahoo! and bCentral, they both charge monthly fees for using their E-Commerce Tools. Why? I thought it should be a one time thing? Or are they not providing code, just letti

[PHP] Problem with arrays

2005-06-24 Thread Jimmy jimmy hoo
Hi, I have 2 arrays: Array ( [0] => Array ( [0] => 28 [1] => Music ) [1] => Array ( [0] => 5 [1] => Books

Re: [PHP] update query based on array

2002-12-09 Thread Jimmy Brake
ank' > WHERE pid=$val"); > } > > If anyone has any suggestions for fixing this problem, please let me know :) > THanks > > > __ > Jason Dulberg > Extreme MTB > http://extreme.nas.net -- Jimmy Brake <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] a good imap library?

2002-12-11 Thread Jimmy Brake
squirrel mail but I am not to happy with what I am seeing -- looks very mature but I would prefer something that is OO. Thanks in advance, Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Flow diagrams.

2002-12-26 Thread Jimmy Brake
to my knowledge there is nothing in php that does that good luck On Thu, 2002-12-26 at 11:17, Sridhar Moparthy wrote: > Hi Every one, > > Do you know how to prepare and display process flow diagrams dynamically > based on some data from database. I have information about some processes in > the

[PHP] uploading + downloading Large files ...

2002-12-27 Thread Jimmy Brake
just make em use ftp or scp? The problem with using one of those protocols is that it makes it difficult for the users to link the files to the proper account/relation/incident and anything that is a problem for users is usually a problem for me. Thanks! Jimmy -- PHP General Mailing List (http

Re: [PHP] Flow diagrams.-- Resending

2002-12-27 Thread Jimmy Brake
can you give us some examples of the data ... the example I would like to see is: based on this information this is what should be displayed On Fri, 2002-12-27 at 11:48, Sridhar Moparthy wrote: > Hi Every one, > > I have information about some processes in the database that tells different > p

Re: [PHP] monster form and compression?

2002-12-27 Thread Jimmy Brake
IE has some bugs when you have big forms when using [] test with mozilla or netscape if thats the case -- then errr well umm use what works On Fri, 2002-12-27 at 12:50, Jeff D. Hamann wrote: > I have a monster form (really a funky grid - hey the client is always right) > that does not display

RE: [PHP] Flow diagrams.-- Resending

2002-12-31 Thread Jimmy Brake
On Mon, 2002-12-30 at 06:59, Sridhar Moparthy wrote: > Hi Jimmy, > > Thank You for the your reply. Here is the example. > > If > 1. Jobs 'B' and 'C' starts immediately after Completion of job'A' > 2. Job 'D' starts after completion o

[PHP] mac os 9 - file upload problems

2003-02-10 Thread Jimmy Brake
Hi, I have a file upload page that accepts file uploads from pretty much every browser and os EXCEPT any browser on mac os 9. I have no idea why, any of you ever have problems with file uploads on mac os 9? How did you solve the issue. -- Jimmy Brake <[EMAIL PROTECTED]> -- PHP G

[PHP] I have a problem with MsSQL

2003-02-17 Thread Jimmy Huaman
Hi. My problem is the characters in spanish: example: Construcción (Data of MsSQL Server) Result in web with PHP: Construcci¢n Thanks you. Prompyme a su servicio - Prompyme a su servicio. "El Estado su mejor cliente, visite la página de

[PHP] vni -> unicode

2003-02-17 Thread Jimmy Brake
Hi! I was wondering if anyone has vni -> unicode conversion script. Thanks Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] crontab

2003-03-04 Thread Jimmy Brake
idea :) ) but running a php script versus a bash or perl or whatever script/program is no more a concern than those ( always have security in mind ) On Tue, 2003-03-04 at 13:07, John Taylor-Johnston wrote: > Cal, Liam, Jimmy, > Thanks. If this is a serious security hazard, could you show m

Re: [PHP] fopen and file dump to a databace...

2003-03-09 Thread Jimmy Brake
hi mark! i import data all the dang time and this is what i use (more or less) Insert($query); // i use a class for my mysql connections } function csv_parse($data, $separator) { $quote = '"'; $values = array(); $toggle = 0; $len = strlen($data); $count =

Re: [PHP] Weird slowdown using complex functions in a loop

2003-03-12 Thread Jimmy Brake
where are you storing the information that you are cleaning once it is cleaned? are you appending it to a variable in the script? On Wed, 2003-03-12 at 00:26, pgcd wrote: > Hi, > I'm trying to write a script to do some basic XML validation - nothing > fancy, basically I just close open tags and c

Re: [PHP] 2 databases

2003-03-19 Thread Jimmy Brake
yes -- i connect to oracle and mysql simultaneously .. On Wed, 2003-03-19 at 15:21, Iwan van Kanten wrote: > Is it possible to connect to 2 different databases?? > 2 different dtabase typs I mean > postgresql and Mysql > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] cookies with internet explorer on macs

2003-03-31 Thread Jimmy Brake
other browsers on linux are fine. This is what I use to set the cookie. $rand = md5(uniqid(rand())); setcookie("sessid", $rand, time()+43200, "/"); Any ideas? Thanks! Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookies with internet explorer on macs

2003-03-31 Thread Jimmy Brake
thanks ... lots of my customers use entourage ... On Mon, 2003-03-31 at 20:53, Lowell Allen wrote: > > From: Jimmy Brake <[EMAIL PROTECTED]> > > > > The cookies i set for people using Internet Explorer on mac (OS X or mac > > os 8-9) are not staying alive as long

Re: [PHP] native vs. phplib sessions

2003-04-04 Thread Jimmy Brake
-04-04 at 12:26, Dennis Gearon wrote: > How many people are using native vs. phplib sessions, vs. their own/homegrown > sessions? > > The archives show a LOT of problems with native sessions. -- Jimmy Brake <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.ne

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Jimmy Brake
was worth the trouble/overhead). > > Can anyone offer an opinion on this? Is persistence with jsp that much > easier compared to PHP? And if true persistence is possible is it all > it's cracked up to be? > > I've often dreamed of being able to have true persistenc

[PHP] What causes this?

2002-10-28 Thread Jimmy Brake
;--enable-sigchild' '--enable-track-vars' '--enable-wddx' '--with-mysql' '--with-jpeg-dir=../jpeg-6b/' '--with-t1lib=../t1lib-1.3.1' '--enable-wddx' '--with-apache=../apache_1.3.27' '--with-mysql=/usr/local/mysql/&#x

Re: [PHP] Cleaning pasted Word text

2002-10-29 Thread Jimmy Brake
for file maker pro (windows/mac) -- word (windows/mac) function make_safe($text) { $text = preg_replace("/(\cM)/", " ", $text); $text = preg_replace("/(\c])/", " ", $text); $text = str_replace("\r\n", " ", $text); $text = str_replace("\x0B", " ", $text); $t

Re: [PHP] Re: Looking for good ZIP Code / Latitude / Longitude table

2002-10-30 Thread Jimmy Brake
how much does the service cost? or am misunderstanding the class? why do you have to enter a password? On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote: > Hello, > > On 10/30/2002 04:03 PM, Michael Zornek wrote: > > I've written a nice php/mysql site that let's you search for hospitals and > >

[PHP] STDIN/STDOUT in PHP

2002-06-09 Thread Jimmy Lantz
I've been looking for a way to work with stdin/stdout for a mod_rewrite's rewritemap. There's a working example in Perl, (just returning the input) #!/usr/bin/perl $| = 1; while () { print $_; } I've been trying to achieve this with fopen() read and write the php://stdin & php://stdout

[PHP] I would like to ask about Photo Upload in mysql and reteive problem .

2002-07-05 Thread Jimmy Lam
to let me reference. ?? I am doing my project. I need this information in urgent. Please friendly give me advice here . thanks Jimmy

[PHP] A problem in mysql_fetch_array

2002-07-08 Thread Jimmy Lam
I have insert some text with space to mysql DB with varchar() When I use mysql_fetch_array function to retrieve the data from DB . I found only the first session text can be shown . It means if any space there . It will split like session by session. for example. my DB have a text "Hello World"

[PHP] ^k ? -- how do I match that?

2002-07-15 Thread Jimmy Brake
a form its ok, but when I export that data to a csv it gets ugly. http://www.robelle.com/smugbook/ascii.html Thanks in advance! Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] missing function? array_change_key_case()

2002-07-17 Thread Jimmy Brake
running 4.x any ideas? Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] missing function? array_change_key_case()

2002-07-17 Thread Jimmy Brake
yep thats it ... On Wed, 2002-07-17 at 18:02, John Holmes wrote: > Works fine for me on 4.2.1 > > You have to have at least 4.2.0, do you? > > ---John Holmes... > > > -Original Message- > > From: Jimmy Brake [mailto:[EMAIL PROTECTED]] > > Sent: Wed

[PHP] PHP logo question

2004-01-12 Thread Jimmy Lantz
ies within the month or two months. Cheers Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Empty Reference to an Object

2004-01-13 Thread Jimmy Lantz
m2){ if(get_class($param2) =='stdClass') $param2 = NULL; // get_class might return stdclass not sure } ?> / Jimmy -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] mysql_fetch_row() and mysql_fetch_array()?

2001-01-17 Thread Jimmy Bäckström
etch_array($result) ... it worked just fine. So what is the difference? /Jimmy

[PHP] Session problems

2001-01-23 Thread Jimmy Bäckström
Yo! I'm playing a little bit with sessions for the moment and I get a really scary errormessage: Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m (2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5 Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O

Re: [PHP] Session problems

2001-01-23 Thread Jimmy Bäckström
path' in your php.ini. > be careful with the slashes you use. as you can see from > the error msg by default it's '/' but windows uses '\'. > > good luck > Johannes > > > "Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitr

[PHP] session.save_path

2001-01-23 Thread Jimmy Bäckström
Yo! I'm sending this call for help once again, since I didn't get an answer to my problem last time. I'm working a little with sessions, but I get a message like this: Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m (2) in h:\program\apache\htdocs/boa/sessionTest.p

[PHP] ImageGif: No GIF support in this PHP build

2001-03-01 Thread Jimmy Bäckström
Shu! When I try to use the function ImageGif() I get the following error: Warning: ImageGif: No GIF support in this PHP build... I'm using win2k with php4 width the gd module enabled in php.ini What can I do to make this problem go away? Thanks in advance /Broder

[PHP] Please help!! how to compare an array with another

2001-03-04 Thread Jimmy Bäckström
Shu! I am currently working on a site where I want to randomly show pictures. I am using sessions to save the id's of the pictures that a user has seen during his/hers visit. My first question is: Can I use an array as a session variable? like this: $arr = array(1, 2, 3, 4, 5); session_start();

[PHP] Function to compare an array with another array

2001-03-04 Thread Jimmy Bäckström
Shu! I need some help here. I have a script where I want to compare two arrays with eachother, and return one value from that does not exists in both arrays. I have an array of pictures id number created from a database query. I use sessions to save id numbers of pictures into an array. I want

[PHP] Create a Bulletin Board

2001-03-20 Thread Jimmy Bäckström
Yo! I'm thinking of writing a bulletin board and I wonder about threads. I want the board to be built on threads but I don't know how to do it. I want it to look something like this: subject 1 | |__ reply1 to 'subject 1' | | | |__ reply1 to 'reply1 to subject 1' |

[PHP] ld: fatal: Symbol referencing errors.

2001-03-20 Thread Jimmy Lantz
Hi, I was wondewring if someone know the reason to the error below, I'm no Unix guru and my sysadm says he cant get ldap to work due to this, is there anyone who tell me what to tell him to get it to work? greetings Jimmy Lund Sweden //ERROR ENCLOSED BELOW. gcc -DSOLARIS2=260 -I/usr/loca

[PHP] Newline in a guestbook

2001-04-24 Thread Jimmy Bäckström
Hey guys! I'm writing a guestbook with mysql. My probblem is that when user enter at long word like blablablablablablablablablablablabla my html-tables gets screwed up. If someone is just fooling around the whole page design can be destroyed. I want to know how I can make sure that no word is l

[PHP] parse error is always on line 1 == error ?

2001-04-26 Thread Jimmy Lantz
15 on solaris) Please help me out on this one. Best wishes Jimmy Lantz Sweden

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Jimmy Lantz
Yes, thank you you're right this is exactly what it was, I used Dreamweaver on a mac to edit the files, but now if I encounter parse error I convert them with BBEdit. Thank you. Jimmy Lantz >I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get >parse errors on li

[PHP] How do I call_user_func_array() on 4.0.1pl2 ?

2001-04-28 Thread Jimmy Lantz
Hi, I wonder if there's a way to get the same result as with call_user_func_array()on 4.0.1pl2 . I need to do the following :   foreach($formArray as $arrays){ foreach($arrays as $key => $value){ call_user_func_array

[PHP] How do I call_user_func_array() on 4.0.1pl2 ?

2001-04-28 Thread Jimmy Lantz
ing, I cant update since it's not my own server. Thanx Jimmy from Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Going crazy again ...

2001-05-01 Thread Jimmy Lantz
Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske du kan använda en dold variabel via html-formuläret istället och använda den i case satsen? Men det svarar ju inte på din fråga men lycka till. / iImmy Martin Skjöldebrand wrote: > Going grey haired again. In this code onl

[PHP] [PHP 4.2.0] Benchmarking file uploads?

2002-04-24 Thread Jimmy Lantz
Hi, I'm looking into the new version of PHP it says in the changelog "Highly improved performance with file uploads " Has there been any benchmarking done on this? / Jimmy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP 4.2.0] HTTP PUT method & $_FILES ?

2002-05-10 Thread Jimmy Lantz
$HTTP_PUT_FILE['path_translated'] The full path of the proposed upload like /usr/home/foo/bar/public_html/mytest/filename.htm $HTTP_PUT_FILE['size'] The size, in bytes, of the uploaded file. $HTTP_PUT_FILE['tmp_name'] Temp name something like /tmp/hfdhjfufd8733 My on

[PHP] Re: [[PHP] php problem]

2002-05-10 Thread Jimmy Lantz
"johnny1b1g" <[EMAIL PROTECTED]> wrote: ? Well I guess I could try to help you if you elaborate your question a bit further. / Jimmy Start with RTFM :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Ma

[PHP] Sane path? Avoiding people climbing in directory structure ../../

2002-05-20 Thread Jimmy Lantz
Hi, I'm planning on using userinput as a part of path to read (horrific I know :) So to make this userinput a bit more secure I'm thinking to use $path = escapeshellarg($path); $path = str_replace("../","",$path); I'm thinking to use a basedir in a constant something like /usr/home/userdir (thi

[PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread Jimmy Lantz
Hi, started playing with Mcrypt and just wanted to ask which encryption method makes the stronger encryption? (I can supply the necesary keylength). Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :) So what do I need it for? I'm going to use it encrypting files, sizes vari

[PHP] Mcrypt: Blowfish or Twofish or no fish? Part 2

2002-05-21 Thread Jimmy Lantz
Thanx for the suggestions! Someone mentioned that I could use MD5 and then encrypt the hash, how would I ever decrypt that? Is'nt MD5 a 1-way thing only? Another question? Should I go for bigger keylength or bigger blocksize or both? What makes for the best encryption? / Jim (and before someon

RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Jimmy Lantz
>I believe that twofish has been successfully broken, so use blowfish >instead. Typically, for encrypting files you will use an algorithm like >blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt >supports this. Also, when creating the hash of the file, it is probably best >

[PHP] (Unlink(file) == rm file) ? (ignore this mail):(explain diffs);

2002-05-28 Thread Jimmy Lantz
Hi, (Unlink(file) == rm file) ? (ignore this mail):(explain diffs); Does PHP unlink function handle deletion of files equally as the "rm" command on the system in my case FreeBSD. Or does it involve caching/handling files in any different way? / Jim -- PHP General Mailing List (http://www.ph

  1   2   >