-
Posts
15,229 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
It. Is. An. Array. There. May. Be. More. Than. One. Item. In. That. Array. You. Need. A. Loop.
-
Probably. You'd have to post your code, explain what it's supposed to do, explain what it actually us, maybe give us some background information...
-
How much are you willing to pay? Because if you want us to do it for you then you better be ready to give us money for our time.
-
1. You shouldn't stripslashes() as those are there because of JSON and json_decode() will do it for you. 2. $obj is an array with multiple events. You need a loop.
-
$url = "http://www.example.com/path/to/page?"; // with the question mark $get = array("key 1" => "value 1", "key 2" => "value 2", "key 3" => "value 3" /* ... */); $xml = new SimpleXMLElement($url . http_build_query($get), 0, true);From there you have a SimpleXMLElement that you can do pretty much anything you want with. What do you want to do? What kind of XML are you getting back?
-
$_POST
-
preventing AJAX PHP scripts from outputting text
requinix replied to clbassett03's topic in Javascript Help
No. Outputting is how you return something through AJAX. If the use of the word "return" there is confusing then pretend I said "send something back". -
Count your columns and your values. [edit] And next time use a title that actually describes your problem. "help help help" does not give anyone any incentive to help you.
-
Now that you're in the PHP Coding Help forum, README: PHP Resources & FAQs 3. I'm getting a "headers already sent error". What does that mean?
-
*more than one class with the same fully-qualified name
-
Your first problem is having more than one class with the same name. That's a no-no. Name each class differently because they are, in fact, different classes. Then rename their files appropriately and if necessary modify your autoloader to fit, since it now knows which classes you're talking about.
-
__autoload is deprecated. Use spl_autoload_register instead. "In a different folder"? You mean you have more than one ClassAppTitle class defined?
-
Yes. Providing Active Directory authentication via Kerberos protocol in Apache mod_authnz_ldap Apache 2 - LDAP/Active Directory - Automatic login/authentication process mod_auth_sspi Apache LDAP/Active Directory Authentication
-
No. IP addresses are not like host or domain names that you can make up as you go. The only way it would be possible is if the server running IIS had two network connections, one on the 123.45 network and a second on the 134.25 network.
-
Fatal Error when trying to execute simple SELECT query
requinix replied to cr0ck3t's topic in MySQL Help
$mysqli->$queryYou have three of them. -
1. Don't put complicated code in an onclick 2. In fact avoid using onclick attributes and instead attach event handlers 3. if thing is checked { obj = get the object if obj value is "abc" { disable obj } }
-
debug_print_backtrace
-
Hiding the extension is only for the links and the forms and the other things that happen inside the client's browser. You haven't actually renamed the files.
-
preventing AJAX PHP scripts from outputting text
requinix replied to clbassett03's topic in Javascript Help
No. Outputting is how you return something through AJAX. Then it sounds like you have a bug: your script is doing something it's not supposed to do. Figure out where the flaw in the logic is that's causing the script to output when not being triggered through an AJAX action. You best get over those qualms soon because every user can see exactly what is sent and received over AJAX. And no, there's nothing you can do about it directly so make sure you don't need to send or receive anything you wouldn't want the user to know about. -
It's not. fputcsv($handle, $row, ";", chr(0));You specifically say in your code to use \0 as the quoting character. If you don't want that then don't do it and pick something else. Or let PHP go with the perfectly reasonable default value of an actual quote character.
-
Use a different editor to look at the file. It's using a typical representation of control characters by showing them as "^" + chr(64 + code), like how you might see ^C if you hit Ctrl+C with a command-line application.
-
Is your code missing a quote or did you not copy/paste your code here?
-
That. Don't tell people you're sending Excel files when you're actually sending CSV files.
-
I don't see how it would be doing that. fputcsv() adds newlines for you. What are you using to view the file?