Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-03-05 Thread Barry Smith
away. Thank you for the suggestion. A WordPress site might actually be the solution... if she is willing to leave Charter. -- Barry Smith c 704-497-4217 e scs.bns...@gmail.com On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Have you considered setting

Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-02-26 Thread Barry Smith
should probably read, or topics that I should make sure I understand completely in php. Peace, -- Barry Smith c 704-497-4217 e scs.bns...@gmail.com

[PHP] Re: __get() accessor question (a bug maybe?)

2006-11-15 Thread Barry
TemuriI schrieb: Hi all, here is the code I am having problem with: class baseForm { private $_id = 10; function __get($member) { echo Accessing member \{$member}\ : br /\n; return $this-$member; } function checkID()

[PHP] Re: __get() accessor question (a bug maybe?)

2006-11-15 Thread Barry
TemuriI schrieb: just a small idea. public function __get() {...} Might work *untested* -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular expression to find from start of string to first space

2006-08-08 Thread Barry
space. But it doesn't work. Where did I go wrong? -- Dave M G http://www.rexv.org/ This is a quite good site to learn and test regexpressions. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Is this really a pdf?

2006-08-07 Thread Barry
Sjef schrieb: Is it possible to recognize if a file for upload really is a pdf (like the function getimagesize retuns the file type of the image)? Thanxs, Sjef this might help http://de3.php.net/manual/en/function.mime-content-type.php -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o

[PHP] Re: UTF-8 With content-type text/xml problem.

2006-07-21 Thread Barry
Mathijs schrieb: Hello ppl, I have a big prob. I have a page which post some input. This input can be UTF-8 like chinese or other utf-8 chars. Also i need it to return UTF-8 and it has to be xml. For some strange reason this isn't working. Small example. PHP Code: ?php header('Content-Type:

[PHP] Re: I cannot forget you!

2006-07-11 Thread Barry
[EMAIL PROTECTED] schrieb: your big love, ;-) Well PHP is good but is it that good? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: login problem

2006-06-26 Thread Barry
time. PHP don't have functions specialized for that, and you have to use your brain to think about a way around that. And ppl told you that this can lead you into problems. I don't know where this here gets but you will doing you good to do some own research. Barry -- Smileys rule (cX.x)C

[PHP] Re: session problem

2006-06-21 Thread Barry
; ? below is second page : ?php session_start(); echo print_r($_SESSION['LIST_OF_DATA']); ? Let me take a guess: Your FORM action is action=http:// Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing

[PHP] Re: helping people...

2006-06-21 Thread Barry
Jochem Maas schrieb: helping some people will get you no end of trouble. and so it seems as though I'm going to be DoSSed by someone who uses Outlook Express as their mail client. I guess it's monday somewhere. It's the email from Rob W. See further down in this list. Barry -- Smileys

[PHP] Re: session problem

2006-06-21 Thread Barry
weetat schrieb: Let me take a guess: Your FORM action is action=http:// Barry yes i am Thank for you help Ookay ... no problem ... probably . Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net

[PHP] Re: User Login Problem

2006-06-20 Thread Barry
suresh kumar schrieb: Hi, I am facing one problem in my project.i want to restrict more than one user login in the same account . Is there any functions available to check r we can implement using session. Nothing specialized than that. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Barry
Jochem Maas schrieb: Rory Browne wrote: Do you know who the list admin is? php-general has been traditionally admined by users flaming people posting bad content. This doesn't work for spam. just wait till we have spambots with AI and emotion subroutines ;-) Oh yeah then i will have it to

[PHP] Re: SELECT tag and PHP

2006-06-16 Thread Barry
weetat schrieb: Hi all , I have a SELECT for country in the php file . I would like to load the country and city belong to the country dynamically from the database. Anyone have ideas how to do it ? Thanks - weetat www.php.net/foreach -- Smileys rule (cX.x)C --o(^_^o) Dance for me!

Re: [PHP] Re: File Download Headers

