Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

17 October 2007


Total 40 pages. You are browsing page 1/40.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Wed Oct 17 00:00:13 2007
--- Day changed Wed Oct 17 2007
00:00 <****> Can someone please take a look at this code and tell me what's wrong? http://pastebin.ca/739133
00:00 <****> is that to me Mr tomh-?
00:00 <****> no
00:00 <****> im lookin up php.net and see examples such as $arrayname['aaa']['bbb'] which i assume is something like what id want but im not so sure how id insert the values into the different parts when inside the loop
00:02 <****> tomh-: Catalyst and Jifty and other frameworks let you describe your data and *they* will create your tables for you (among other things)
00:02 <****> apropo: I;am not sure exactly what you're trying to do, but one of those streams isnt' considered a valid one by php
00:02 <****> tomh-: you actually never need to touch the rdbms unless you really really want to
00:02 <****> Can someone please take a look at this code and tell me what is wrong with it?
00:02 <****> http://pastebin.ca/739133
00:02 <****> perljam, you can do that too in RoR, its actually the prefered way to do that
00:03 <****> oi Murdoc, post once :P
00:03 <****> i can see why i was told to do so
00:03 <****> tomh-: not the last time I used RoR
00:03 <****> this php stuff aint easy, its heavy on the brain
00:03 <****> perljam, a really strong part which is now copied by other frameworks are db migrations
00:03 <****> you can make seperate migration files to alter tables and stuff
00:04 <****> and use it like db source control
00:04 <****> can someone please take a look at my code and tell me what's wrong? http://pastebin.ca/739133
00:04 <****> 3 strikes n ur outta here :P
00:04 <****> I thought that was #4
00:04 <****> i cant count :(
00:05 <****> no wonder this php is so hard 2 me
00:05 * Kermist bang head on desk to help the stress
00:05 <****> Kermist: sorry... but I just feel like I'm completely being ignored =/
00:05 <****> Murdoc: is er02 a constant ;P
00:06 <****> Sarup: thank you
00:06 * AlReece45 tries to go in order :-/
00:06 <****> know the feeling
00:06 <****> :(
00:07 <****> its stressful stuff this
00:07 <****> nowhere else 2 turn
00:07 <****> Kermiist: what do you mean by open relay?
00:07 <****> i got told that my E-mail Form, Kermist: any time you have an open-ended 'to', 'from', and 'message', you've got yourself a relay
00:08 <****> Kermist: the only problem i was noticing was that someone could use your mail script to send any email they want to
00:08 <****> lack of knowlede + experience , but am glad he told me
00:08 <****> from isn't relevant
00:08 <****> Murdoc: also if $conf_s['errormsg'] isn't a valid file (for all I know the syntax there might be incorrect... its just I don't use it that often) then that would cause a fatal error.
00:08 <****> Kermist: so you've allowed anyone to use you to send mail. How do you want to change it?
00:08 <****> how do i test an e-mail form for this thing ?
00:09 <****> Murdoc: the same thing if conf_system.php doesn't exist... so its better to know what's in contrast to what its suppposed to be doing
00:09 <****> erm... ill show u 2 things now
00:09 <****> Kermist: I mean, someone could put thousands of email addresses in the to field and spam them, yes? Is this what you're trying to prevent?
00:10 * Murdoc is still wondering what the solution to problem http://pastebin.ca/739133 maybe
00:10 <****> PerlJam: don't let the users specify who the email can come from...
00:10 <****> my form - http://paste.css-standards.org/26774 the process part - http://paste.css-standards.org/26775
00:10 <****> i think thats wat he means PerlJam
00:10 * AlReece45 bangs his head on the wall
00:11 <****> try the desk its closer
00:11 <****> Kermist: not right now... I'm downstairs, the desk is upstairs ;P
00:11 <****> AlReece45: ... and they can still send out thousands of email
00:11 <****> wall will have 2 do
00:11 <****> ping
00:11 <****> dont use brick wall though i tried that once
00:12 <****> Kermist: so, again, what are you trying to achieve?
00:12 <****> normal house wall is ok, but not the hard brick ones
00:12 <****> make it secure i guess PerlJam
00:12 <****> define "secure"
00:12 <****> really lacking in knowledge here
00:12 <****> people cant spam with the form :)
00:12 <****> unless there is more i need 2 cover ? :S
00:12 <****> i beg of thou knowledgey
00:12 <****> :D
00:12 <****> Kermist: so, you want to limit the number of people that can be send email at once?
00:12 <****> Kermist: one safeguard would proably be to limit the amount each ip and session can send
00:13 <****> s/send/sent/
00:13 <****> Kermist: second measure would be to add captcha (I think that's the name) so it can't be automated
00:13 <****> oh god
00:13 <****> :S this is worrying already
00:13 <****> Kermist: sorry, I'm not one for answering questions as much as encouraging people to think for themselves :)
00:13 <****> AlReece45: only if it's good captcha
00:14 <****> erm am kinda lost for words :S
00:14 <****> AlReece45: Randal Schwartz had a column in Web Techniques (I think) a few years ago about how to automate captcha using perl :)
00:14 <****> 1 email per submit :)
00:14 <****> Kermist: of course ;P
00:14 <****> the to field is behind the scnes , but i guess people can input it
00:15 <****> Kermist: so, make that happen.
00:15 <****> if only that was so simple for me
00:15 * Kermist wants 2 have a cry
00:15 <****> AlReece45: er02 is a defined constant in a file called "errormsg.php" which is defined in {$conf_s['errormsg']}
00:15 <****> Hello. I have the values $year='1983'; $month='Sep'; and $day='22'; I want to format this into a date string. Does anyone know how this is done
00:15 * AlReece45 wonders if Murdoc read above yet... way above ;P
00:16 <****> Kermist: When it comes to security, assume that the Black Hats know everything you know and will exploit whatever they can.
00:16 <****> Murdoc: do you have the problem yet though, like an error message?
00:16 <****> if they know what i know, am safe :D
00:16 <****> loool
00:16 <****> todd-: you might want to use strtotime()
00:16 <****> no security risk,
00:16 <****> i have only learnt the VERYYY basics of php
00:16 <****> focusing on css , but this form drags my attention to php
00:16 <****> once css is more clear 2 me i will dive into php
00:17 <****> todd-: $gmt = strtotime("$month $day, $year"); $date_string = strftime('%Y-%m-%d', $gmt); # you can do the same thing with date() or other methods.
00:17 <****> thanks
00:17 <****> Kermist: split the $to field on commas and then just take the first item in the array
00:18 <****> AlReece45: I have conf_system.php which is just 1 directory above this script
00:18 <****> but it's saying unexpected T_REQUIRE error
00:18 <****> what do i use if i want to take a string, and take the first two charactes, the 4&5 charactersa and the 7-10th characters out of it?
00:18 <****> $to = "email@address.com";
00:18 <****> any facebook whores here?


Total 40 pages. You are browsing page 1/40.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo