Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Zetas

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    5,114

    Re: urlencode(), url + sign for %20

    .htaccess files can be used to set virtually any apache directive (provided you don't have AllowOverride set to false for your directory definition in the main apache conf) this also goes for any mod...
  2. Replies
    4
    Views
    737

    Re: fgets the first bytes of file

    $handle = @fopen("$file_to_read", "r");
    clearstatcache();
    ignore_user_abort(true);
    if ($handle) {
    $buffer = fread($handle, 4096);

    $filename = 'file_to_write.txt';

    if...
  3. Replies
    8
    Views
    701

    Re: image editing functions - large files...?

    Besides the fact that your code doesn't seem to parse .bmp files, i agree with Peej, you'd need to provide the exact browser error your getting and what browser you got it in. As well as the settings...
  4. Replies
    7
    Views
    905

    Re: cron job and bash

    The shebang line at the top (#!/bin/bash) tells the system what interpreter it should use to parse your code.

    For example, in different languages you'd switch that out:

    Bourne again shell:...
  5. Thread: PHP programs

    by Zetas
    Replies
    2
    Views
    645

    Re: PHP programs

    The best PHP ide i've ever found is called Zend Studio, its made by the guys who currently maintain php itself. Its not free, but you can download the 30 day trial and see if you like it. It has...
  6. Replies
    2
    Views
    618

    Re: Replace string in Shell scripting

    Well he said shell scripting, however still need to know what shell.. bash, sh, csh?

    Also, i'd need more information to help you, who is setting the var? Are you reading from standard in?
    ...
  7. Replies
    3
    Views
    790

    Re: restricting access using sessions

    It's generally not a good idea to set a boolean session flag if the user is logged in as this is very easy to hack and overwrite with one look at thier session cookies. Instead, what I do, is assign...
  8. Thread: scriting help

    by Zetas
    Replies
    2
    Views
    652

    Re: scriting help

    Thats definitly an interesting way to go about it, however there are much better tools to accomplish what your looking for, try this:



    #!/bin/bash
    ...
  9. Replies
    6
    Views
    13,732

    Re: Use of Dijkstra's algorithm in PHP

    Maybe it knows something you dont? It seems to me the fastest way from 1 to 3 is 1-3 not 1-2-3, why must you go through 2?

    Php is way more advanced then our feeble minds can comprehend, it bends...
  10. Replies
    12
    Views
    1,513

    Re: PHP using command prompt

    If your using linux you could do something like:



    <?php
    $now = date("mdY");
    echo "Database:\n";
    $db = trim(fgets(STDIN));

    if ($dbselect = mysql_select_db($db)) {
  11. Replies
    18
    Views
    4,446

    Re: Query succession...

    I'm glad you got this sorted out. In the future though, it may be helpful to vardump the entire server array. Sometimes browsers can alter 1 or more items in the server array that refrence client...
  12. Replies
    3
    Views
    666

    Re: I need a FTP synchronization tool

    Nice! Zend has a 30 day trial and after that i think you can get the basic version for $100 or $200. I made my company buy me the $300 pro version though :P

    -Dave
  13. Replies
    2
    Views
    528

    Re: Message moving (PHP)

    Like bubu said, your post is very vague. To help us you need to be more specific. However, i think your talking about moving e-mail messages from one box?(mail folder? or one persons mail box to...
  14. Re: What's best way to store CMS settings?

    No problem, I hope everything works well for you.
  15. Re: What's best way to store CMS settings?

    Basic settings like your db info should definitly be stored in a file of some sort. However, user settings (i.e. theme, colors, custom blocks, etc) can be stored as objects in a database, this is the...
  16. Replies
    5
    Views
    797

    Re: Preg_replace all but something.

    if its always going to be <div class="g">....</div> the way i would do it (because regex's are ebil) is write a function like this:



    function cleanDiv(&$html) { //pass the arg as refrence so...
  17. Replies
    3
    Views
    666

    Re: I need a FTP synchronization tool

    I use an IDE like Zend Studio that allows me to edit files on the remote server, no more mess of uploading after you make changes. This way is actually safer for multiple developers on 1 system.
    ...
  18. Replies
    11
    Views
    773

    Re: Redirect a POST submission

    Ok, so what your saying is, the customer picks out the items he wants (adds items to cart), then once he clicks "checkout" you want to send them to your CCM to enter his/her CC info. exp date, etc...
  19. Replies
    11
    Views
    773

    Re: Redirect a POST submission

    Javascript is fine for this use of just submitting an html form. Sessions are safer then open html but there is no way to transfer sessions to the third party credit card merchant. Most places either...
  20. Re: [RESOLVED] What's best way to debug MySQL queries inside PHP code?

    That seems like a cool way to do it. Personally i haven't needed such elaborate error detection. Usually i can tell where the error is coming from by seeing the query or the error itself hence why my...
  21. Re: [RESOLVED] What's best way to debug MySQL queries inside PHP code?

    What else would you like it to say? In that particular example all errors would occur inside the function. Should it say the line number of the function call in the parental file? If thats the case...
  22. Replies
    6
    Views
    689

    Re: Relative Directories

    Try taking the first forward slash off:

    Change:


    <img src="/img/ftr.gif" id="ftr" alt="" />

    to:
  23. Replies
    1
    Views
    696

    Learning Assembly (Should I Do It?)

    All of this is so interesting, looking around this forum ive had my first opportunity to actually see some assembly code, its pretty wild. I'm moving from the top of the pyramid to the bottom, from...
  24. Replies
    11
    Views
    1,283

    Re: sending emails through PHP

    Yea, sorry im not sure what to tell you. This is one of the reasons i stay away from windows, the networking profile is very difficult to debug many things could be blocking or fudging up your...
  25. Replies
    11
    Views
    1,283

    Re: sending emails through PHP

    Peej is right, you probably need to authenticate.

    You could search for such a function, but it would be fairly easy to write your own, for example:



    function...
Results 1 to 25 of 41
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center