-
Posts
6,906 -
Joined
-
Last visited
-
Days Won
99
Posts posted by ginerjm
-
-
What have you tried so far? Break your problem down to separate parts - first the query to find the desired data, then the script to do all the work and finally (once debugged) create the cron setup for your script.
So - show us the code to interrogate your db.
-
1 - I usually can understand English, but I have a real problem with this statement:
how can i display numbers with shortcode of submitted from gravity form only from current logged in user
2 - if this is about something called 'gravity' why not post it in a forum that covers that thing? A CMS perhaps?
-
what is the name of this file?
-
You seem to be missing a quote in the body part of your html
- 1
-
I never know which line is which in these posts so it couldn't hurt to ask for help.
- 1
-
It would help if you pointed out which line in that code gave you the error so we know generally where to look
- 1
-
$badnames = ('Admin','Admin2','Admin3'); $name2 = 'Nice try'; $name = ...; foreach($badnames as $word) { if (false !== stripos($name,$word)) { $name = $name2; break; } }
-
if (false !== stripos(($string,$word))
$string = $newstring;
]/php]
-
Why would anyone use Word to do coding???
-
As I understand sessions, the session remains open until the browser is closed, so a retyping of the url would not work.
-
F5 refresh key? You could stop that with a session var after the first vote is logged in a session.
-
Methinks you are trashing the wrong forum since we don't know what you are talking about.
Good luck wherever you go with that attitude
-
Ooooh! And the party grows...
-
Must be Friday....
-
Yes - it will throw a 'notice' IF you have that turned on (and you should only during development!) - but it will not cause a conflict. I'll trust the manual until otherwise informed. The second call will not begin a 'new' session. And eventually (hopefully) the poster will learn how to better organize his modules and code.
-
Not quite correct JustThatGuy.
Per the manual - a second session_start call is simply ignored if the session is already begun.
-
What line is giving you that error? You didn't say.
-
1 - I don't do homework for those who plead as you have done.
2 - I don't look at attachments for code since I hate taking those risks
3 - I do however look at code that is properly posted (see forum rules) on the forum and which the poster has made clear what is what and where he/she suspects his difficulty lies.
4 - I don't use bad language.
- 1
-
Homework? Should of gone to class more.
-
So - this topic is finished? Please post it as answered then.
-
You are seeing all the <br> tags echoed out first because you inserted them inside an html table. You can't do that.
This code:
<td>' . $row['Plaats'] . '</td> </tr> <br> THIS IS BAD '; ; THIS IS NOT NEEDED }
should be changed to remove the <br> and the EXTRA ; line.
<td>' . $row['Plaats'] . '</td> </tr> '; }
-
You appreciate our attempts to help you but you can't seem to answer any of our questions. Why? I asked you five question and you didn't answer any of them. You just repeated the same message. Try debugging your code by displaying some values instead of doing the redirect. See what your code is seeing instead of just assuming or wondering why it operates the way it does.
That's how programmers think and do.
-
I see we have a failure to communicate here. Good luck.
-
So? What specifically happens when it "stops working"? Do you have error checking turned on? Do you get a blank screen? Do you get a wrong outcome? What do you see? Help us out here.
Save memory ideas
in PHP Coding Help
Posted
First let me say I have never used curl and don't fully understand it.
Now - how your script operates.
1 - you setup and execute a curl call but you don't do anything with the returned value(s).
2 - you then start a loop to do more curl calls
3 - with each curl call you do some unknown function (I can't find it) named str_get_html
4 - with the results of this function you do a search and then you attempt to handle the contents found by this search. BAD CODE! What if there was nothing found?
5 - you append the just-read html (from the unknown function call) to an array as a new element. Is $data the reason for you memory overload?
Since count starts at 1 and maxnumber is set to 5, you should only do this 5 times. Where is 12 coming into play as you mentioned?