2006-06-16 Thread Barry
. There are plenty of useful aspects of HTTP not defined in RFC 2616. Content-type: application/octet-stream There's no reason you can't use both. Chris Chris: Barry says you can use these three: header(Content-Type: application/force-download); header(Content-Type: application/octet-stream

[PHP] Re: Automatic email sending

2006-06-16 Thread Barry
, but how is it possible to do it in background. Another solution. Take the Page which is most viewed and put the function that checks in it. So you have a very high possibility that it will run at least once a day. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o

[PHP] Re: How to run one php app from another? RECAP

2006-06-16 Thread Barry
before that would not be seen by the user so you can do a lots of things before you output actually something. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Simulating a POST

2006-06-15 Thread Barry
Man-wai Chang schrieb: I hit the script by http://server/haha.php?ip=192.168.1.1 But the script entered an endless loop. What's wrong? htmlhead/head body onload=document.myform.submit() This is causing the

[PHP] Re: File Download Headers

2006-06-15 Thread Barry
. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Simulating a POST

2006-06-15 Thread Barry
Man-wai Chang schrieb: Here is the new version: this should work. Have you tested it? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Simulating a POST

2006-06-15 Thread Barry
it submittes itself automatically. you have to remove that onload. Otherwise the post will still be empty and it will reload itself again and again. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Simple blog software... Simple but clean code... suggestions?

2006-06-15 Thread Barry
others people prefer. TIA. :) Cheers, Micky Well if you have that often this case, i would prefer you code one for yourself. Imho the best way :) Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: File Download Headers

2006-06-15 Thread Barry
Jochem Maas schrieb: Barry wrote: Barry, chances are Richard was already initiating downloads when you were still eating from a bottle. I don't think so well because the Zuse had no network capability. I for myself use this: header(Content-Type: application/force-download); header(Content

[PHP] Re: CMS Typo 3 (Slightly 0T(?))

2006-06-15 Thread Barry
Ryan A schrieb: How hard was it for you to learn it? It's like a new language... How useful has it been to you? Very. Depends on what you. When you get into meodul coding you are very near to a extremly useable CMS system. Support when you hit a programming wall? The community is quite

[PHP] Re: readdir problem with white spaces

2006-06-15 Thread Barry
!). This might handle it ;) Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: File Download Headers

2006-06-15 Thread Barry
Chris Shiflett schrieb: Barry wrote: You can send every header twice, triple. a zillion times if you want. Sure, but you have to know how to use header(): http://php.net/header By default it will replace, but if you pass in FALSE as the second argument you can force multiple headers

[PHP] Re: Setting headers for file download

2006-06-14 Thread Barry
Peter Lauri schrieb: Best group member, This is how I try to push files to download using headers: header(Content-type: $file_type); header(Content-Disposition: attachment; filename=$filename); print $file; It works fine in FireFox, but not that good in IE. I have been googled to find the

Re: [PHP] Re: Setting headers for file download

2006-06-14 Thread Barry
-type like he wants to. They ignore mostly every type they dislike. That's the problem you encounter in using firefox/IE. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Help with some clever bit operations

2006-06-13 Thread Barry
do I combine A, B and C to get that result? addition probably? Btw. the result of the addition would be : 111010101 Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Barry
Peter Lauri schrieb: How can I send UTF-8 mails with the mail() function. Right now I am doing: mail('[EMAIL PROTECTED]', 'Subject', 'Message', From: The Sender [EMAIL PROTECTED] \n . Content-Type: text/plain; charset=utf-8 \n . Content-Transfer-Encoding: 7bit\n\n) The message is being

[PHP] Short writage of clauses

