Jump to content

requinix

Administrators
  • Posts

    15,229
  • Joined

  • Last visited

  • Days Won

    427

Everything posted by requinix

  1. Try adding a $mail->addReplyTo($data['fields']['Email'], $data['fields']['Name'].' '.$data['fields']['Surname']);Otherwise, what emailing library are you using? It looks like PHPMailer except the class isn't named "ctPHPMailer".
  2. Set CURLINFO_HEADER_OUT=true with your other options, then use curl_getinfo($request, CURLINFO_HEADER_OUT)to get the request headers.
  3. Never used it myself but the first thing I thought of was MonoDevelop.
  4. Are you sure the login form contains those values? That's highly unusual. Aren't you supposed to use the email and password to look up that information in your database instead?
  5. There is nothing in that which says $realid is a number. I'm trying to get actual. values. of. those. variables. Not a description of what you think they are. Not code showing how they get values. Actual. Values. Change your function to look like function ip_add($i){ global $con; global $realid; $query="INSERT INTO media(ip) VALUES ('$i') WHERE id=".$realid; echo "THE QUERY IS '$query'"; $query_run=mysqli_query($con,$query); }Run your script. What is the entire message that it outputs? I'd like you to try to provide the entire message from that echo. Yes, I know what the first three words will be, but that's not the point. You've now demonstrated that you do, in fact, understand how to use the function. Or at least came upon some combination of letters and symbols that together formed valid code which also happened to demonstrate how mysqli_error() is used. Now, I have no idea what this new bit of code has to do with anything you've posted so far. Maybe it's supposed to work the same way as an INSERT query? But if you want to resolve those errors then your next step should be to post what those errors are. Again, the actual errors. Not a description of what they say. The actual messages you are seeing.
  6. That's nice. But the error happens when the function actually runs, so what are the values of those two variables when the function actually runs? Did you click the link I posted?
  7. Use mysqli_error to see if there were any errors. Otherwise, what's the value of $i and $realid? The exact values - output them (you could output the query before executing it), don't just guess.
  8. .*? will stop as soon as possible, and according to your regex that means as soon as it finds a closing ]. The problem of dealing with matching parentheses, or matching brackets, needs to be done using recursion. Your pattern is very simple, fortunately, so it's easy to add recursion in: '/\[((?:[^\[\]]*|(?R))*)\]/'1. The [^\[\]]* matches anything that doesn't look like the pattern delimiters. Your pattern only uses [ and ] so that's all you have to check for. This repeats by itself for optimization. 2. The (?R) does recursion using the entire pattern (it's possible to recurse only a portion of it). Remember to repeat the two together. Note that the input string you gave does not have balanced []s so you need to fix that or else the pattern will not match anything. http://3v4l.org/vruf4
  9. Okay... You could try outputting the entire object, like print_r($proxySales);to see if there's something useful in there. Otherwise all I can suggest is to look through the SOAP examples to see how their code is supposed to be used.
  10. It's right there in your $s query. Why do you think they're defined at that point? You do define them later on, that's true, but it doesn't help $s.
  11. If you've figured it out yourself, how about posting what you did so everybody else can know about it too?
  12. :selected + .text() is the simplest answer...
  13. What's your code.
  14. The rest of the code is using mysqli so you need to use mysqli for that check too.
  15. Then what do SHOW CREATE TABLE whatever_your_table_is SHOW VARIABLES LIKE '%char%'output? And is this site somewhere we can look at?
  16. Where's this "__getLastRequest" coming from? It's the $_last_request and $_last_response properties. As in $proxySales->_last_request
  17. I wasn't sure but it seems RewriteRule .* -[L]the space you're missing there is required after all (mod_rewrite considers the replacement to be "-[L]" instead of "-" with the L flag). The PHP error is due to you using parse.php to handle a file that isn't *.php, which is very clearly cannot support. It also won't work for files that are two or more directories below the web root. I suspect there are other problems too but I'm tired and need to go to bed.
  18. That URL you gave is not to a WSDL. Go to it yourself and see.
  19. How would you, as a human, know what to change about the markup? How do you know which item gets two fas (really?) or whether it should be called "cutlery" or "rss" or "refresh"? Once you have that answered it shouldn't be hard to make the code do it.
  20. The rule is forbidding access so you don't want it. At least not in that form. Does the image exist at that path (if so, are you absolutely sure?) or are you trying to route it through parse.php?
  21. And the script was not working before? With your .htaccess as Options -Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .* -[L] RewriteRule ^(.*)$ parse.phpthen existing files and directories (the RewriteConds) will be served unchanged (the following RewriteRule) and the remaining stuff that does not exist will go through parse.php. What you're saying is that with the above .htaccess, - images do not work - are you still getting a 403? - /style.css does not work - are you still getting a 403? - parse.php does work Right?
  22. IDs are unique. You cannot label more than one thing on a page with the same ID. Use classes instead. A class, in this case.
  23. Well, there's the RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]that explicitly forbids access to images... And you know that RewriteCond only applies to the next RewriteRule? So the RewriteRule .* -[L]will always execute? If you were relying on parse.php to handle /style.css then this would explain why it doesn't work. Also, include() is only for PHP code. If style.css does not contain PHP code then do not include() it.
  24. Not really. Set the "trace" option, then look at SOAP_Client's $_last_request and $_last_response properties.
  25. I'll try again: What is the output of the query SHOW CREATE TABLE userdata
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.