12 Oct
By: Greg
php.net/umask
again, depends on spec. BM spec’d won’t hit as hard, but the pet will tear your ass open
that’s true, but you’re also not in outlands yet. the difference in gear is big.
true
outland greens will replace T2 epics in a lot of cases.
I was so close - my two friends were lower than me - then the damned Micheal Vick case came up and ate my life. Now they’re all 10 lvls over me
well, on the bright side, hunters level faster than most characters
i really must umask it? hm…
tml?
does eregi modify $string? is a $regs is returned
to give you an idea of the difference, this is one of the hunters i normally roll with when i’m just out looking for trouble: http://www.wowarmory.com/character-sheet.xml?r=Gurubashi&n=Zoobert notice the difference between what you have for ranged and melee attack power, and what he’s got
hi. how can I add the contents of one array to another? say $a = array(1,2,3) and $b = array(4,5,6) and I want $c to contain the data from both, array(1,2,3,4,5,6). Is there a function for this or do I need to iterate through each of them?
Well yeah - I just respecced for BM
php.net/array
TML, ahh if I had it set to 0 it woult not echo
mkdir(’mydir’,umask(0666))? this won’t work, umask converts 0666 into 12 and the file get a “12″ permission. or how did should this work? -did
No, you need to set the umask for the process before you call mkdir
sure, but I can’t find anything there. I’ve browsed through a few times. If you know, perhaps you may be able to tell? bsure, but I can’t find anything there. I’ve browsed through a few times. If you know, perhaps you may be able to tell?/b
this optional parameter doesn’t work in mkdir function? hm, strange. okay, i will try it, thank you very much
look at array_merge
RoyK, why restate what is already in the manual?
It’s right there
php.net/array-merge The optional parameter works just fine
array_merge . Merge one or more arrays Maybe you should look a few more times
But, like everything else dealing with permissions, it’s going to apply the active umask first
because I didn’t find it, dummy thanks a lot
LOL
okay, but i do not see a sense, when it use the “first” umask isntead of the parameters one
you’re going to calm down, or find a new place to be.
Look who’s calling who the dummy
make a choice
“the parameters one” what?
I’m quite calm, thanks
hello, how can I iterate over an associative array?
php.net/foreach
but that assigns a value.
good choice.
i mean mkdir(’mydir’,THIS); // umask(0666); and thann mkdir(’mydir’);? does not work as i hoped
I don’t want it to assign a value..
That’s because you don’t understand umask
maybe
What do you mean “assigns a value”?
” On each loop, the value of the current element is assigned to $value and the internal array pointer is advanced by one”
I’m having some issues with returning error values from mysql_query(). Is there any reason why, besides permissions, that mysql_query() would return FALSE when an error doesn’t take place?
Right. That’s called “iteration”.
no
Yes
I want to iterate over each value in the array and be able to use that element
http://php.net/foreach might be what you’re after
I don’t understand…that’s exactly what foreach does.
but i’m looking at that right now let’s say I had an associative array… and I want to get the value of each element.. how do I do this?
$value) { … }
foreach($array as $value) { … }
foreach?
that’s pretty clear in the manual
so let’s say that I wanted to “echo” the values of an array $temp how would I do this?
foreach($temp as $value) { echo $value; }
the manual has examples of doing all this
what else is new
not really
Really
it’s confusing
yeah it does
for you, maybe. but not for me thanks, tml seems to work
Right under the sentence “You may have noticed that the following are functionally identical:” Is pretty much the exact same code I just gave you
i do not understand how this should work. can you explain it in a few words?
I thought that “$value” would override the value of each element
Is the confusion because you’re looping through an associative array?
thats what you get for being so helpful
the wording is confusing
http://en.wikipedia.org/wiki/Umask
usually, when someone says A becomes equal to B, they don’t say B … etcetc… A
practice makes perfect. study the examples, run up your own tests and play about till you understand the concept.
“the value of the current element is assigned to $value” doesn’t make sense to you?
it does now
o.O
I’m getting this error : syntax error, unexpected ‘}’ in /home/ksarap/public_html/leiding/home.php on line 1
but it would be better if it said “$value is set to the value of the current element” ubut it would be better if it said “$value is set to the value of the current element”/u
You have a ‘}’ where you shouldn’t have. Specifically, on line 1 of /home/ksarap/public_html/leiding/home.php
Yeah look at the pastebin
that pastebin is not what is currently in /home/ksarap/public_html/leiding/home.php
PHP_SELF is evil, etc/ramblings of old man/etc.
why do I get the paired structures dialog when I type “}”?
..drives me up the wall..
i am such an idiot…
incloded file
Probably a better question for #eclipse
i used it in an if/else and wrote the else-part into the if-part…
TML it is
good point! exit
No, it really isn’t.
I’ll check on the site But It SHOULD BE
/home/ksarap/public_html/leiding/home.php has a } on line 1 PHP more or less cannot be wrong about
Yeah, and on my local webserv it works
s/$/ that/
So there must be something wrong with the ftp transfer nope Uploaded doesnt has a } on line 1
I’m guessing that something is wrong with your code
Arg
(or someone else modified it)
it is working now Upload is bugged
Hey Wolfpaws, I’m getting that depressed feeling again
you probably uploaded it as a binary file or some equally silly PEBKAC error
really? see my picture http://img208.imageshack.us/img208/518/s30100722cb9.jpg
$object-{$var} can work, say if $var=’moo’ you can exec $object-moo that way?
haha
what the O_O
InuZ i’m sure the depressed feeling will go out
I’m not sure I understood the question, but try this: php -r ‘class a { function c() { var_dump($this); }} $a = new a(); $b = “c”; $a-{”c”}();’
I think that “WTF” feeling kicked in…
Whats wrong with this? $HTTP_POST_VARS[’city’] = preg_replace( “,” , “” , $HTTP_POST_VARS[’address’]);
Yea…
mmk
everything. That’s not a regular expression.
Well, for starters, you’re using $HTTP_POST_VARS Secondly, you should be using str_replace() instead of preg_replace() Thirdly, if you’re going to use preg_replace(), you have to create a valid regex. Lastly, you’re taking ‘address’ and putting it in ‘city’
does appear to work
I know it works, I just don’t know if it’s even related to the question you were attempting to ask $a-{$b}(); works as well, but again — no idea how, or even WHETHER, that answers your question
I cant use http_post_vars in a preg_replace?
you’re not supposed to use HTTP_POST_VARS anymore
http_post_vars are old, and going to be removed.
use $_POST[’varnamehere’] or $_GET[’varnamehere’];
yeah, I was going to write a cron class, and I wanted to be able to call $this-{$function}(); so I could load all the cron tasks into a list and run them that way?
hello guys i have some questions pleas try to help
Ask away ^^
since you asked so nicely i refuse
can i add activex to our forum
you want to add an activex controller for a forum ?
its vbulletin yes
so $_POST = str_replace(”,” , “” , $_POST); is OK ?
No. $_POST is an array.
i should be abl
well… technically, you can add an activex controller to anything.. so i dont know what you mean exactly
ok nice
think of a better way of doing that?
I want to output a string to a file and send it to the browser as a download, can anyone point me in the right direction?
Try: foreach($_POST as $k=$v) { $_POST[$k] = str_replace(’,', ”, $v); }
I also want to display a separate html page
do you want me to explain more
Yes. php.net/call-user-func php.net/header
im just not sure if i’m understanding what you want to know.
str_replace says it takes an array as the $subject, but i’ll try it your way TML - thanks!
that’s in the same scary category as create_function
ok , well , in our forum , thier is allot of member that uses doubel accounts , or break the rulez
no, not really
gotchya thanks
and we ban them and they come back
Good point, I had forgotten about that. Check that it maintains key association…if so, your method was fine.
it’s just underneath it on the list
oh, gotcha
Why is that category “scary”?
Your point being?
well, activex will only work for IE if i’m not mistaken
create_function() scares me no end
we tried diffrent things like more plugin for vb forum
There’s an addon that purports to give Moz activex support, but I wouldn’t rely on it for anything serious
activex will work only in windows enviroment
Why?
IF it scares *YOU* doesn’t mean it’s scary.
it seems really weird..
i know.
Seems pretty natural to me..but then, I write Lisp…
on windows environment running IE
TML:
if someone were to use a different browser such as FF or any of the other major browser releases, it wont work
ahh
var funcname = function() { … }
so what should we do to like ban users for ever ? pleas try to help me , as we dont know what to do anymore
Shut down the web site?
can we use java
What is so bad with funcyion_create? *function_create
create_function
Gah
it just seems strange to create functions mid cycle
Why?
Hi room .. just have to complete a work in next few hours .. I need to validate a user based on two numbers .. one is its ID provided by company and another is unique key for that number (UNIQUE) so that no body can guess the combination or can crack it .. any idea is welcome .. i have read the www.php.net/md5 but dosn’t looks my cup of tea.. I need fixed length validation number against the… …ID …
It allows you to write a higher level of abstraction. Instead of writing a function to do something, you write code that generates a function to do that thing.
btw, thanks a lot … now I’m screwing around with the facebook app instead of working
LOL
any segustions guys?
Well, for starters, md5 — while unique — isn’t particularly hard to guess.
abstraction.. as in scribbling wildly on walls in a hope later on in the world some diggers think you’re awesome?
but if i give hash/md5 of that ID it can be guesed by good programers ..
There’s really not anything fool-proof that you can do
cant i use java ? like a small java script to get mac addres ? so i can ban mac-address ?
md5 = weak
is there anyone who know fckeditor best ? pls pm me
sha1 = bit less weak
that way , ban members cant never login agian , right
o_O
gfather, uhh have little java applet to get their webcam, snap a picture and auth them from there
and how come this serial number be of fixed length not more then 12-13 digits
There is *NO* absolute way to lock people out.
,. really guys , can i do it
no
whats the bet solution
There is no “best” solution… There are few, but none is the “right” or “proper” one.
ok , what is the most strict solution
if ($var); foreach $var as $row):
Require all your users to have an RFID chip implanted under their skin in order to login
i meant
TML:
It’s not valid. You’re missing an open paren.
no , really guys
this is some existing code im lookin at that;’s using : instead of {
yeally, guy
php.net/if
we have about 2000 members every month
s/yeally/really
and we need to controle it
just get a valid email address everytime someone creates an account, save their IP and hostmask, and use a grapical validation during sign up not a whole lot else you can do.
Require that they pass a credit check with a third-party such as TRW in order to get an account.
php.net/if doesnt say anything about doing: if ($foo):
Yes it does read more carefully
cant i use a java scrit to get mac- adress?
i searched through it for ‘colon’ and ‘:’ dunno h ow i missed it
gfather, no
read the entire section
why ?
i have @10,000 on my site and it’s been up for ~6 months
that’d be a java question anyway. not a php5 one.
gfather, stop writing exploits
doesn’t turn up anything either
because you can’t do that with JS?
read the entire section No, you cannot read the MAC with JavaScript.
um ok, so TML..
ok , can i use something that will download on the member pc , and if i ban him , he cant get in anymore?
ok it’s under the ‘alternate syntax’ section which is a different page, hence why my searches didnt work
You could make the site invite-only.
ok, so Agamemnus
if I use foreach..
canb ayone tell me why I have a ÿ on the top of my webpage? it’s only on one page
Yes, you can. But at that point, it’s no longer a PHP question.
Download how?
but i cannot find it in the html
have a what?
is it possible to get the index name (not value) of the element?
php.net/foreach
link?
It’s right there
sure it is
http://www.newbreedjesusfreaks.com/index-old.php
ok here is a good pictuer sorry , here is a good thought
You tell us the thought, we’ll tell you if it is good :3
can i use the forum logo , i put in it a small script that ban user can never get in agian
Tha isn’t a scope of PHP, gfather
There is not a PHP solution to this problem.
oh, the “key”.
+t
well its a php forum , so if i need to add anyting
There is not a php5 solution to this problem.
it should use php right
Um. Wrong.
Well, in the source you have the doctype decleration below some other html code. Check the source and validate the page using http://validator.w3.org/
ok guys , where i can find help?
*declaration
maybe im bothering you
On Google
well i searched google allot
I think if there was an easy way to ban people from websites permanently, we’d all be having a lot more fun. I get the same guy trolling one of my sites every other week. Depressive fellow really.
Yes. If everything else fails, use smilies.
ok another question.
And lots of them. Like a whole row!
it’s not possible to skip the “first” value, is it?
The only solutions I can think of require something outside the scope of the website itself. For example, RFID chips; RSA keyfobs; etc.
using “foreach”?
php.net/continue
no how do I start from the second value?
php.net/continue Checking if it’s the “first value” is left as an exercise for the reader
Mmmm… Logic 3
I’m not sure how “continue” will help
Wut is logic?
It will.
how do I start the foreach loop with the first value?
continue will allow you to skip the body of the loop
I know
foreach always starts with the first value
aaaaaargh how do I start the foreach loop with the *second* value?
You don’t.
fine!
You continue if it’s the first value
…. I don’t want to
Then don’t. But don’t complain about it.
so you’re saying there’s NO WAY to start with the second value?
Why don’t you just use a counter? Basic logic here.
There’s NO WAY to start with the second value
Maybe he could shift the array?
no
It would still be starting with the first value
$i = 0; foreach ( … ) { $i++; if ( $i == 1 ) continue; } skipping past the first, or whatever. b$i = 0; foreach ( … ) { $i++; if ( $i == 1 ) continue; } skipping past the first, or whatever./b
He’d just be changing which value was the first.
inefficient
I know. But he doesn’t want to use continue.
it would achieve the same effect, but shifting the array is inefficient
So use a counter?
shifting the array is trivial
Follow TML’s suggestion then.
it checks N times
Or unshift or, or whatever you fancy.
it might be trivial, but it is inefficient unshift, maybe.
You’re a crackpot
Indeed.
thank you
agreed
It would create so little overhead it is unimaginable. either solution
oh, shift() shifts it off? programatically, what does it do? sets the array pointer to the second element?
It removes the first array element, as documented in the manual.
php.net/array_shift
or does it physically move all the elements down by one? I know what it does in effect, but how does it do it? just changes the pointer?
Agamemnus, It re-numbers the entries after it shifts … 0=a,1=b,2=c becomes 0=b,1=c
oh. No, I don’t want to do that
Agamemnus, a is gone to limbo-land with the other unset vars.
I want to remove “0=a” from the array. which isn’t actually an array
unset($a[0]);
so it should be easier..
does the call to popen() return after the program has started or after the whole prog started&exited?
or just use a for loop
I see
arpad, Then a[0] =” doesn’t it?
thanks
no, then it just doesn’t exist anymore
no, it’s null
Ah, cool.
no that sets it to an empty string
I think he meant ==, when using unset on an array key. But maybe I be wrong. (ie, what’s the value of the key afterward. anywhoo)
arpad, I was talking about after the unset.. I thought 0=’a, 1=’b',2=’c’ would end up 0=”, 1=’b',2=’c’
oh right, no, it actually removes the element
OK.. TY. Is there a good tutorial on passing vars between chunks of php in different files? bIs there a good tutorial on passing vars between chunks of php in different files?/b
files have no scope of their own, so that would be a pretty short tutorial
Well… ‘http://192.168.0.1/test.php?input_file=foo‘ is getting me nowhere trying to test this.
keys can’t have spaces?
sure they can
Does IIS need to be restarted in order to make php.ini changes take effect?
with no special formatting or anything?
aren’t you quoting them?
no not really they’re from the name field inside a form so no.
i.e. http://www.example.com/path1/path2/file.html into www.example.com, path1, path2, file.html
well do, and set error_reporting to E_ALL and display_errors on so you see the errors you’re evidently missing
but I guess it’s that name can’t have spaces
level9wiz, Check out explode();
what is the syntax for that again? error_reporting(’E_ALL)?
!tell Agamemnus about error reporting
ideally set them in your php.ini
yeah i think it’s the name field
Is there a function to format text for use in a url? to url encode text? I want to create myurl.com?message=an interesting message
Igloo`
o.O
solifugus there’s stuff like http://www.php.net/manual/en/function.htmlspecialchars.php that i havent used much yet, might be what you want or lead you to what you want or http://php.net/urlencode
Igloo` long time no see
that looks like what i am looking for.. urlencode, likely… thanks..
cool
rofl
im such a copy cat Igloo` xD
?
look at nick
Those with ` or _ in the nick is shown to have lower IQ
lool
:p Igloo` u have so low iq xD
Wolfpaws, Don’t forget the []’s.
oh, I’ve forgot to add [/] !+u
Surely you mean ‘you’, not ‘u’? The letter ‘u’ is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
o right lol
happy now Bleeptech and Wolfpaws? :p
No.
MassiveKill, Nope.. I’m still broke.. Wanna send me $?
where? o_O
Uranus?
o_O
Wolfpaws, Better be a butt-load of $ then.
How do I render a unicode character if I have it’s unicode integer value?
hehe XD
the nick Igloo is already registered
Igloo`: boohoo. Be original, then
nah ive been called igloo on the internet for about 2/3 years i did try CWatkins, Konnwat, Connell but they all don’t seen right to me i did try CWatkins, Konnwat, Connell but they all don’t seen right to me :’) And i tried Hopefull as a nick but that seems strange too
yes. Originatity is them awesome.
Is it even possible to output a unicode character in PHP4?
sure
I presume because php is server side it can’t do things like detect the users time zone? like javascript can
no, it can’t
indeed
You could always make javascript set a cookie and have php 5 read it though
monkeyBox, Wolfpaws Says “yes”.. I haven’t got that far yet, I’m still fighting w/ getting $_GET/$_POST to work..
huh?
For timezones you could detect roundabouts where they live by their IP
What is actually the problem?
that too
I simply need to store a character using it’s unicode integer value
htmlentities() should do the trick.
you’ll need to actualy have the unicode character and then to ord(’unicode character’) i think do you know the integer and you want to store the char in a variable you mean ?
Igloo`: yes like chr() but w/ unicode
$char = chr(number) hmm im not sure what you mean. You know the unicode integer so you can just use chr() right?
there’s a function in the comments that’s unicode compatible, apparently. chr is pure ASCII. So unfortauntely not
right, I understand that chr() is pure ascii, which is why I’m looking for a unicode version of it I’ll try that one in the comments, though
Someone may have a better solution, I’m afraid I don’t
if i remember on php.net there’s a section for unicode support on the left hand side menu
You maybe want this? http://us2.php.net/manual/en/function.mb-encode-numericentity.php Igloo`: Multi-byte strings, actually
Anybody got a decent example of $_GET$_POST? The one on w3schools doesn’t work for me…
Example.. like.. how? If someone submits a form, fields are populated in $_POST. things from the query string end up in $_GET
!+vars
You may have a register_globals issue. Read the following thoroughly: 1) php.net/variables.predefined 2) php.net/variables.external 3) http://www.snipe.net/content/php_stuff/globals.php
Bleeptech does print_r($_GET) not do anything ?
php bot to the rescue :3
is it okay to use $continue as a class attribute, whereas it will be called upon using $this-continue ? I know continue is a reserved keyword
ick, you have to supply a convmap.. I’d have no idea what to put in that variable
That should work fine, purefusion
ok, cool
I’ll stick w/ this for now: mb_convert_encoding(pack(”N”,$number), mb_internal_encoding(), ‘UCS-4BE’);
yup, i did that with the word “run” and it worked fine
sweet
im off :w
Igloo`, It returns “Array()’
You *can*, I don’t know that it means you *SHOUlD*
*SHOULD*
yeah, my keyboard is acting up probably that water I spilled on it
excuses, excuses
I need to convert a date from this format 2007-09-05 02:07:10 Date Asia Pacific12/25/2005 01:00PM oops
strtotime?
0 to this one 12/25/2005 i think I can do it with the date function, not sure
is there an easy way to communicate with a pop3 server via SSL using php? a nice easy class would be lovely
when I use POST to send data, everything is all weirdly formatted ” ” becomes “_”, “‘” becomes “\’”…
the latter is magic quotes, the former is because $_POST doesn’t like spaces in form name fields/etc.
OK.. I got $_GET to work via the url…
keep your form field names nice and simple :3
:*(
turn magic_quotes_gpc off in php.ini
TML, are you saying I shouldn’t? Are there any possible repercussions?
http://uk3.php.net/manual/en/security.magicquotes.disabling.php for details
ok?” it means that you shouldn’t do it because the next guy to come along may go “WTF?!”
how do i convert a 24 hour time into a 12 hour one with the date function?
so… if in doubt, don’t…
convert it to a timestamp with strtotime then format it differently using date, maybe?
i know that much just not sure how to format it date(’Y/m/d H:i:s’) or osmething but how do i get the time to be 12 hour with am/pm ?
date will tell you :3 ie on php.net/date g: 12-hour format of an hour without leading zeros a: Lowercase Ante meridiem and Post meridiem
are constants global by default or not?
Yar, CONSTANTS are global.
ah i see thanks
Sorry no idea why I typed that in caps I’m just mentally used to my constants being in caps
InuZ, thanks
when using POST, php ignores all the values that are “unchecked” in a checkbox how can I make php actually take those values and process them?
Are you sure that’s PHP and not the Web Browser?
idk if I uncheck all the values, $_POST is blank
I think you need to provide value to the input variables of the checkboxes for them to be sent to the PHP, it’s the result of the web browser processing and not PHP.
i see thx
np
for boxes that unchecked, no value will be sent at all. … but he’s gone.
PEAR has an advanced checkbox that reports its state via $_POST checked or not.
He’s gone :3
uses javascript and hidden element k
Like, gone gone.
OK.. What the frog am I doing wrong? $input_file = $_GET[”input_file”]; exec(”/usr/local/bin/foo $input_file”, $var);
he could just have used isset() on it anyway.
I filter out the join/leaves thanks
IRC client thing? I wish I could do that nicely for certain channels.
Regardless of what you are doing wrong, I really don’t think you wanna do what you attempting to do..
sure. ChatZilla
I love you.
I’m sick o fhis confrontational, hit-and-run questions. s/ f/f /
Shotygun, I don’t want to read the output of foo? Just trying to get it to run.. foo will be moved to scripts dir later.
Using user input that way is kinda dangerous, to be honest.
InuZ, Wot worried about security at the moment.. I just want it to %$%$#%!@@!!! run
“?input_file=/dev/null;rm -rf /”
Ah Mean while, I realize I need to update to PHP 5.2.4. I am definitely slow
InuZ, I’ll move the script, run httpd chroot and move this to $_GET AFTER I get it to work this way.
I just moved to 5.2.0 onmy staging machines — from 4.4.7. You’re not THAT slow.
Ooo :3
guys, I have a nested associative array, and I want to get the first key pairs from the inner array. What type of loop would be best for this do you think?
I only moved last month too =D
I’m just trying to understand how it’s supposed to work right now.
My server still runs 4.4.4
Wolfpaws: My prod servers do, but I’m staging a complete debian upgrade right now
nice
I am using foreach at the moment, and it works fine for the most part, except for one small bit. How could I retrieve only the first key/pair from the array?
Are you upgrading to testing?
Seems I’m not upgrading today. Alas.
is there a non regex way to test if a character is in a string?
strpos
ahh returns none if it’s not in there?
returns false example in the docs at php.net/strpos
cheers
$set = foreach($foo as $bar) { if(isset($somevar)) continue; $somevar = $bar; } or just break0; s/0//
TML, thank you, but I don’t want to match a value, I want to take the *first* key/pair from the array
How do I force a browser to use a certain encoding?
http://www.w3.org/TR/html4/charset.html#h-5.2.2
can you iterate through a string withforeach?
Isn’t setTime supposed to add or subtract ms, rather than set a specific time in ms?
Who suggested you match a value?
That’s for you, monkeyBox
s/withforeach/with foreach
I suggested that you break out of the loop as soon as you have grabbed the thing you’re seeking
when i use setTime(0) for example it sets the time to the unix start time of 1970 or something
What do you mean? You can explode() the string into an array and use a foreach, or you can just use for() and use substr()
oops wrong channel haha
righto, that’s what i was getting at cheers
I didn’t know there was a setTime() in PHP Oh, you said wrong channel already lol
is there a function to check if a specific mysql row exists?
Yes, http://php.net/mysql_query
easy question of the day hehe
The Best Tomcat Web Hosting Solution
I am having real difficulty finding a tutorial that will explain this to me. All the articles about associative arrays only mention foreach loops, but I think I need a for loop to get the first set of values out
by row #…?
i dont follow
Well, that depends on your schema. But generally, tables will have a primary key which is useful for locating a row.
mysql_data_seek goes off an internal row id doesn’t it?
rza, I need only the first key/value pair set out of an associative array, but pair that the foreach loop would return
i want to be able to check for existance of a specific row before seeking to it
mysql_data_seek keeps a pointer for a result set. That is, a set of rows that matched a query.
next ?
It can’t tell you if a row exists in a table without you providing, y’know, query criteria.
rza, I am sorry, I don’t follow you
alrighty, that makes sense.
rza, please explain
“something” ); reset( $array ); $key = key( $array ); $value = current( $array );
well, my problem is that i’m using mysql_data_seek in a while loop, and mysql_data_seek starts throwing an error once the pointer reaches the end of the result set but since it’s part of a while loop, it keeps on running for a while
rza, let me explain a bit more. I have two nested associative array. I have managed to iterate through to the correct key/value pair in the outer array. now I need to take the *first* key/value pair out of the sub-array related to the rist key/value pair rza, let me explain a bit more. I have two nested associative array. I have managed to iterate through to the correct key/value pair in the outer array, using a foreach loop. now I need to take the *first* key/value pair out of the sub-array related to the rist key/value pair */rist/first
which is weird, because mysql_data_seek is conditional on if the array is available, the same array that is specified in the while loop if ($itemarray1) { mysql_data_seek($itemarray1,$zero); } so, how do i prevent mysql_data_seek from attempting to happen once it reaches the end of the result set?
how do i get the current date and time? is it localtime() ? and i don’t mean the unix time format
Hi could you guys help me with gd? the library
if you ask the question, maybe
ok
I’
I just wanted to make sure this was the right place
I’m so stumped right now
I am trying to make a grid for($i = 0; $i $width; $i++ ) { // for()s to create random positioned lines… imageline($handle, $i++, 0, $i++, $height, $noise_color); //creates line } this is what I’ve got so far
I’m curious, why are you using mysql_data_seek in the first place, as opposed to mysql_fetch_assoc?
http://gargantua.servehttp.com/math/rotator.php
i dont completely follow you got two dimensional array ?
array (..
For some reason php isnt getting parsed on only one section of my page. It is contained with an index.php so it shuldnt be a handler issue, it is coming from mysql dB. I have stripped it down entirely to just echo “test”; … thoughts?
rza yes, 2d associative array
ok this is driving me crazy
$number is never set!
you can access the first element directly via current( $array[’yourkey’] );
Wolfpaws, I want atleast half a cm between the lines.
rza, but I do not want to specify the key name, I need to just take the first key/value pair, and use the value
anyidea how I can fix this?
you want the first item from the first sub array?
Why might data from my mysql field not get parsed?
rza, no, I have iterated through the outer array using foreach. Now that I have the correct row, I need the first key/value from the sub array
It’s completely skipping ofer the php echo “test”; ?
what specifies “correct row” ?
over*
certain key?
rza, yes
what is this “associative array” thing that you speak of?
An array with string keys. In this case, the names of the columns of a row.
3 ) ); reset( $array[”foo”] ); var_dump( current( $array[”foo”] ) );
returns 1 key( $array[”foo”] ); would return “a”
rza, that is getting close, but I need to return the value 1
well, i needed to dynamically move the data point forward
current returns the value 1
how can i test, if a string ist the last “text/thing” in another string? sttripos()? and than?
rza, not “a”?
key returns “a” read what i said
for instance, if the result set contained 11 rows, i need to move the pointer 11 rows ahead.
strrpos or substr
Why do you want to move the pointer beyond the end of the result set?
i don’t want to, that’s what i’m trying to stop
If you loop over the results of mysql_fetch_assoc, it’ll automatically stop when it runs out of rows. Like the examples in the documentation show.
hmm but isn’t it supposed to stop when you run out of rows with mysql_fetch_array??
Yes, mysql_fetch_array behaves the same way.
i’ve always used mysql_fetch_array in while loops… but it’s not stopping.
Yes it is. But if you’re using mysql_fetch_array, you have no use for mysql_data_seek.
as long as you don’t manually nunge the pointer, mysql_fetch_array will stop when it’s supposed to
hmm
once you touch it yourself, though, all bets are off
dangit.
how can i flip a word? this subst() and strrpos story need this (or not!?)
heh
word = i mean string
not
read that first as “once you touch yourself all bets are off”
would ya’ll mind looking at my code and offering a solution, then?
$last_three_letters = substr( $string, -3 );
not? hm, i have atm no idea how i could check this no sorry, i am searching for following: .tar.gz, .zip, .foo (searching for filetypes) so i need the $filename ending with f.e. .tar.gz
do you have a fixed list of file extensions? for example in file.tar.gz the .gz is the extension
an array with .tar.gz, .zip, .tar, .bzip
php.net/strrpos
i have an idea see @rza
http://rareseeds.com/dev/dataseek.html
Don’t use mysql_data_seek
Just stop using it
how else do you suggest that i display only one item for each catalog? maybe you could say that there’s poor database design behind it, but i don’t want to have to manually maintain a “categories” table err, that should read “display only one item for each category”
If you’re having to selectively pick rows from a result set, your query needs fixing.
mysql_data_seek gains you nothing..it doesn’t solve the problem you’re trying to solve
if i want to add every line of a file to it’s own row in a database, what’s the best way to do it? implode it using the \n character then foreach through the loop? i have 3000 items in this one file…
[domon]: is this a one-time import?
Is the file a CSV, perchance?
hmm… you’re right, good point.
[domon]: php.net/function.file
well…it may happen again
[domon]: probably one query or breaking it down.
but not all the time
i’ve done foreach in the past, but i also see people doing it in one query.
okay
[domon]: LOAD DATA INFILE for mysql
uhhh…?
php is better at import
look up that command in the mysql manual
That depends on the data format. If it’s a format mysql can import itself, PHP will always be worse.
php is more flexible but mysql is far more efficient
ive seen it croak on excel csv’s
It was probably formatted poorly.
well it is just separated by newlines
There’s literally a dozen ways to format a CSV.
i’m not very experienced with queries… say there’s multiple rows with the same identical value in the column in question… how would i select only one of those rows?
LIMIT 1
Or select distinct. It depends on the query. Or group by.
hey! is there a way to get the database name pdo is using?
Or improve your where clause such that you don’t get repeating rows.
hmm… if select distinct does what it sounds like, that’s exactly what i need
okay…so…process with PHP (i figured that already) but using implode to put them together? or just stick them all in one string and separate by commas instead of newlines so that i can put them all into one query…
[domon]: php.net/function.file
TML i am lookin
oh
lawl
foreach(file($infile) as $row) { mysql_querey(”INSERT …”); }
yup what a breeze haha i was looking on the side didn’t realize that was actually the function for some reason…even though i typed it into the url bar by hand _ excuse my PEBKAC for right now…thx
“SELECT distinct FROM”?
Please stop what you are doing and go get a book on SQL.
heh wait
Seriously, you’re missing some pretty fundamental concepts
thanks guys…
!+sql
[SQL] Structured Query Language - the language for most DB Systems. See http://www.w3schools.com/ http://www.sqlcourse.com/ http://www.onlamp.com/pub/ct/19 and #mysql, #postgresql or #sql
!+sql
[SQL] Structured Query Language - the language for most DB Systems. See http://www.w3schools.com/sql/ http://www.sqlcourse.com/ http://www.onlamp.com/pub/ct/19 and #mysql, #postgresql or #sql
ok, that’s better.
works for anyone? !+sql
Just ops :3
no, only certain people there are some non-ops as well
I see..
Ah, my bad :3
See your private messages from php-bot
yeah
hi
time to head home. have a great weekend.
could anyone provide me pdo_mysql.so linux binary?
Compile your own
from php 5.2.3 I would like to, but I hate installing linux just to compile that one file…
It’s incredibly difficult for that to work unless they’re running the same system and shared libs as you VMware server is now free
ok How can I make sure it works? if I only know they are using debian x86 and php 5.2.3
so install that on your vm machine
I need help. For some reason variables are not being printed on one of my pages uI need help. For some reason variables are not being printed on one of my pages /u
any clues?
!_clues
moraes, me?
!+clues
One for $1, two for $5, three for $10, and our best value yet… Four for $20! While supplies last. Call now, operators are standing by! 1-900-CLUE4$
haha
!+yawn
i have a pdo object and want to get the database name he is using.
make[1]: *** [install-pear-installer] Trace/BPT trap *** [install-pear] Error 2
tried to look at its public properties and methods. just wanted to check that it is not possible.
happens in public function offsetSet( $index, $value ) { $this-attributes[$index] = $value; }
bye ;*
that property is set using __set(). it is not possible to set arrays that way.
ok ! what is the way in that case please ?
When it comes to classes and class inheritance, what should I be wary about when it comes to PHP 4/5 compatibility?
you can’t increment an array using __set(). create a method to do it.
If you created the PDO instance, don’t you have to already KNOW the name?
ok thanks
the case is that i’m dealing with hundreds of databases and their names are dynamic and changes depending on the model. i want the name for caching.
i need to also skip duplicate lines _
a chiild class can only access it’s parent public and protected stuff ?
yup.
hi, i’m using is_file on 4 files in a directory. All files have the same rights and the same content. is_file sees 2 as files, the other 2 as non-files.. what could cause this?
ok thanks the $attributes was private
oh.
[domon]: put a unique index on the row and let the database just toss out dupes
oooo database will do that automatically
and of course this makes no sense anyway. if i’m grabbing from cache, i don’t have a pdo object. duh. solved.
hehe erm…what do i put for the “key name” ? anything i want right? i think i got it…thx
george, liza, sigfried - any name ok. kidding.
just making sure i dont have to put something specific…lol
!tell Igloo` about pear damn. i don’t learn.
hello guys well i have a general question
good reason to come here
well im searching for a merchant network script and if anyone like have info on it help me pleas and i found this http://www.cusell.com/ and i read bad and good reviews on it , so i didnt know who to trust
How can I echo an include properly? Example: $somevar = “include(’file.html’)”; do i need echo $$somevar;?
just echo $somevar; like normal assignments.
any body have some ideas ?
Plus quoting it like that won’t work. You can’t quote functions and expect it to work. err.. that lacks descriptiveness. Sorry. My head is tired.
My problem is that i’m constructing the page like $source .=”The first bit”; $source .= “include(’file.html’)”; $source .=”the last bit”; and then echo $source;
quoted strings aren’t parsed for functions/etc except in rare cases where the code is evaled in some way (regex with the /e switch) yea, you really want to use file_get_contents
thanks for the tip about my query being bunk… all i needed was a simple “GROUP BY species” in my query. that’s it. no muss, no fuss, no unneeded 15 lines of PHP. uthanks for the tip about my query being bunk… all i needed was a simple “GROUP BY species” in my query. that’s it. no muss, no fuss, no unneeded 15 lines of PHP./u
hmm i get a parse error with the last line of the script…
curly brace you didn’t close? or here document?
hmm
None working
how are you doing it?
file() expects at most 2 parameters, 3 given in /var/www/vhosts/iptriple.com/httpdocs/API/admin/index.php on line 12
[domon]: so don’t give it three paremeters. pastebin if you’re stuck.
foreach(file($infile, ‘FILE_IGNORE_NEW_LINES’, ‘FILE_SKIP_EMPTY_LINES’) as $license) { blah }
[domon]: I’m thinking you don’t understand how flags work.
it’s asking for only 2 params… _
ANd you’re using three.
oh i get it. lawl
Flags don’t need quoted by the way.. but in all fairness, there’s no examples of how to use them
they go in an array?
[domon]: BEsides, the constants aren’t written in quotes
at least on php.net/file
and i pass that array as the seccond param?
php.net/define is a good example of constants’ usage
No, you would use it like file ( ‘filename’, FILE_USE_INCLUDE_PATH | FILE_SKIP_EMPTY_LINES ); … wait, is that right Wolfy? I suck at Flags it seems
Yep
ahh ok
maybe I doubt myself too much, heh.
rararara I should draw D:
tis workin
I’m okay with constants, just not a chain of them with the bitwise stuff.
$foo = “include(’file.html’)”; echo $foo;
Ew. I hope not.
Anyone know the right way?
dont put it in quotes for one
1) functions aren’t parsed in quoted strings. 2) you just want the contents, so you’d read the file with like file_get_contents.
any help on this guys , as if read that allot of scames is going on with these things
I tried without quotes it’s not working.
it will echo include(’file.html’)
no.. no no. nooo.
and use file_get_contents you can’t assign a variable to an include
if any one got any info pleas tell me , and i found another script called PayMeOnline
yes you can
you can, but the include file needs a return statement.
well
php.net/file. READ IT!
so it would need to have the php stuffs.
dont use include for this
Ding! correct answer =D
i meant a page XD
exactly. this is useful for configs.
why is php.net in friend for me again.. weird.
it is always in jap for me T_T
friend? err, french. strange brain I have. I set it to ENglish too.. odd.
$config = include ‘config.php’; = the file returns an array of configs
?
No. Dear god no.
har har har XD
So what is it
oh noes!
I think.. it’d be nice if you worked it out, to help the understanding of PHP as a language.
$foo = file_get_contents(’file.html’);
php.net/include
thanks moraes i will try that
http://www.collegehumor.com/video:1764770
[domon]: #phpc, plzkthxbaiwtfbbqrofl
lawl
moraes, no dice uet
Thanks for the poke
$foo .= file_get_contents(’file.html’); Should it still work?
Yes. but in what way is it not working?
yep. the path to the file is correct?
did you try it?
Please, RTFM.
moraes, path is correct - nothing getting included - hmm wonder what im doing wrong
s error_reporting set to E_ALL, and other happy stuff
it wont get included
Is error_reporting *
it sets the files contents to a string stored in the var $foo
I think that’s what he really wanted anyway, [domon]. just.. confused.
woot typo
I want to use a break.. but Cannot break/continue 1 level
Thanks a million moraes
np. have a nice weekend.
you too i’m done for today
make your life easier and have error_reporting set to E_ALL. and display_errors set to on. it’d have given an error saying the file wasn’t find, if both were on. helps developing, a lot. At least, I think it gives an error. Shit, now I don’t know.
*cough*
I’m getting some wierdness around building PHP for apache with an MPM. The distro is Gentoo. I built apache with mpm-worker. then built php. getting the “no save mpm installed”
does it make sense to pass $_POST to a function (my_func($_POST); … function my_func($var) { // deal with $var; }) or should i just do myfunc(); … function my_func() { $var = $_POST; }
Phew. I need to not doubt myself lol
you are musical person, no?
Vaguely. I do like music, and I do attempt to create it. So yes would be a safe answer :3
you compose here and there?
what steps can I take to check that apache does in fact have mpm-worker?
Kinda. but mostly I can just say I’m a really bad musical person :3
pm with links to samples?
? Then to use a inner loop to obtain the values of the $menu_item_url array?
no need ?
is_null, sorry, was that for me?
yes
is_null, could you please explain?
$menu_item_url will be an array if each value of $menu_items is multi dimensional (guessing on your question)
InuZ, I see - OK, let me contemplate that and come back to you. Thanks is_null, thanks
hay guys , if i want some guys to develop a script for me , how much should it cost
gfather, what is your budget?
depends on the script
well i dont know about the budget , im still thinking of it a script like paypal
foreach(file($infile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $license) { } Use of undefined constant FILE_IGNORE_NEW_LINES - assumed ‘FILE_IGNORE_NEW_LINES’ in /var/www/vhosts/iptriple.com/httpdocs/API/admin/index.php on line 21 get the same error for FILE_SKIP_EMPTY_LINES as well
what do you think guys it should cost ?
a script like paypal? that has most/all of paypal’s features? bare minimum $20,000 i’d say
your question makes no sense
Hello, I’m looking for a way to convert a string with characters that have accents to their ascii equivalent… say e with an accent you simply become e.. anyone please?
to hire a developer to make a program that does that
err, which version of PHP are you using?
dont expect to hire some cheap dev in another country to do it either they could rip you off/screw you over
no sense ? well its a script ,
i’ve heard that dev’s from brazil are brilliant
well it isn’t about just being brilliant
have you considered a basic array or lookup?
what i’m saying is this is a very touchy area… you would need to at the least have the dev sign an NDA
the transaction is being set by another company
and/or a non-compete agreement can someone explain why what i have doesn’t work?
becouse it will cost millions to get visa master card and banking terminal transactions
nvm
what do you have?
needed single quotes around it
IsmAvatar, I don’t see how this might help me…
but its only a scrip thats gonna connect to the transaction company
foreach(file($infile, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) as $license) { }
hi
$b) {echo $a;} ?
characters like e with the accent have their own ascii values. So you simply associate each character with their respective latin equivelent
yes…using the ternary operator
Wait, you needed single quotes around it? o_O
IsmAvatar, Well, they don’t have an ascii equivalent, they have a unicode equiv
yup…
maxagaz ternary operator
[domon]: can you tell me how ?
echo $results = ($a$b)? $a : ”;
thanks
That doesn’t sound right..
$b ? $a : ”;
it supposed to be nicer ?
in that case, i back down .
aee
[domon]: what version of PHP are you using?
portuguese?
o.O
Just English
it is more confusing at first but ternary op is very good for one line if/else statements php 4. something 4.4.5 or so maybe 4.4.7
[domon]: that explains the problem with those flags, I think.
alguem diz um site pra aprender php
lol
They are PHP5 iirc. some of them anyway.
!+english
##PHP is an English only channel. If you need support in some other language, please try elsewhere.
nao sei falar ingles caralho
[domon]: so, your flags won’t be working.
!+commands :-p
you’re sure they wont work? T_T
Yea, they were PHP5+
can i get mysql_num_rows on an insert? o.O
for file() and they would not need quoted
no, they are php 4 as well it looks like
google.com.br seja educado aqui.
gawd
nuh uh :3
FILE_BINARY only available since php 6 lawl
‘Prior to PHP 5.0.0 the flags parameter only covered include_path and was enabled with 1′ therefore, it used to be file (’filename’, 1 or 0 );
ohz damn so i will have to use something other than file?
Depends, what do you wanna do?
or i can just strip the newline char off i am storing this in a database
I think file will not have the newlines in the array anyway.
it needs to be returned from the DB when someone logs in and it sends this license to a client-side app
Oh.. yes it will. hm I’m gonna have to look at that
and i wanna skip empty lines that is easy tho if $license = ”; continue etc
well you can use $array = array_map ( ‘trim’, $array ); if you really wanna or just do trim through each foreach.
which is faster?
i’m really trying to back off on the language thing, but i will seriously mute the next person to use ‘lawl’
Uhhgh, dunno really.
caffinated:
hmmz…
so is there any way in the world to add an attribute onto a function in php, like myfunction-test = ‘abc’; or sometihng like that (such as can be done in python)
no, you can’t ass an attribute into a function. In class, yes, in function, no. Unless it’s global
OK.. I may get muted, but I ahve to ask.. WTH is ‘lawl’? ‘Lost Arse While Laughing’?
Wolfy[drawing]: ok how about in a class, can I add an attribute onto a method? how?
it’s a sarcastic version of ‘lol’
so it would be str_replace right?
“ass”? Damn; Something is seriously wrong with me today
not if you just wanna remove a newline from the end of a string
it’s easier than that?
in fact, it’d just be rtime($string);
Just $object-method = “blah”;
caffinated, Ah..Thank you.
err, maybe. you could just read it with file_get_contents then use explode
2); How do I add all these values, which should return: 15?
array_sum()
Wolfy[drawing]: oh but I can’t do $object-method-isValidrightnow = true and then call $object-method() later
Anyone here know how to make PHP listen on a socket and when it’s already got a connection, refuse (not queue) additional connections until that socket disconnects?
nope. In that case $oblect-method must be a n object
a method can access attributes in the same object. use that.
It’s official; My brain died
the keyword ‘$this’ allows you to reference the current object
Wolfy[drawing]: right.. I’ll poke around but man I hate php.. i’m often sad I have to use it
then don’t. be elsewhere, use a different language, have a family, whatever. but don’t come here to whine about it. we’re tired of hearing it. nobody forces you to code in php.
rtconner, I’m sure php is sad I’m abusing it..
i can’t use mysql_num_rows on an INSERT?
Maybe it likes it when you play dirty? :3
lo
lol, practical business forces me to use php.. since it far and away so widely used.
hola
not our problem, really.
[domon]: no. BEcause in that case mysql_query returns True/false and not resource
hm…there is another function to see how many rows were inserted wasn’t there?
[domon]: maybe you’re after php.net/mysql_affected_rows
[domon]: However; you *can* use mysql_affected_rows
yep that’s the one
num_rows is when you do a select that’s right
You got it o/
Anyone here know how to make PHP listen on a socket and when it’s already got a connection, refuse (not queue) additional connections until that socket disconnects? setting the backlog to 0 doesnt work
mysql_affected_rows(): supplied argument is not a valid MySQL-Link resource in /var/www/vhosts/iptriple.com/httpdocs/API/admin/index.php on line 29 $result = mysql_query($query); $amount = mysql_affected_rows($result) + $amount; =|
Uh… No
guessing your query is fail?
it ran
and inserted 3179 rows
got it
[domon]: please read the manuals for mysql_affected_rows
Wolfy[drawing]: i am..
!+func mysql_affected_rows
int mysql_affected_rows([int link_identifier]): Gets number of affected rows in previous MySQL operation
Yea, I just realized what happened there. *slaps forehead and anime falls*
i just said i got it lol
Call to undefined function mysql_pconnect()” in my apache error.log 2) , the –info says ‘–with-mysql=shared,/usr’ I created a file /etc/php.d/mysql.ini into which I wrote: extension=mysql.so and then apachectl graceful’d but I still get the error any ideas? 3 EDT 2007 x86_64 x86_64 x86_64
do you have a phpinfo() online? you can check that to see if the mysql extension is actually loaded its centos im guessing
http://services.elgato.com/scores/scores.php (that’s my phpinfo for now)
question…mysql_affected_rows returns a negative number when nothing is added…in fact it returns the last number with a negative in front of it… shouldn’t it return 0? (if no rows are affected)
mysql extension is disabled look at your configure line ‘–without-mysql’
ah, right mysqli then?
Is mysql.so in the extension dir?
locate mysql.so didn’t locate anything where’s the extension dir?
do you have root?
So it’s not there. Install it
yes
i would just install it
/usr/lib64/php/modules/ only has ldap.so sigh
not sure 100% on centos but i think i remember doing yum install php-mysql then just editing php.ini to load the extension
hm http://www.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5
that doesnt have anything to do with you
What about it?
your install is specifically disabling it not going twith a default action
but http://php.net/mysql says “PHP 5+ MySQL is not enabled by default, nor is the MySQL library bundled with PHP.”
no, not really. It is there, but shared.
also, it just says –without-mysql, but not –without-mysqli
Wolfy[drawing]: his phpinfo() says its disabled mysqli doesnt appear to be present either
i guess no one knows?
according to your phpinfo()
2) , the –info says ‘–with-mysql=shared,/usr’
hi
well then hes got conflicting php.ini id guess
could someone check this http://pastecode.net/?action=viewpost&tag=2089
hes got 2 different sets of configurations for cli and httpd most likely
wolfy, I overlooked the –without-mysql tho
anyways its a install issue you should reinstall it and choose exactly what you want
This is installed from packages?
I don’t know; I didn’t install this system
Then ask the one who did
yeah
ok, will do thanks, all
no problem
It seems that is installed from packages. If so, just install php[5]-mysql and you’re fine
Any clue about my problem ? (http://pastecode.net/?action=viewpost&tag=2089)
whats your query
missing destination file operand after `php[5]-mysql’
the brackets are a suggestion php-mysql or php5-mysql
“SELECT title, im_id FROM site_gallery WHERE mem_id=”. $_SESSION[’memid’] .”"
still wants a destination file operand after php5-mysql
a what?
prgmrchris, so the array starts at 1, because my $count var starts at 1 in my loop prgmrchris, so when I echo $screen_list[1] i get the list, but $screen_list[2] is empty, as if the mysql_fetch_array() didn’t get anything from $retour
can someone help me with JpGraph please? I just simply need to make a grid and make a point in a given x and y axis. if anyone could help, it would be highly appericated.
Never used it sorry
:’(
G-man: You can try the JPGraph support. That’s why it’s there.
the irc channel? there’s an
G-man: What does their site say?
nothing about an irc channel.
how to ereg_replace all contiguous spaces by once space ?
use preg_replace, it sucks less
in a string but my string contains multi-byte chars…
I’m fairly sure preg_replace is compatible with it
ok, thanks
Maybe it isn’t. Hum, I’ll check. but perl’s are, si I figure that’d be the same for PCRE. there’s the /u switch for UTF-8 But interestingly, I never thought much about multi byte characters. I sorta take for granted perl handled it fairly well if I remember.
it works… I hope I won’t have bad surprise with it
Hello, guys im workin on a web of a awards ceremony i need to send mails notifying online registratios, ive been tagged as spam, is there a work around? hello?
yes and.. no. It’s not usually so much a PHP thing. I used to know of something that could “rate” your email in terms of what would mark it as Spam, but I can’t remember the link
I know this sounds like im a spammer, but im workin as a web programmer , i need to get this done. web is campanadeoro.com, if u dont believe me try sending a email to you in “www.campanadeoro.com/eflyer_inscripcion/”
I sorta know how it goes =o
i need to send to a list of approved members.
You’ve been flagged as spam, by who?
dont know, thats what i believe, i made a php that sent the email to all emails in a db, and now i cant send the mails mail() returns true yet it doesnt send the mail. the mail gets out , but it never arrives
Check with your host then
they dont respond
There are 3 places you could be flagged as spamming and blocked #1 The user end, for example Outlook has some basic spam protection that basis it off the content #2 The recipients email host, for instance some email providers check incomming hosts against public blacklists #3 Your host could have seen you send out a lot of emails and have put you on the spam list and blocked your email sending abilities If they don’t respond then find a new host
the thing is i need this done by tomorrow!.
Well there is nothing there we can help you with, it’s something you need to sort out with your host. And if you are indeed on a public blacklist.. its damn hard to get off Or if you’re not worried about the domain name, sign up with another host Do you have cPanel/WHM?
cpanel
Yo
if I wanted to create an IOError exception in PHP, ultimately I would have to do class IOError extends Exception { }
Cheap php 5?
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | |||||
Leave a reply
You must be logged in to post a comment.