2006-06-12 Thread Barry
Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
Stut schrieb: Barry wrote: Well i do know that you can write IF as ( ? : ) but what i am asking about is something like this: if (a = 1 OR a = 2) I think you mean == not =. Yeah. sorry ;) is it anyway possible to write it like: if (a = 1 OR 2) I know this is wrong because 2 will always

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
, it is better to view. Is it the same as the if i stated? (the grandma one) it's one if but not multiple ones (if elseif elseif .. etc.) The problem still is it's not that short ;) Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
is much of typing if ($db_array[my_fieldname] != $other_db_array[my_other_fieldname] OR $db_array[my_fieldname] == 2 OR $db_array[my_fieldname] == my_very_special_functionname()) and so on. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General

Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry
Jochem Maas schrieb: Barry wrote: Jochem Maas schrieb: I find a switch statement sometimes handy for creating a 'truth table' like you describe (I sometimes find it easier to read and/or add 'if' clauses): switch (true) { case ($grandmaAge = $tableAge): case ($grandmaAge $houseAge

[PHP] Re: Video compression with php?

2006-06-12 Thread Barry
Merlin schrieb: Hi there, I am searching for a way to convert video during an upload to a flash format including compression. Is there any php module which does something like that? I know that there is a lot out there for images, but for videos? Thank you for any hint, Merlin google is your

Re: [PHP] server sending notifications to clients

2006-06-08 Thread Barry
Angelo Zanetti schrieb: kartikay malhotra wrote: Hi All, Is there a way for the server to notify the client about an event, provided the client was online in the past X minutes? To elaborate: A client comes online. A script PHP executes (serves the client), and terminates. Now if a new

[PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Barry
Ben Liu schrieb: Hello All, I'm using a form (method=POST) to collect 30 boolean values from the end user using a series of checkboxes in the form. The form is arranged in a table so that the 30 check boxes are not a long list but rather three columns (with related items columnized). The

[PHP] Re: Passing variables.

2006-06-08 Thread Barry
William Stokes schrieb: Hello, I've used like 3 hours to get this done but I can't figure this out. Hope someone here can help. I have a form that a user can use to edit www pages. Page content is stored in DB as a HTML code. First user has to select, from select menu, which page to edit.

[PHP] Re: HTTP ERRORS Boolean

2006-06-07 Thread Barry
the headerinformation. since 200 is OK and 404 would be GONE and so on. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File downloads

2006-06-07 Thread Barry
kartikay malhotra schrieb: Dear All, I have a HTTP server + MySQL database. Everytime a file is requested for download, my PHP script loads the content from the database into a temporary file (on the server). I then pass a URL to the client, with a link to this file. The client can thus

[PHP] HTML mailing list

2006-06-07 Thread Barry
the bodytext as it should. But Outlook express isn't working. It looks like it encodes it to URL like internally. Hexadezimal numbers with a leading % Any help or a mailing list would be nice :) Thanks Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP

Re: [PHP] When is z != z ?

2006-06-06 Thread Barry
Martin Alterisio schrieb: is it really worthy the functionality supplied with the string ++ operator as it is? I don't see its usefullness yet. guess you want to order something by name not by number which might be false in some cases (1,10,2,20,21 ... and so on). There it might be useful.

[PHP] Re: Parse string with variables

2006-05-31 Thread Barry
not find another function which does this. Thank you for any hint, Merlin quite less infos you give. echo $P[2] would output test or what? $U[test] or $U[1] = test ?? a hint. Uhm, use regexpressions to split the string and form variables out of it. my guess. Barry -- Smileys rule (cX.x

[PHP] Re: Graphics generation.

2006-05-23 Thread Barry
://www.unlimitedmail.net/ --- A very good one is: JPgraph http://www.aditus.nu/jpgraph/ Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Barry
- Well, I'm kind of a newbie at this. So you think this will solve my problem? Why don't you test it? -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Range mktime?

2006-05-18 Thread Barry
Gustav Wiberg schrieb: Hi I wondew which range the mktime has? (in digits) In my case it always start with 1. something like 1147951344 Is this ALWAYS TRUE (that it would start with 1) Best regards /Gustav Wiberg mktime is giving you the time in seconds since 1st april 1970 So no. It's not

[PHP] Re: What's this in my dir list?

2006-05-18 Thread Barry
tedd schrieb: Hi Gang: When I list one of my directories, via: echo(pre); system(ls -l); echo(/pre); I get: -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif -rw-r--r-- 1 ancientstones psacln 2090 May 14 10:10 as.css -rw-r--r-- 1 ancientstones psacln 658 May 2

[PHP] Re: A searching problem in lists

2006-05-17 Thread Barry
[EMAIL PROTECTED] schrieb: Hello, I'm not a Perl guru so I (still) have problems :-) And this is not a Perl mailinglist so we have the same problem :) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Converting characters

2006-05-17 Thread Barry
Jonas Rosling schrieb: Hi, the PHP newbie is here again asking questions. Is there anyway in PHP to convert none international characters so the are displayed correct? In my case I have lots of data in the database with å,ä and ö. Thanks // Jonas displayed where? in html with htmlentities.

[PHP] Re: Help w/ 'headers already sent' and file download

2006-05-16 Thread Barry
file. Call that script with Javascript when the page is load. That way you could display the content and download the file. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Views on e-commerce download tracking

2006-05-15 Thread Barry
Chris Grigor schrieb: Hey all Was just wondering what others have used on there e-commerce sites to manage digital downloads, for instance how to track if a user succesfully downloaded a complete file from you (what happens if there connection drops halfway through a download) Is there

[PHP] Re: phpEditIni has moved to phpeditini.net

2006-05-12 Thread Barry
are running with unix. And you should remove those debug stuffs you left inside that file which you had commented out. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Is there an easier way of doing this?

2006-05-10 Thread Barry
Chris Grigor schrieb: morning all, Is there an easier way of doing the following?? form1 submitting to form1.php input type=checkbox name=1 input type=checkbox name=2 input type=submit form1.php ?php $link = mysql_connect('host', 'user', 'pass') or die (Connection failed: . mysql_error());

Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Barry
James Nunnerley schrieb: Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! I'm not even sure this is a php question! No you can't.

[PHP] Re: Upload File

2006-05-10 Thread Barry
Renzo Clavijo schrieb: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the image?. Is there

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
Peter Hoskin schrieb: Renzo Clavijo wrote: hi all.. I'm gonna be more precise: I wrote a form with fields text type=file , then i need to know how to upload the files to the MySQL server (postgreSQL wold be appreciated). It implies: Which field(s) must have the table where I'll save the

Re: [PHP] Re: Upload File

2006-05-10 Thread Barry
wishes Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: check socket status

2006-05-10 Thread Barry
Antanas Vipartas schrieb: Hi I need to check if socket on some port is listened by some service. How could I do this ? thanks, Antanas Vipartas Knock at the port door ;) Nah just kidding. you can try to connect via fsockopen. I hope that port gives something back you can read out. because

Re: [PHP] SPANISH E-MAIL RESULT

2006-05-09 Thread Barry
Paul Scott schrieb: On Tue, 2006-05-09 at 06:11 -0400, SPANISH SWEEPSTAKE LOTTERY wrote: SPANISH SWEEPSTAKE LOTTERY OK this is getting crazy. Is it Spam the list day today? Did I miss the memo in the flurry of spam mails? Looks like it time to tighten up the ol spam traps again... --Paul

Re: [PHP] Browser displays blank page, while request still beinghandled

2006-05-08 Thread Barry
on. There are some really nasty outputs you can generate while the user has to wait. And you wouldn't have a blank page anymore. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: blowfish result varies local server

2006-05-08 Thread Barry
is an external (PEAR) library anyway... very puzzling! やほ! ここはもPEARメールリストがあります。 そこでをといかけますをください;) じゃね〜♪ Hi! Here is also a PEAR mailing-list. You should ask there. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http

[PHP] Re: Showing an image outside of the web folder

2006-05-05 Thread Barry
James Nunnerley schrieb: I'm creating a file manager application, from which I want the user to be able to edit/view files. On the text side of things, it's pretty easy, however from the image side of things, I'm not sure how to allow the user to view files outside of the web folder. Doing a

Re: [PHP] printf and number_format rounding

2006-05-04 Thread Barry
Richard Lynch schrieb: On Wed, May 3, 2006 12:25 pm, Duffy, Scott E wrote: Are printf and number_format supposed to round? echo ($hcount-$lcount)/$hilow. ; echo number_format(($hcount-$lcount)/$hilow,2,'.',''); 0.208333 0.21 0.145833 0.15

[PHP] Re: php and ssl

2006-05-04 Thread Barry
Schalk schrieb: Greetings All, I am currently implementing a form for a client that will run over https. Now, all is good and well except, for some reason when the form loads in IE the lock in the status bar displays for a short while and then goes away, it is fine in Firefox though. The way

Re: [PHP] PHP Standard style of writing your code

2006-05-03 Thread Barry
Richard Lynch schrieb: On Tue, May 2, 2006 4:07 am, Barry wrote: [snip] Barry; I'm sorry, but you screwed up the indentation in the sample with in-line brackets. So, duh, it's unreadable. It's not quite easy to intend in mail clients because that might be they are not suited for coding

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I don't think you will be able to show one. But this wasted space gives you a lot more insight into the code when looking

[PHP] Re: Totally 0T - Spam

2006-05-02 Thread Barry
Ryan A schrieb: Hey all, I get a crapload of spam and I am pretty sure most of you too as we work so much online, for the past few months I joined a site called bluesecurity.com and installed their blue frog client and now my spam has dropped by over 70% Lol sorry these first few lines

[PHP] Re: Syntax Oddity

2006-05-02 Thread Barry
Richard Lynch schrieb: Does anybody have a rational explanation for what purpose in life the following syntax is considered acceptable? ?php $query = UPDATE whatever SET x = 1; $query; ? Well from PHPs point of view this is not a syntax error. Note that the line with just $query; on it

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Richard Lynch schrieb: On Tue, May 2, 2006 3:02 am, Barry wrote: Rafael schrieb: IMHO, vertical aligned brackets can be messy when nesting relatively-small blocks (and seems to me like a lot of wasted space) Huh?! Show an example. I don't think you will be able to show one

[PHP] Re: php mysql problem

2006-05-02 Thread Barry
position in the list. If I change id 3 to id 1 then everything else shifts down. update id = id +1 WHERE id X Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
, the error message usually points to a line in the middle of the file, slap bang in the target area. Yeah true. : and endif is nicer. But it's a bit more about the formatting. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
Ford, Mike schrieb: On 02 May 2006 14:19, Barry wrote: Oh my god -- curly brackets and excessive indentation -- and curly brackets. Just a mo, where did I put my curly-brackets-and-whitespace-glasses? Aaaahhh, that's better!! As you might have guessed, I *HATE* curly brackets

Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry
we will see probably someday if noone gets a good standard up :P Ahaha: For I = 0 STEP 5; NEXT I; i love that XD C64 rulez :P PS: Barry, you and I use the exact same style -- you must be very intelligent. ;-) Or very stupid, depends on who looks at us ^_^ -- Smileys rule (cX.x)C --o(^_^o

Re: [PHP] Re: php - js (was Javascript Navigation)

2006-04-28 Thread Barry
Robert Cummings schrieb: On Thu, 2006-04-27 at 11:09, Barry wrote: tedd schrieb: Hi gang: Gang? You know... Scooby, Shaggy, and Mary-Jane. ah, ic. 1. A way to send information from js to php and have php act upon it. Java ... Sucks. Because? 2. A way to send information from php

Re: [PHP] Re: php - js (was Javascript Navigation)

2006-04-28 Thread Barry
tedd schrieb: At 5:09 PM +0200 4/27/06, Barry wrote: tedd schrieb: Hi gang: Gang? Gang, group, clan, community, organization, hive, pod, assembly, biocenosis -- what do you want to be called? By my name normally. And if you adress everyone i prefer everyone Show me. function jstojava

[PHP] Re: Help!

2006-04-28 Thread Barry
Dave Goodchild schrieb: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing application that uses multipart emails to notify

Re: [PHP] Help!

2006-04-28 Thread Barry
Dave Goodchild schrieb: I would do but there are 5000+ lines and no indication of where the error is occurring. I have just copied the demo version into the same dir and it works fine - and that version calls the same classes (includes). The problem is without code we neither can give any

Re: [PHP] Help!

2006-04-28 Thread Barry
Martin Alterisio schrieb: 2006/4/28, Dave Goodchild [EMAIL PROTECTED]: Hi all - I am attempting to solve some maddening behaviour that has me totally stumped and before I take a blade to my throat I thought I would pick the brains of the group/hive/gang. I am working on a viral marketing

[PHP] Re: we are looking for experienced php programmers full time freelance...

2006-04-28 Thread Barry
worked on several projects. Knowing? Like: Oh pear? Yeah i know it www.php.net/pear please contact me at [EMAIL PROTECTED] quote your charges and the time that you will be available. also mention msn or yahoo ids. skype id is more welcome. Why don't you offer something? Barry -- Smileys

[PHP] Re: Beginner's php/mysql connection probs

2006-04-28 Thread Barry
($temp1,$conn); [OT] And one more thing is if I want to replay to a msg in this mail list do I have to hit replay button or replay-all button for posting in the mail list. I use microsoft outlook 2000 Reply all is ok. Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o

[PHP] Re: forms and dynamic creation and unique field names

2006-04-27 Thread Barry
Jason Gerfen schrieb: I have come upon a problem and am not sure how to go about resolving it. I have an web form which is generated dynamically from an imported file and I am not sure how I can loop over the resulting post variables within the global $_POST array due to the array keys not

[PHP] Re: php - js (was Javascript Navigation)

2006-04-27 Thread Barry
tedd schrieb: Hi gang: Gang? 1. A way to send information from js to php and have php act upon it. Java 2. A way to send information from php to js and have js act upon it. Java -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List

Re: [PHP] how to get the absolute path of an included file?

2006-04-27 Thread Barry
and such. If it's in the same folder why dont you use include (file2.php); ? Otherwise youse pathes like ../subfolder/folder Only if you really want to load stuff thats not at the web directory use full pathes like /path/to/folder Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o

Re: [PHP] forms and dynamic creation and unique field names

2006-04-27 Thread Barry
Jason Gerfen schrieb: Martin Zvarík wrote: Jason Gerfen wrote: I have come upon a problem and am not sure how to go about resolving it. I have an web form which is generated dynamically from an imported file and I am not sure how I can loop over the resulting post variables within the

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Barry
Gonzalo Monzón schrieb: I forgot to put some final note into my last message. PHP can be good for a lot of things, but not really for other. Yeah true (o_O) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Serveral forms in a page.

2006-04-25 Thread Barry
William Stokes wrote: Hello, This might be more HTML stuff but anyway... Yeah, anyway who cares if it belongs in here or not. I have several forms in a page which is ok otherwise but the reset buttons doesn't clear anything that is queried from DB and printed to the text fields. Any idea

[PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Barry
high because of the links. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to convert a string( 23/04/2006) to a string 23042006 in javascript?

2006-04-25 Thread Barry
related to PHP should be asked. You are having a problem with JAVASCRIPT so you should ask in a JAVASCRIPT mailing list or either start reading MANUALS and DOCUMENTATIONS because they provide LOTS of INFORMATION about the things you are SEARCHING for. But i will give you a hint: replace() Barry

[PHP] unexpected T_NEW on object property

2006-04-21 Thread Paul Barry
/Address.class.php'); class User { public $name; public $address = new Address(); } ? Then if I try to use the user object like this: ?php require_once('model/User.class.php'); $user = new User(); $user-name = 'Paul Barry'; $user-address-city = 'Washington'; ? ?= $user-name ? lives in ?= $user

Re: [PHP] Pushing Vars into $_SESSION

2006-04-20 Thread Barry
Chris Grigor wrote: The method behind the madness here, is that I am only pulling the data once from the db throughout the whole session. This means that all the user info is available on every page they visit. I can also then identify on each page that loads if a user has signed in and a

[PHP] Re: Execute script and redirect

2006-04-20 Thread Barry
Peter Lauri wrote: Best groupmember, I have a form that is being filled out. This is the process: 1. Fill out form and click submit 2. Script validates data 3. Data is being sent to external source via Web Service 4. A file is being downloaded (redirects to files

[PHP] Best way to start a CRON

2006-04-20 Thread Barry
will be appriciated :) Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to start a CRON

2006-04-20 Thread Barry
Pure Web Solution wrote: I run several PHP scripts via CRON in the following way: put the following in the top of the php script: #!/usr/local/bin/php -q (linux system - location of php bin) and in the CRONTAB I have the following: 10 1 * * * root /usr/local/bin/php -q /script/CRONexport.php

[PHP] Re: POST arrays?

2006-04-20 Thread Barry
William Stokes wrote: Hello, How to post an array with associated values? This works ok ?php $arr_siirto = array(1,2,3); print_r($arr_siirto); $arse = $arr_siirto; print_r($arse); ? But if I post it to another form with this: input type=hidden name=arr_siirt_jouk value=?php echo $arse;?

Re: [PHP] POST arrays?

2006-04-20 Thread Barry
William Stokes wrote: No other way? Over sessions or saving as file and loading it in the following page. -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] a funny variable composition out of my daily programmer life

2006-04-19 Thread Barry
He really didn't knew what he hase done when he came to this varname. $_POST[f-art-nlid]; burn baby :D *boom* xD -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-19 Thread Barry
Stut wrote: Matt Todd wrote: But of course, that is just conjecture. I'm just saying that I think he has vested interest and will be least of all willing to make the shift in thought (even if he did think it held some merit). I didn't read that article too closely, but I would appreciate

[PHP] Re: programming contests as a way of finding/evaluating offshore talent...

2006-04-19 Thread Barry
bruce wrote: hi.. i'm looking for opinions on the worth of programming contests as a way of judging the talent of potential software developers... any thoughts/pros/cons would be appreciated.. and yeah.. i know this is a little off topic.. but some of us here deal with these issues.. if you

  1   2   3   4   >